Forums

my site not working

need help my site is not running, keeps popping up this errors

2023-01-24 06:05:21,100: Error running WSGI application
2023-01-24 06:05:21,105: ModuleNotFoundError: No module named '_version'
2023-01-24 06:05:21,105:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/contrib/staticfiles/handlers.py", line 80, in __call__
2023-01-24 06:05:21,105:     return self.application(environ, start_response)
2023-01-24 06:05:21,106: 
2023-01-24 06:05:21,106:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/core/handlers/wsgi.py", line 131, in __call__
2023-01-24 06:05:21,106:     response = self.get_response(request)
2023-01-24 06:05:21,107: 
2023-01-24 06:05:21,107:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/core/handlers/base.py", line 140, in get_response
2023-01-24 06:05:21,107:     response = self._middleware_chain(request)
2023-01-24 06:05:21,107: 
2023-01-24 06:05:21,107:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/core/handlers/exception.py", line 57, in inner
2023-01-24 06:05:21,107:     response = response_for_exception(request, exc)
2023-01-24 06:05:21,108: 
2023-01-24 06:05:21,108:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/core/handlers/exception.py", line 140, in response_for_exception
2023-01-24 06:05:21,108:     response = handle_uncaught_exception(
2023-01-24 06:05:21,108: 
2023-01-24 06:05:21,108:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/core/handlers/exception.py", line 184, in handle_uncaught_exception
2023-01-24 06:05:21,109:     callback = resolver.resolve_error_handler(500)
2023-01-24 06:05:21,109: 
2023-01-24 06:05:21,109:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/urls/resolvers.py", line 729, in resolve_error_handler
2023-01-24 06:05:21,109:     callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
2023-01-24 06:05:21,109: 
2023-01-24 06:05:21,110:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
2023-01-24 06:05:21,110:     res = instance.__dict__[self.name] = self.func(instance)
2023-01-24 06:05:21,110: 
2023-01-24 06:05:21,110:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
2023-01-24 06:05:21,110:     return import_module(self.urlconf_name)
2023-01-24 06:05:21,111: 
2023-01-24 06:05:21,111:   File "/home/Igho/dj_api/dj_api/urls.py", line 23, in <module>
2023-01-24 06:05:21,111:     path('', include('base.urls')),
2023-01-24 06:05:21,111: 
2023-01-24 06:05:21,111:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/django/urls/conf.py", line 38, in include
2023-01-24 06:05:21,112:     urlconf_module = import_module(urlconf_module)
2023-01-24 06:05:21,112: 
2023-01-24 06:05:21,112:   File "/home/Igho/dj_api/base/urls.py", line 2, in <module>
2023-01-24 06:05:21,112:     from . import views
2023-01-24 06:05:21,112: 
2023-01-24 06:05:21,113:   File "/home/Igho/dj_api/base/views.py", line 4, in <module>
2023-01-24 06:05:21,113:     import mysql.connector
2023-01-24 06:05:21,113: 
2023-01-24 06:05:21,113:   File "/home/Igho/.virtualenvs/envmt/lib/python3.10/site-packages/mysql/connector/__init__.py", line 34, in <module>
2023-01-24 06:05:21,113:     import _version

Which MySQL package did you install? It looks like you're using an old one which has Python 2 style import statements, and it's failing for Python 3.10 which you use for your web app on PythonAnywhere.