View Single Post
Old 11-28-2012, 07:49 AM   #1
vil_coyotte
Junior Member
vil_coyotte began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2012
Device: Ipad
Another error with the calibre content server

Hello,
I have another error with the calibre server content.
I don't understand exactly how to make a good configuration to run calibre content server on linux.

I follow this help file:
http://manual.calibre-ebook.com/server.html

I will run the server in process.
So, i create a WSGI adapter as describe on the help page.
I restart apache2, anything OK, no errors or warning.

But when i try to access to the website, i have a 500 Internal error.
In the Apachae2 error log, the following:

" [Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] mod_wsgi (pid=11232): Target WSGI script '/var/www/cgi-bin/calibre-wsgi-adapter.py' cannot be loaded as Python module.
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] mod_wsgi (pid=11232): Exception occurred processing WSGI script '/var/www/cgi-bin/calibre-wsgi-adapter.py'.
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] Traceback (most recent call last):
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] File "/var/www/cgi-bin/calibre-wsgi-adapter.py", line 29, in <module>
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] from calibre.library.server.main import create_wsgi_app
[Wed Nov 28 13:44:03 2012] [error] [client 192.168.10.20] ImportError: No module named calibre.library.server.main "

I create a virtualhost ass describe below:

<VirtualHost _Default_:80>

ServerName calibre.XXX.XXX.XXX.fr
WSGIScriptAlias /calibre /var/www/cgi-bin/calibre-wsgi-adapter.py

</VirtualHost>

But i get no result :-(

Can anyone help me please ?
vil_coyotte is offline   Reply With Quote