-
Notifications
You must be signed in to change notification settings - Fork 29
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
OSError: Could not read file name.flac #103
Comments
Did you check the file's permissions? ( |
Here they are: -rw-rw-r--
Is there something wrong with this?
Den lör 28 maj 2022 kl 19:58 skrev Michael Helmling <
***@***.***>:
… Did you check the file's permissions? (ls -l name.flac)?
—
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZRPSJFXIAQMRCKV5VJWEDVMJNCZANCNFSM5VFVHVDA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @donlombardo, |
I'm sorry for my very late reply. Tes, Puddletag for example reads it just fine. I've put together a small example that doesn't work for me. Output is: |
Hi @donlombardo, |
Thank you for trying! It worked flawlessly on Ubuntu, so I guess you're right :) |
Having a same problem with .webm audio downloaded from yt-dlp, but everything works with a .m4a downloaded from a same video. I'm using Arch Linux with Python 3.10.9, pytaglib 2.0.0 and taglib 1.13-1.
|
@supermihi: I can reliably reproduce this error - I'm running a Python script on a large set of FLAC files to analyze them. I'm using the 3.0.0 release of pytaglib on macOS using Python 3.12.4, and scanning files on an external drive formatted as an exFAT volume. What's odd is that:
for i, filename in track_filenames:
with taglib.File(filename) as track_taglib:
tracks.append({
'filename': filename,
'tags': track_taglib.tags
}) Example output:
It looks like this line in
... but the last step fails:
What's odd is that the directory does seem to exist: Are there any other debugging steps you recommend? |
I decided to try the same codebase and FLAC library on Debian Linux 12.6 (bookworm) using the same version of pytaglib—TagLib was able to read all files without a hitch. This indicates it's something unique to either reading off the ExFAT filesystem, or the macOS implementation of TagLib. (Just surmising here.) |
On the latest Linux Mint xfce, converting 24/44100 wav extracted with Reaper to flac with SoundConverter, I get this error when trying o read it.
Traceback (most recent call last):
File "retageq.py", line 38, in
tagged = taglib.File("name.flac")
File "src/taglib.pyx", line 87, in taglib.File.cinit
OSError: Could not read file name.flac
It used to work in Xubuntu.
Install:
pip3 install pytaglib
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pytaglib in /home/andre/.local/lib/python3.8/site-packages (1.5.0)
libtag1-dev is already the newest version (1.11.1+dfsg.1-0.3ubuntu2).
What can I do?
The text was updated successfully, but these errors were encountered: