求助帖: Watching for file changes with StatReloader

2019-10-27 21:57:01 +08:00
 jxylon

Traceback (most recent call last): File "D:/GitHub/Qiandao-Lake-Capacity-Warning-Web-Project/mainproject/manage.py", line 37, in <module> main() File "D:/GitHub/Qiandao-Lake-Capacity-Warning-Web-Project/mainproject/manage.py", line 32, in main execute_from_command_line(sys.argv) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management_init_.py", line 381, in execute_from_command_line utility.execute() File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management_init_.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute super().execute(*args, **options) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\base.py", line 364, in execute output = self.handle(*args, **options) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle self.run(**options) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run autoreload.run_with_reloader(self.inner_run, **options) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 598, in run_with_reloader start_django(reloader, main_func, *args, **kwargs) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 583, in start_django reloader.run(django_main_thread) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 301, in run self.run_loop() File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 307, in run_loop next(ticker) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 347, in tick for filepath, mtime in self.snapshot_files(): File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 363, in snapshot_files for file in self.watched_files(): File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 262, in watched_files yield from iter_all_python_module_files() File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 103, in iter_all_python_module_files return iter_modules_and_files(modules, frozenset(_error_files)) File "C:\Users\JASON\AppData\Local\Programs\Python\Python36\lib\site-packages\django\utils\autoreload.py", line 124, in iter_modules_and_files if getattr(module, 'spec', None) is None: SystemError: <built-in function="" getattr=""> returned a result with an error set System check identified no issues (0 silenced).</built-in></module>

Process finished with exit code 1

4287 次点击
所在节点    Django
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/613469

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX