Unable to install graphte 0.10.0-alpha

Asked by mike

I need to install graphite version 0.10.0-alpha so that I can use opentsdb as a backend storage.

I downloaded and installed the the master branch on github:

https://github.com/graphite-project/graphite-web/tree/master

I installed all of the dependencies. My apache is reporting these errors:

[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] Traceback (most recent call last):
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] File "/opt/graphite/conf/graphite.wsgi", line 4, in <module>
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] from graphite.wsgi import application
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] ImportError: No module named wsgi
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] mod_wsgi (pid=5440): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] mod_wsgi (pid=5440): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] Traceback (most recent call last):
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] File "/opt/graphite/conf/graphite.wsgi", line 4, in <module>
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] from graphite.wsgi import application
[Mon May 25 12:33:44 2015] [error] [client 29.0.45.27] ImportError: No module named wsgi

What am I doing wrong? Is the right link to the graphte webapp?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#1
Revision history for this message
mike (gsaray101) said :
#2

Python 2.6.9
Django-1.1.4

I did downloaded wsgi source code and compiled it.

 file /usr/lib64/apache2-worker/mod_wsgi.so
/usr/lib64/apache2-worker/mod_wsgi.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

ldd /usr/lib64/apache2-worker/mod_wsgi.so linux-vdso.so.1 => (0x00007fffdeb54000)
        libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007f1a31b26000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1a31909000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f1a31704000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f1a31501000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f1a31288000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f1a30f0b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1a320ff000)

Revision history for this message
mike (gsaray101) said :
#3

when I compile wsgi in python 2.6.9, I dont see any python wsgi packages as this:

/usr/local/lib64/python2.6/site-packages/mod_wsgi-4.3.0-py2.6-linux-x86_64.egg

how could I compile mod_wsgi so that it also includes python libs, any ideas?

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#4

IIRC it's quite non-trivial to do that. But why you need to compile wsgi ? Usually it's much easier to use package manager of your OS.
On which OS are you doing that?

For python 2.6 I suspect it's some RH derivative, so, just run "yum install httpd mod_wsgi -y". For Debian-based system just run something like "sudo apt-get install libapache2-mod-wsgi apache2-mpm-worker -y".

Revision history for this message
mike (gsaray101) said :
#5

@Dennis Zhdanov, I am on Suse version 11.3

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#6

Then you need something like http://taombo.com/taombo-blog/installing-mod_wsgi-for-apache-on-opensuse
if apache2-mod_wsgi is still available. for opensuse 11.3 EOL was on 2012-01-16, but suse 11.3 updates are still available.

Revision history for this message
mike (gsaray101) said :
#7

that's the problem, I am on suse 11.3 and cannot find the apache package for it. Let me know if you know anywhere that I can get it.

Can you help with this problem?

Provide an answer of your own, or ask mike for more information if necessary.

To post a message you must log in.