This isn't just happening on TOR books, but this one I've been testing with trying to isolate the issue. The book I'm working with is available for free from TOR
here. The book is unencrypted. I am able to use mobiperl to convert to HTML, and then to lrf but I'd really like to be able to do this in the gui.
Code:
ValueError: OPF should only refer to files below it. C:\Program Files\libprs500\The_Disunite-tes_of_America.html is above c:\docume~1\edembo~1\locals~1\temp\libprs500stos2qmobi2lrf
Failed to perform job: Convert book: Disunited States of America
Detailed traceback:
Traceback (most recent call last):
File "parallel.py", line 139, in run_job
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 158, in main
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 131, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 28, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 17, in generate_html
File "libprs500\ebooks\mobi\reader.pyo", line 176, in extract_content
File "libprs500\ebooks\mobi\reader.pyo", line 188, in create_opf
File "libprs500\ebooks\metadata\opf.pyo", line 534, in create_manifest
ValueError: OPF should only refer to files below it. C:\Program Files\libprs500\The_Disunite-tes_of_America.html is above c:\docume~1\edembo~1\locals~1\temp\libprs500stos2qmobi2lrf
Log:
Now, I've tried keeping the .prc file on another drive but this has no effect. Running any2lrf in verbose mode has no effect. This error is confusing since it sounds like
C:\Program Files\libprs500\The_Disunite-tes_of_America.html
is considered a parent directory of
c:\docume~1\edembo~1\locals~1\temp\libprs500stos2q mobi2lrf
When I set TMP and TEMP to another drive:
Code:
C:\Documents and Settings\edembowski\My Documents\My eBooks>any2lrf.exe --verbos
e "Turtledove, Harry - The Disunited States of America.prc"
Traceback (most recent call last):
File "convert_from.py", line 161, in <module>
File "convert_from.py", line 158, in main
File "convert_from.py", line 131, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 28, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 17, in generate_html
File "libprs500\ebooks\mobi\reader.pyo", line 176, in extract_content
File "libprs500\ebooks\mobi\reader.pyo", line 188, in create_opf
File "libprs500\ebooks\metadata\opf.pyo", line 534, in create_manifest
ValueError: OPF should only refer to files below it. C:\Documents and Settings\edembowski\My Documents\My eBooks\The_Disunite-tes_of_America.html is above d:\tmp\libprs500on0zcsmobi2lrf
It now thinks that C:\Documents and Settings\edembowski\My Documents\My eBooks\The_Disunite-tes_of_America.html is above d:\tmp\libprs500on0zcsmobi2lrf
Is anyone else seeing problems like this? I'm using 0.4.49 of libprs500.
- Ed