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

FileExistsError #2

Closed
suntrop opened this issue Dec 14, 2022 · 4 comments
Closed

FileExistsError #2

suntrop opened this issue Dec 14, 2022 · 4 comments

Comments

@suntrop
Copy link

suntrop commented Dec 14, 2022

I just discovered your tool last week and had tested some videos, and it worked fine. Liked it and was nice and easy to work with. But today no video and no YouTube URL work. Didn't change anything in particular. Seems to be a problem with permissions? Did try to run as sudo and made sure write permissions are OK.

Getting this error on every file or URL:

sam@sams-iMac-2 Transcribe_Anything-test % transcribe_anything ./video.mp4
Traceback (most recent call last):
  File "/usr/local/bin/transcribe_anything", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/transcribe_anything/cmd.py", line 54, in main
    transcribe(
  File "/usr/local/lib/python3.10/site-packages/transcribe_anything/api.py", line 55, in transcribe
    os.makedirs(output_dir, exist_ok=True)
  File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: 'video.mp4'

I am using Python 3.10.8 on macOS 12.6.1


EDIT
Just noticed, when I set output like dir --output_dir "./output/" it works

@zackees
Copy link
Owner

zackees commented Dec 14, 2022

Help me reproduce the issue by providing your exact command you are executing that are giving you the problems.

@zackees
Copy link
Owner

zackees commented Dec 15, 2022

I was able to reproduce it. I'll issue a fix

zackees added a commit that referenced this issue Dec 15, 2022
@zackees
Copy link
Owner

zackees commented Dec 15, 2022

Okay it's fixed, please run pip install transcribe-anything --upgrade to get the latest version

@suntrop
Copy link
Author

suntrop commented Dec 15, 2022

Thanks! Works nicely again 👍

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