Aleksandar Erkalović said:Reply to @Vibol+Seng:
Objavi needs to access bookizip.py which is inside of Booktype source. So, in your case you need to have source of Booktype somewhere in PYTHONPATH to make this error go away. We are doing some structural changes in Objavi and this "feature" will go away, but for now you must have Booktype source as well.
I'm stuck now at the same problem my error log shows:
[Tue Jul 03 20:59:05 2012] [notice] caught SIGTERM, shutting down
[Tue Jul 03 20:59:06 2012] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Tue Jul 03 20:59:06 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Tue Jul 03 20:59:06 2012] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Tue Jul 03 20:59:16 2012] [error] [client 111.222.333.444] Directory
index forbidden by Options directive:
/home/rdv/objavi2/htdocs/shared/
[Tue Jul 03 20:59:16 2012] [error] [client 111.222.333.444] File does not exist: /home/rdv/objavi2/htdocs/shared/favicon.ico
[Tue Jul 03 20:59:17 2012] [error] [client 111.222.333.444] File does not exist: /home/rdv/objavi2/htdocs/shared/favicon.ico
[Tue Jul 03 20:59:17 2012] [error] [client 111.222.333.444] File does not exist: /home/rdv/objavi2/htdocs/shared/favicon.ico
Traceback (most recent call last):
File "/home/rdv/objavi2/htdocs/objavi.cgi", line 32, in <module>
from objavi.fmbook import Book, HTTP_HOST, find_archive_urls
File "/home/rdv/objavi2/objavi/fmbook.py", line 44, in <module>
from objavi import config, epub_utils
File "/home/rdv/objavi2/objavi/epub_utils.py", line 14, in <module>
from booki.bookizip import get_metadata
ImportError: No module named booki.bookizip
Traceback (most recent call last):
File "/home/rdv/objavi2/htdocs/objavi.cgi", line 32, in <module>
from objavi.fmbook import Book, HTTP_HOST, find_archive_urls
File "/home/rdv/objavi2/objavi/fmbook.py", line 44, in <module>
from objavi import config, epub_utils
File "/home/rdv/objavi2/objavi/epub_utils.py", line 14, in <module>
from booki.bookizip import get_metadata
ImportError: No module named booki.bookizip
I changed a lot of stuff in config.py but I'm not getting it to work.
Well I managed to solve this error, it was easy.
My Booki source is found here:
/home/rdv/Booki
Objavi2 here:
/home/rdv/objavi2
What I did to solve the "ImportError: No module named booki.bookizip" problem is:
ln -s /home/rdv/Booki/lib/booki /home/rdv/objavi2
******* got message "wait_for_xvfb"Maybe this is part of the problem?
/bin/wkhtmltopdf -q --page-width 210.0 --page-height 297.0 -T 16.1611111111 -R 19.9619444444 -B 18.1013888889 -L 19.9619444444 -d 100 --outline --outline-depth 2 --dump-outline /home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/outline.txt http://objavi2.test.nl/missing_path?/home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/body.html /home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/body.pdf
/bin/wkhtmltopdf -q --page-width 210.0 --page-height 297.0 -T 16.1611111111 -R 19.9619444444 -B 18.1013888889 -L 19.9619444444 -d 100 --outline --outline-depth 2 --dump-outline /home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/outline.txt http://objavi2.test.nl/missing_path?/home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/body.html /home/rdv/objavi2/tmp/test-en-2012.07.04-01.03.20.pdf3YzUtI/body.pdf
/bin/wkhtmltopdf returned 2 and produced
stdout:
stderr:QSslSocket: cannot resolve SSLv2_client_method
QSslSocket: cannot resolve SSLv2_server_method
Exit with code 2 due to http error: 404 Page not found
Other error that I see in the log:
stderr:QSettings: error creating /.qt
QSettings: error creating /.qt
...
pdftk returned 0 and produced
stdout:
stderr:
notify_watcher called with 'concatenated_pdfs'
/bin/wkhtmltopdf
It looks like you're new here. If you want to get involved, click one of these buttons!