Booki logo

I installed booki and objiva2 on my own ubuntu server (in a virtual box), it all seems ok but when exporting a book the process stops with a BadZipFile error. a .zip file with the book in non compressed html format is store in the <objavi2path>/htdocs/booki-books folder and I assume the errors occurs when the next step tries to read what it thinks is a .zip file to convert it to pdf. I get an url pointing to the (non existing) .pdf file.

I might have missed something in the installation phase, may be a library for zipping the file but I am a little lost here. any help/fix is welcome.

objavi.log is the following

------ 8< Cut Here 8< ------

Starting request for /objavi.cgi
effective query is:
{'engine': 'webkit', 'license': 'GPLv2+', 'title': 'Test book', 'destination': 'nowhere', 'max-age': '0', 'pdf_type': 'book', 'book': 'test-book', 'mode': 'book', 'server': 'en.flossmanuals.net', 'booksize': 'COMICBOOK'}
templates/nowhere.txt
text/plain; charset=utf-8
nowhere
sync
in get_watchers. method 'sync', callback None, destination 'nowhere'
watchers are set([<bound method Context.log_notifier of <__main__.Context object at 0x1766f10>>])
*** Starting new book testbook-en-2011.12.02-19.25.37.pdf ***
notify_watcher called with 'start'
******* got message "start"
fetching zip from http://192.168.1.6/booki-twiki-gateway.cgi?server=en.flossmanuals.net&book=test-book&mode=zip
notify_watcher called with 'fetch_zip'
******* got message "fetch_zip"
Traceback (most recent call last):
  File "/home/colivier/Sources/objavi2/htdocs/objavi.cgi", line 444, in <module>
    main()
  File "/home/colivier/Sources/objavi2/htdocs/objavi.cgi", line 437, in main
    output_function(args)
  File "/home/colivier/Sources/objavi2/htdocs/objavi.cgi", line 332, in mode_book
    page_number_style=args.get('page-numbers'),
  File "/home/colivier/Sources/objavi2/objavi/fmbook.py", line 191, in __init__
    self.store = zipfile.ZipFile(f, 'r')
  File "/usr/lib/python2.7/zipfile.py", line 712, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 746, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 761, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

------ 8< Cut Here 8< ------

Thanks

asked Dec 02 '11 at 12:59

wasabi1809's gravatar image

wasabi1809
11

edited Dec 05 '11 at 04:47

eset's gravatar image

eset ♦♦
15115


hey

i will ask one of the devs to look at this and get back to you asap

adam

link

answered Dec 05 '11 at 04:45

eset's gravatar image

eset ♦♦
15115

Hi!

you are trying to import book from en.flossmanuals.net, and we changed the architecture of that site in the mean time. We forgot to update the code in the meantime and current code is trying to import book in the old way. You can try to import books from "Booki". That would be books from www.booki.cc website. Will update the code and thank you for reporting the problem :)

Aco

link

answered Dec 05 '11 at 05:07

aerkalov's gravatar image

aerkalov
1

Hello Aerkalov,

Thanks, did you see I am running my own installation of the software? still your answer might be the reason and the 2 sw are not aligned in the way of communicating due to a version missmatch...

thanks, Christian

link

answered Dec 05 '11 at 08:02

wasabi1809's gravatar image

wasabi1809
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1

Asked: Dec 02 '11 at 12:59

Seen: 186 times

Last updated: Dec 05 '11 at 08:02