epr icon indicating copy to clipboard operation
epr copied to clipboard

Termux related problem while opening epr

Open tathastu871 opened this issue 2 years ago • 4 comments

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/epr", line 8, in sys.exit(main()) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/epr.py", line 1253, in main curses.wrapper(preread, file) File "/data/data/com.termux/files/usr/lib/python3.10/curses/init.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/epr.py", line 1143, in preread epub.initialize() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/epr.py", line 198, in initialize name = j.find("DAISY:navLabel/DAISY:text", self.NS).text AttributeError: 'NoneType' object has no attribute 'text'

tathastu871 avatar Nov 20 '21 05:11 tathastu871

Hello there, seems like issue with the epub. Some epubs was just not structured according standard... Maybe you can try other epub file for the same book title? Or opening the epub with epr fork: https://github.com/wustho/epy it will give detailed error if book is not well structured.

wustho avatar Nov 20 '21 06:11 wustho

with epy it opens properly

tathastu871 avatar Nov 20 '21 16:11 tathastu871

another epub opened properly with epr but some epub doesn't but same epub opened properly with epy

tathastu871 avatar Nov 20 '21 16:11 tathastu871

Ah thanks for detailed traceback will check it out...

wustho avatar Nov 20 '21 16:11 wustho