Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Termux related problem while opening epr #44

Open
tathastu871 opened this issue Nov 20, 2021 · 4 comments
Open

Termux related problem while opening epr #44

tathastu871 opened this issue Nov 20, 2021 · 4 comments

Comments

@tathastu871
Copy link

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'

@wustho
Copy link
Owner

wustho commented Nov 20, 2021

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.

@tathastu871
Copy link
Author

with epy it opens properly

@tathastu871
Copy link
Author

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

@wustho
Copy link
Owner

wustho commented Nov 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants