View Single Post
Old 06-10-2011, 04:20 AM   #1
Cybertinus
Junior Member
Cybertinus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: none
Folder not valid

Hello everybody,

I'm trying to build a simple tool in PHP to automatically convert eBooks from PDF to HTMLZ (I need to do some processing afterwards, so I need HTMLZ). But I get the following error from ebook-convert.exe:
Code:
Python function terminated unexpectedly
  Folder not valid (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 84, in run_entry_point
  File "site-packages\calibre\__init__.py", line 15, in <module>
  File "site-packages\calibre\constants.py", line 126, in <module>
ValueError: Folder not valid
What can cause this? I run the following command:
Code:
"C:\Program Files (x86)\Calibre2\ebook-convert.exe" C:\inetpub\wwwroot\epubgenerator\work\Pink_Cover039.pdf C:\inetpub\wwwroot\epubgenerator\work\Pink_Cover039.htmlz > error 2>&1
The error above is the complete content of the error file.

When I copy the command to the cli, it works perfectly .

Does anybody what can be wrong? I've checked the permissions on the file Pink_cover039.pdf and Everyone has all permissions, so that can't be the problem.
Cybertinus is offline   Reply With Quote