Я использую Ubuntu и Vscode. В моем проекте Django я попытался запустить команду python manage.py process_tasks
, и у меня появилась эта ошибка ниже.
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/home/../venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/home/../venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/../venv/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/../venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/home/../venv/lib/python3.6/site-packages/background_task/management/commands/process_tasks.py", line 123, in handle
self.run(*args, **options)
File "/home/../venv/lib/python3.6/site-packages/background_task/management/commands/process_tasks.py", line 96, in run
autodiscover()
File "/home/../venv/lib/python3.6/site-packages/background_task/tasks.py", line 317, in autodiscover
imp.find_module('tasks', app_path)
File "/usr/lib/python3.6/imp.py", line 271, in find_module
"not {}".format(type(path)))
RuntimeError: 'path' must be None or a list, not <class '_frozen_importlib_external._NamespacePath'>
Как я могу это исправить?