python - ImportError: No module named 'sysmon' -
this first release of new django app on production server. locally works on production server following 500 internal error. can't figure out sysmon referees too.
from log file:
[thu jun 25 06:49:11.415601 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] mod_wsgi (pid=6066): target wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py' cannot loaded python module. [thu jun 25 06:49:11.415680 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] mod_wsgi (pid=6066): exception occurred processing wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py'. [thu jun 25 06:49:11.415717 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] traceback (most recent call last): [thu jun 25 06:49:11.415869 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py", line 31, in <module> [thu jun 25 06:49:11.415883 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] application = get_wsgi_application() [thu jun 25 06:49:11.415971 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/core/wsgi.py", line 14, in get_wsgi_application [thu jun 25 06:49:11.415978 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] django.setup() [thu jun 25 06:49:11.416060 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/__init__.py", line 18, in setup [thu jun 25 06:49:11.416067 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] apps.populate(settings.installed_apps) [thu jun 25 06:49:11.416220 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/apps/registry.py", line 85, in populate [thu jun 25 06:49:11.416227 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] app_config = appconfig.create(entry) [thu jun 25 06:49:11.416341 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/apps/config.py", line 86, in create [thu jun 25 06:49:11.416348 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] module = import_module(entry) [thu jun 25 06:49:11.416455 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "/usr/local/lib/python3.4/importlib/__init__.py", line 109, in import_module [thu jun 25 06:49:11.416462 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] return _bootstrap._gcd_import(name[level:], package, level) [thu jun 25 06:49:11.416479 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "<frozen importlib._bootstrap>", line 2254, in _gcd_import [thu jun 25 06:49:11.416494 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "<frozen importlib._bootstrap>", line 2237, in _find_and_load [thu jun 25 06:49:11.416508 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] file "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked [thu jun 25 06:49:11.416615 2015] [wsgi:error] [pid 6066:tid 140229352871680] [remote 127.0.0.1:52480] importerror: no module named 'sysmon'
and i've notice when restart server following error (runtimeerror: populate() isn't reentrant ):
[thu jun 25 08:01:43.556475 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] mod_wsgi (pid=6066): target wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py' cannot loaded python module. [thu jun 25 08:01:43.556561 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] mod_wsgi (pid=6066): exception occurred processing wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py'. [thu jun 25 08:01:43.556611 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] traceback (most recent call last): [thu jun 25 08:01:43.556685 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] file "/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py", line 31, in <module> [thu jun 25 08:01:43.556695 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] application = get_wsgi_application() [thu jun 25 08:01:43.556748 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/core/wsgi.py", line 14, in get_wsgi_application [thu jun 25 08:01:43.556757 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] django.setup() [thu jun 25 08:01:43.556799 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/__init__.py", line 18, in setup [thu jun 25 08:01:43.556818 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] apps.populate(settings.installed_apps) [thu jun 25 08:01:43.556861 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/apps/registry.py", line 78, in populate [thu jun 25 08:01:43.556870 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] raise runtimeerror("populate() isn't reentrant") [thu jun 25 08:01:43.556903 2015] [wsgi:error] [pid 6066:tid 140229247973120] [remote 127.0.0.1:160] runtimeerror: populate() isn't reentrant [thu jun 25 08:01:43.846673 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] mod_wsgi (pid=6067): target wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py' cannot loaded python module. [thu jun 25 08:01:43.846748 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] mod_wsgi (pid=6067): exception occurred processing wsgi script '/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py'. [thu jun 25 08:01:43.846787 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] traceback (most recent call last): [thu jun 25 08:01:43.846843 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] file "/home/ymorin007/webapps/hoozdis_com/src/hoozdis/wsgi.py", line 31, in <module> [thu jun 25 08:01:43.846850 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] application = get_wsgi_application() [thu jun 25 08:01:43.846881 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/core/wsgi.py", line 14, in get_wsgi_application [thu jun 25 08:01:43.846888 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] django.setup() [thu jun 25 08:01:43.846914 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/__init__.py", line 18, in setup [thu jun 25 08:01:43.846920 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] apps.populate(settings.installed_apps) [thu jun 25 08:01:43.846946 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] file "/home/ymorin007/webapps/hoozdis_com/lib/python3.4/django-1.8.2-py3.4.egg/django/apps/registry.py", line 78, in populate [thu jun 25 08:01:43.846952 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] raise runtimeerror("populate() isn't reentrant") [thu jun 25 08:01:43.846973 2015] [wsgi:error] [pid 6067:tid 140229178517248] [remote 127.0.0.1:172] runtimeerror: populate() isn't reentrant
frozen modules modules written in python compiled byte-code object incorporated custom-built python interpreter python’s freeze utility. see tools/freeze/ now.
from https://docs.python.org/2/library/imp.html#imp.init_frozen
it looks somewhere someone's freezing python code , not including necessary bits? it's little tricky diagnose after that. try looking called sysmon locally.
Comments
Post a Comment