Most definitely a first world problem as it's something I use infrequently, and can work around by starting a bhyve Linux machine, and doing the conversion there. At any rate, at some point, (I am not sure when), calibre's ebook convert, especially when I try to convert a text file to an epub, will fail with
I though it might be from mixing ports and packages so tried removing calibre, running pkg autoremove and reinstalling from ports, but the issue remains. (for packages, I use latest, not quarterly). As web searching has shown me nothing, I suspect it's a Just Me(tm) issue, but thought I'd ask here and see if anyone had ideas.
ebook-convert works on most pdfs to epub--I think I've had a similar error happen on one pdf, but am not sure, when I tried a few before posting this thread, they all worked.
Code:
ebook-convert gpgnotes.txt gpgnotes.epub
1% Converting input to HTML...
InputFormatPlugin: TXT Input running
on /home/scottro/textfiles/gpgnotes.txt
Traceback (most recent call last):
File "/usr/local/bin/ebook-convert", line 21, in <module>
sys.exit(main())
File "/usr/local/lib/calibre/calibre/ebooks/conversion/cli.py", line 422, in main
plumber.run()
File "/usr/local/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1122, in run
self.oeb = self.input_plugin(stream, self.opts,
File "/usr/local/lib/calibre/calibre/customize/conversion.py", line 245, in __call__
ret = self.convert(stream, options, file_ext,
File "/usr/local/lib/calibre/calibre/ebooks/conversion/plugins/txt_input.py", line 209, in convert
det_encoding = detect(txt[:4096])
File "/usr/local/lib/calibre/calibre/ebooks/chardet.py", line 112, in detect
from calibre_extensions.uchardet import detect as implementation
ImportError: /usr/local/lib/calibre/calibre/plugins/uchardet.so: Undefined symbol "PyModule_AddObjectRef"
ebook-convert works on most pdfs to epub--I think I've had a similar error happen on one pdf, but am not sure, when I tried a few before posting this thread, they all worked.
Last edited by a moderator: