← Back to team overview

graphite-dev team mailing list archive

[Question #252445]: Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.

 

New question #252445 on Graphite:
https://answers.launchpad.net/graphite/+question/252445

Hello,

I got an issue with the graphite installation.

When i try to start the httpd daemon i got theses messages in error.log :

[Thu Jul 31 11:24:26.894491 2014] [:error] [pid 18272:tid 140020414801728] /usr/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Jul 31 11:24:26.896311 2014] [:error] [pid 18273:tid 140020414801728] /usr/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Jul 31 11:24:26.898415 2014] [:error] [pid 18275:tid 140020414801728] /usr/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Jul 31 11:24:26.899321 2014] [:error] [pid 18274:tid 140020414801728] /usr/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Jul 31 11:24:26.899382 2014] [:error] [pid 18274:tid 140020414801728]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Jul 31 11:24:26.903214 2014] [:error] [pid 18271:tid 140020414801728] /usr/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Jul 31 11:24:26.903271 2014] [:error] [pid 18271:tid 140020414801728]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Jul 31 11:24:26.903959 2014] [:error] [pid 18272:tid 140020414801728]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Jul 31 11:24:26.906903 2014] [:error] [pid 18273:tid 140020414801728]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Jul 31 11:24:26.909901 2014] [:error] [pid 18275:tid 140020414801728]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Jul 31 11:24:26.916218 2014] [:error] [pid 18274:tid 140020414801728] mod_wsgi (pid=18274): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Jul 31 11:24:26.916257 2014] [:error] [pid 18274:tid 140020414801728] mod_wsgi (pid=18274): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Jul 31 11:24:26.916294 2014] [:error] [pid 18274:tid 140020414801728] Traceback (most recent call last):
[Thu Jul 31 11:24:26.916338 2014] [:error] [pid 18274:tid 140020414801728]   File "/opt/graphite/conf/graphite.wsgi", line 8, in <module>
[Thu Jul 31 11:24:26.916411 2014] [:error] [pid 18274:tid 140020414801728]     import graphite.metrics.search
[Thu Jul 31 11:24:26.916446 2014] [:error] [pid 18274:tid 140020414801728]   File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
[Thu Jul 31 11:24:26.916530 2014] [:error] [pid 18274:tid 140020414801728]     from graphite.storage import is_pattern, match_entries
[Thu Jul 31 11:24:26.916564 2014] [:error] [pid 18274:tid 140020414801728]   File "/opt/graphite/webapp/graphite/storage.py", line 4, in <module>
[Thu Jul 31 11:24:26.916700 2014] [:error] [pid 18274:tid 140020414801728]     import whisper
[Thu Jul 31 11:24:26.916744 2014] [:error] [pid 18274:tid 140020414801728] ImportError: No module named whisper
[Thu Jul 31 11:24:26.917960 2014] [:error] [pid 18272:tid 140020414801728] mod_wsgi (pid=18272): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Jul 31 11:24:26.917996 2014] [:error] [pid 18272:tid 140020414801728] mod_wsgi (pid=18272): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Jul 31 11:24:26.918032 2014] [:error] [pid 18272:tid 140020414801728] Traceback (most recent call last):
[Thu Jul 31 11:24:26.918076 2014] [:error] [pid 18272:tid 140020414801728]   File "/opt/graphite/conf/graphite.wsgi", line 8, in <module>
[Thu Jul 31 11:24:26.918148 2014] [:error] [pid 18272:tid 140020414801728]     import graphite.metrics.search
[Thu Jul 31 11:24:26.918182 2014] [:error] [pid 18272:tid 140020414801728]   File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
[Thu Jul 31 11:24:26.918267 2014] [:error] [pid 18272:tid 140020414801728]     from graphite.storage import is_pattern, match_entries
[Thu Jul 31 11:24:26.918959 2014] [:error] [pid 18273:tid 140020414801728] mod_wsgi (pid=18273): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Jul 31 11:24:26.918992 2014] [:error] [pid 18273:tid 140020414801728] mod_wsgi (pid=18273): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Jul 31 11:24:26.919028 2014] [:error] [pid 18273:tid 140020414801728] Traceback (most recent call last):
[Thu Jul 31 11:24:26.919070 2014] [:error] [pid 18273:tid 140020414801728]   File "/opt/graphite/conf/graphite.wsgi", line 8, in <module>
[Thu Jul 31 11:24:26.919139 2014] [:error] [pid 18273:tid 140020414801728]     import graphite.metrics.search
[Thu Jul 31 11:24:26.919181 2014] [:error] [pid 18273:tid 140020414801728]   File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
[Thu Jul 31 11:24:26.919266 2014] [:error] [pid 18273:tid 140020414801728]     from graphite.storage import is_pattern, match_entries
[Thu Jul 31 11:24:26.919301 2014] [:error] [pid 18273:tid 140020414801728]   File "/opt/graphite/webapp/graphite/storage.py", line 4, in <module>
[Thu Jul 31 11:24:26.919435 2014] [:error] [pid 18273:tid 140020414801728]     import whisper
[Thu Jul 31 11:24:26.919480 2014] [:error] [pid 18273:tid 140020414801728] ImportError: No module named whisper
[Thu Jul 31 11:24:26.920734 2014] [:error] [pid 18271:tid 140020414801728] mod_wsgi (pid=18271): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Jul 31 11:24:26.920769 2014] [:error] [pid 18271:tid 140020414801728] mod_wsgi (pid=18271): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Jul 31 11:24:26.920803 2014] [:error] [pid 18271:tid 140020414801728] Traceback (most recent call last):
[Thu Jul 31 11:24:26.920846 2014] [:error] [pid 18271:tid 140020414801728]   File "/opt/graphite/conf/graphite.wsgi", line 8, in <module>
[Thu Jul 31 11:24:26.920989 2014] [:error] [pid 18271:tid 140020414801728]     import graphite.metrics.search
[Thu Jul 31 11:24:26.921027 2014] [:error] [pid 18271:tid 140020414801728]   File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
[Thu Jul 31 11:24:26.921111 2014] [:error] [pid 18271:tid 140020414801728]     from graphite.storage import is_pattern, match_entries
[Thu Jul 31 11:24:26.921146 2014] [:error] [pid 18271:tid 140020414801728]   File "/opt/graphite/webapp/graphite/storage.py", line 4, in <module>
[Thu Jul 31 11:24:26.921281 2014] [:error] [pid 18271:tid 140020414801728]     import whisper
[Thu Jul 31 11:24:26.922070 2014] [:error] [pid 18275:tid 140020414801728] mod_wsgi (pid=18275): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Jul 31 11:24:26.922105 2014] [:error] [pid 18275:tid 140020414801728] mod_wsgi (pid=18275): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Jul 31 11:24:26.922142 2014] [:error] [pid 18275:tid 140020414801728] Traceback (most recent call last):
[Thu Jul 31 11:24:26.922186 2014] [:error] [pid 18275:tid 140020414801728]   File "/opt/graphite/conf/graphite.wsgi", line 8, in <module>
[Thu Jul 31 11:24:26.922256 2014] [:error] [pid 18275:tid 140020414801728]     import graphite.metrics.search
[Thu Jul 31 11:24:26.922290 2014] [:error] [pid 18275:tid 140020414801728]   File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module>
[Thu Jul 31 11:24:26.922372 2014] [:error] [pid 18275:tid 140020414801728]     from graphite.storage import is_pattern, match_entries
[Thu Jul 31 11:24:26.922406 2014] [:error] [pid 18275:tid 140020414801728]   File "/opt/graphite/webapp/graphite/storage.py", line 4, in <module>
[Thu Jul 31 11:24:26.922553 2014] [:error] [pid 18275:tid 140020414801728]     import whisper
[Thu Jul 31 11:24:26.922616 2014] [:error] [pid 18275:tid 140020414801728] ImportError: No module named whisper
[Thu Jul 31 11:24:26.923086 2014] [:error] [pid 18272:tid 140020414801728]   File "/opt/graphite/webapp/graphite/storage.py", line 4, in <module>
[Thu Jul 31 11:24:26.923239 2014] [:error] [pid 18272:tid 140020414801728]     import whisper
[Thu Jul 31 11:24:26.923284 2014] [:error] [pid 18272:tid 140020414801728] ImportError: No module named whisper
[Thu Jul 31 11:24:26.923603 2014] [:error] [pid 18271:tid 140020414801728] ImportError: No module named whisper

We have this message from the browser : 500 Internal Server Error

daemon is the user of apache. I already searched and found 2 topics but useless for my issue :

Rights/owner seems correct :

[root@p1graphite01 opt]# ls -haltr /opt/
total 20K
drwxr-xr-x.  5 root   root   4,0K 22 juil. 19:08 .
drwxr-xr-x   8 daemon daemon 4,0K 22 juil. 19:08 graphite

Selinux is disabled.

I hope someone will be able to help me :)

Thanks

CJARD

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.