Traceback (most recent call last):


 "C:\Users\harry\OneDrive\Desktop\Pepsi-Bot\index.py", line 1, in <module>

import discord


 "C:\Users\harry\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\__init__.py", line 20, in <module>

from .client import Client, AppInfo, ChannelPermissions


 "C:\Users\harry\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 38, in <module>

from .state import ConnectionState


 "C:\Users\harry\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\state.py", line 36, in <module>

from . import utils, compat


 "C:\Users\harry\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\compat.py", line 32

create_task = asyncio.async

^
SyntaxError: invalid syntax`
Traceback (most recent call last):


 "/root/django/django/utils/autoreload.py", line 225, in wrapper

fn(*args, **kwargs)


 "/root/django/django/core/management/commands/runserver.py", line 117, in inner_run

self.check(display_num_errors=True)


 "/root/django/django/core/management/base.py", line 390, in check

include_deployment_checks=include_deployment_checks,


 "/root/django/django/core/management/base.py", line 377, in _run_checks

return checks.run_checks(**kwargs)


 "/root/django/django/core/checks/registry.py", line 72, in run_checks

new_errors = check(app_configs=app_configs)


 "/root/django/django/core/checks/urls.py", line 40, in check_url_namespaces_unique

all_namespaces = _load_all_namespaces(resolver)


 "/root/django/django/core/checks/urls.py", line 57, in _load_all_namespaces

url_patterns = getattr(resolver, 'url_patterns', [])


 "/root/django/django/utils/functional.py", line 37, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/root/django/django/urls/resolvers.py", line 559, in url_patterns

patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)


 "/root/django/django/utils/functional.py", line 37, in __get__

res = instance.__dict__[self.name] = self.func(instance)


 "/root/django/django/urls/resolvers.py", line 552, in urlconf_module

return import_module(self.urlconf_name)


 "/opt/rh/rh-python36/root/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 994, in _gcd_import


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 665, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 678, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/root/Metis/app/controller/settings/urls.py", line 18, in <module>

from api import views as api_views


 "/root/Metis/app/controller/api/views.py", line 20

except Exception, ex:

^
SyntaxError: invalid syntax
