shun-liang / yt2doc

YouTube, Apple Podcasts (and more) to readable Markdown.
MIT License
283 stars 10 forks source link

IOexception #31

Closed shun-liang closed 1 month ago

shun-liang commented 1 month ago

https://www.reddit.com/r/DataHoarder/comments/1g4342q/comment/ls2hv18/

I'm having a lot of issues trying to get this going on Windows.

First UV didn't work to install it (something about Torch version). Switched to pipx install method. It hung on installing librariesent or something? (it's off the buffer now). Tried to install again, said it was installed. I ran --help and it worked but it took 20 seconds for it to return anything.

Ran one of the examples (specifying output and video url) to see if it worked and it just spit out a ton of YoutubeDL errors and I kinda gave up.

https://www.reddit.com/r/DataHoarder/comments/1g4342q/comment/lsfz2py/

This is Win 10, but had similar issues on Win 11.

I did not have ffmpeg specified in path, so I added it. That meant the output could work (without specifying a file).

I ran into trouble trying to specify an output file. Tried full path, relative path, just the filename, in single and double quotes, forward slashes and back slashes, leading slash/no leading slash and could not get anything to work.

Here's the output for one try, for what it's worth. It was always the same IOexception: https://i.imgur.com/J9dFHtj.png

What finally worked is simply specifying output in the usual way, i.e. command > file.txt.

I see you've taken Windows install instructions off the github. If you happen to add them back, hopefully this info is useful for when dummies like me try to install your stuff. You could also add instructions to activate the venv, which would be helpful to someone unfamiliar with newer versions of python.

shun-liang commented 1 month ago

Fixed in https://github.com/shun-liang/yt2doc/releases/tag/0.2.6