Patrick-Hogan / wandering_inn

Download and convert The Wandering Inn to epub and mobi (kindle) format
27 stars 16 forks source link

can't get it to work #3

Closed wiseboar closed 2 years ago

wiseboar commented 2 years ago

installed Python 3.7 created a virtual environment using conda pip install -r requirements.txt

When I try to run ./wanderinginn2mobi.sh --help in bash I get: sed: can't read recipients.txt: No such file or directory ./wanderinginn2mobi.sh: line 19: ebook-convert: command not found I created an empty recipients.txt (whatever it is for) so now it only say ./wanderinginn2mobi.sh: line 19: ebook-convert: command not found

The submodule installation seems to have gone fine (the folder 'ebookmaker' is not empty and I can import ebookmaker in ipython

I'd love to get a hint on how I could get this to work. I'm supporting the author on Patreon but I reeeealy don't want to read in a Browser cheers

wiseboar commented 2 years ago

Ok so I should have read this more closely, sorry. Just running the python script yields what I was after:

_/home//GIT/wandering_inn/ebookmaker/ebookmaker.py:65: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 65 of the file /home/wiseboar/GIT/wandering_inn/ebookmaker/ebookmaker.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

soup = BeautifulSoup(f.read()) /home///GIT/wandering_inn/ebookmaker/ebookmaker.py:78: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 78 of the file /home//GIT/wandering_inn/ebookmaker/ebookmaker.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

soup = BeautifulSoup(f.read()) Generating ePub file for eBook "The Wandering Inn". ePub file "./build/The Wandering Inn.epub" successfully generated._

The file contains everything! yeehah thanks so much, this is awesome