ColdGrub1384 / LibTerm

iOS sandboxed terminal with Python, Lua and Clang
https://libterm.app
MIT License
630 stars 115 forks source link

Python error after Django or Flask server running #49

Open Cyber-code opened 4 years ago

Cyber-code commented 4 years ago

When I run Django application or flask, and close it, if I launch python, I get this error :

Fatal Python error: _Py_InitializeCore_impl: no thread state found

Thread 0x000000016d57b000 (most recent call first):
  File "/private/var/containers/Bundle/Application/1999D3C8-C607-4B47-B8A7-7307649AC7F4/LibTerm.app/python37.zip/selectors.py", line 415 in select
  File "/private/var/containers/Bundle/Application/1999D3C8-C607-4B47-B8A7-7307649AC7F4/LibTerm.app/python37.zip/socketserver.py", line 232 in serve_forever
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/servers/basehttp.py", line 216 in run
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/commands/runserver.py", line 139 in inner_run
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/commands/runserver.py", line 104 in run
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/commands/runserver.py", line 95 in handle
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/base.py", line 369 in execute
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/commands/runserver.py", line 60 in execute
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/base.py", line 328 in run_from_argv
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/__init__.py", line 395 in execute
  File "/var/mobile/Containers/Data/Application/8910A675-BC07-454C-8815-0DE97CB4F0A6/Documents/site-packages3/django/core/management/__init__.py", line 401 in execute_from_command_line
  File "manage.py", line 17 in main
  File "manage.py", line 21 in <module>
ongyx commented 4 years ago

Sometimes I get this too when the Python interpreter is stopped using Ctrl-C.

abdulla134 commented 4 years ago

``

``