View Single Post
Old 11-21-2010, 02:03 PM   #14
myudkowsky
Enthusiast
myudkowsky began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2010
Device: Andoid
Thanks, almost there. I've enabled WSGI. I get a 500 error message with the following error report:

Code:
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1] mod_wsgi (pid=15170): Target WSGI script '/var/www/calibre-apache-config/scripts/calibre-wsgi-adapter.py' cannot be loaded as Python module.
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1] mod_wsgi (pid=15170): Exception occurred processing WSGI script '/var/www/calibre-apache-config/scripts/calibre-wsgi-adapter.py'.
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1]   File "/var/www/calibre-apache-config/scripts/calibre-wsgi-adapter.py", line 38, in <module>
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1]     from calibre.library.server.main import create_wsgi_app
[Sun Nov 21 12:48:16 2010] [error] [client 127.0.0.1] ImportError: No module named calibre.library.server.main
I'm using a binary installation, which puts all the modules inside /usr/local/calibre/loader.zip. calibre-debug --paths gives me

Code:
CALIBRE_RESOURCES_PATH=/usr/local/calibre/resources
CALIBRE_EXTENSIONS_PATH=/usr/local/calibre/plugins
CALIBRE_PYTHON_PATH=/usr/local/calibre/loader:/usr/local/calibre:/usr/local/calibre/loader.zip
And my customized wsgi script contains:

Code:
# The first entry from CALIBRE_PYTHON_PATH
sys.path.insert(0, '/usr/local/calibre/loader')
If you have any additional hints, I'd be grateful.
myudkowsky is offline   Reply With Quote