Ошибка AttributeError: 'list' object has no attribute 'read' в Django
Cегодня столкнулся с проблемой во время написания проекта на Django. При запуске проекта в локальной сети ( python manage.py runserver ) выпадает данная ошибка:
Traceback (most recent call last):
File "C:\Work\Asure\Web-site\web\manage.py", line 22, in <module>
main()
File "C:\Work\Asure\Web-site\web\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 74, in execute
super().execute(*args, **options)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 460, in execute
output = self.handle(*args, **options)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 111, in handle
self.run(**options)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 118, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 682, in run_with_reloader
exit_code = restart_with_reloader()
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 274, in restart_with_reloader
p = subprocess.run(args, env=new_environ, close_fds=False)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\run\__init__.py", line 145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\site-packages\run\__init__.py", line 121, in create_process
shlex.split(command),
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\shlex.py", line 315, in split
return list(lex)
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\shlex.py", line 300, in __next__
token = self.get_token()
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "C:\Users\Beeei\AppData\Local\Programs\Python\Python310\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'
Нашёл в интернете совет, что надо полностью переустановить Python. Я полностью удалил его с компьютера вместе со всеми переменными окружения, даже все IDE, связанные с пайтоном снёс и заного установил. Не помогло.