-
Notifications
You must be signed in to change notification settings - Fork 2
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
Read operation timed out/Nothing to bind? #5
Comments
Also - tried this around with other epub files, most of the time got the same bind error however recently got a Full code: |
Hey @Paul10142 , thank you for reaching out! The code that actually parses the epub can be a bit fragile. Can you try the following for me:
Epub files often are poorly written / don't follow the proper format, so normalizing them through Calibre can sometimes help fix those issues. If that doesn't do it, then if you're able, I might have you send me a copy of one of the epubs that didn't work, so I can do some troubleshooting on my side. Thank you, |
Hey @duplaja thanks so much for the quick response! I had originally used a calibre epub file, however I just went and reconverted it to a different file. When running through the script using Please let me know if I am using your code properly (using the cd command to search within the epub-to-audiobook-hf folder + replacing the
|
Wanted to start out by thanking you for creating such an awesome tool. I have absolutely no coding background (just downloaded Python today) but have been trying to teach myself things for the last few hours in order to try to make this product to work.
I installed the dependencies (although needed to adjust code to "
pip3 install -r requirements.txt
" to work. I have successfully made a copy of the StyleTTS2 space and added billing info to Hugging Face, and updated the "epub-to-audiobook-hf.py" script with the API key and token. I did not opt to add a Repo ID. The epub file I'm testing out, "lying.epub", was added to the same folder as the python script.I'm on Mac, and I used the cd + file pathway for the "epub-to-audiobook-hf" folder before proceeding. I had a lot of errors running the code
python3 epub-to-audiobook-hf.py .
, namelyNo such file or directory: './META-INF/container.xml'
. However, I eventually realized that if I replaced the.
with the name of the file, I could get the program to start running . In the example used, that would bepython3 epub-to-audiobook-hf.py lying.epub
However, at this point I now get a
httpx.ReadTimeout: The read operation timed out
error (copied below). It sounds like this is due to an error processing data from the StyleTTS 2 website, but am able to figure out beyond that. Occasionally get a folder for the audio file to generate in <1 sec, but receive a different error:Converting Chapters using StyleTTS 2, via HF Spaces Loaded as API: https://paul202-styletts2-public.hf.space/ ✔ Chapters done generating, now converting to m4b. Collecting file data... File scan complete. Error: Nothing to bind.
With the above error, the code will spit out the name and author of the book which makes me feel that it is at least able to read some of the .epub file. I have confirmed that my API and token are properly added in the python script without errors. Please let me know how I could go about fixing this, and I apologize in advance since I assume this is a very basic question. (PS. working on this has motivated me to start learning the basics of coding and python!).
The text was updated successfully, but these errors were encountered: