wustho / epy

CLI Ebook (epub2, epub3, fb2, mobi) Reader
GNU General Public License v3.0
962 stars 52 forks source link

crashed for read epub #56

Open jufei opened 2 years ago

jufei commented 2 years ago

的人容易疏远,所以察选人才者经常被而忘记了考察他的品德。自古至今,国家的乱臣奸佞,家族的败家浪子,因为才有余而德不足,导致家国覆亡的多了,又何止 瑶呢!所以治国治家者如果能审察才与 no attribute 'close' Traceback (most recent call last): File "/usr/local/bin/epy", line 11, in load_entry_point('epy-reader==2022.3.25', 'console_scripts', 'epy')() File "/usr/local/lib/python3.6/site-packages/epy_reader-2022.3.25-py3.6.egg/epy.py", line 3987, in main filepath = curses.wrapper(preread, filepath) File "/usr/lib64/python3.6/curses/init.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "/usr/local/lib/python3.6/site-packages/epy_reader-2022.3.25-py3.6.egg/epy.py", line 3886, in preread reading_state_or_ebook = reader.read(reading_state) File "/usr/local/lib/python3.6/site-packages/epy_reader-2022.3.25-py3.6.egg/epy.py", line 3792, in read self.try_assign_letters_count() File "/usr/local/lib/python3.6/site-packages/epy_reader-2022.3.25-py3.6.egg/epy.py", line 2448, in try_assign_letters_count self._process_counting_letter.close() AttributeError: 'Process' object has no attribute 'close'

env: Centos 7, Python 3.6.8

wustho commented 2 years ago

Hey, there, just checked, that seems weird, somehow I cannot recreate the issue. Can you by any chance run it in python version >= 3.7?

There is major refactoring as stated in README.md changelog:

v2021.10.23: Major refactoring which harness a lot of new stuff in python>=3.7 and epy won't be backward compatible with older python version and older configuration.