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

Retag of music files still not working with python 3 and pyrescene, no problem with python 2.7 #23

Open
manixu opened this issue Dec 24, 2024 · 0 comments

Comments

@manixu
Copy link

manixu commented Dec 24, 2024

Environment: Windows 10
Python 3.12.8
current pyrescene

CMD: python d:retag.py flac_file.srr --output test

Using flac_file.srs
Fixing flac_file.flac
From .\flac_file.flac
SRS Load Complete... Elapsed Time: 0.00s
Track Location Complete... Elapsed Time: 0.00s
Track Extraction Complete... Elapsed Time: 0.32s
Traceback (most recent call last):
File ".\resample\srs.py", line 514, in main
sfile = sample.rebuild_sample(srs_data, tracks, attachments,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".\resample\main.py", line 668, in rebuild_sample
return flac_rebuild_sample(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".\resample\main.py", line 3772, in flac_rebuild_sample
elif (fr.block_type in bytearray(b"stu") and
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
Unexpected Error:
a bytes-like object is required, not 'str'

same CMD with python 2.7:

Using flac_file.srs
Fixing flac_file.flac
From .\flac_file.flac
SRS Load Complete... Elapsed Time: 0.00s
Track Location Complete... Elapsed Time: 0.01s
Track Extraction Complete... Elapsed Time: 0.15s
Rebuild Complete... Elapsed Time: 0.37s

File Details: Size CRC
------------- --------
Expected : 43.491.226 F84F4BED
Actual : 43.491.226 F84F4BED

Successfully rebuilt sample: flac_file.flac

Also release 0.7-w32 fails with:
TypeError: 'str' does not support the buffer interface

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

1 participant