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

can't run a script((( #1

Open
midi-creator opened this issue Aug 21, 2024 · 5 comments
Open

can't run a script((( #1

midi-creator opened this issue Aug 21, 2024 · 5 comments

Comments

@midi-creator
Copy link

midi-creator commented Aug 21, 2024

Greetings, install bitstring

and....

C:\Users\1\AppData\Local\Programs\Python\Python312>python.exe toc.py toc.bin example.cue
Traceback (most recent call last):
File "C:\Users\1\AppData\Local\Programs\Python\Python312\toc.py", line 33, in
seconds = read_cuefile(Path(args.cuefile))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\1\AppData\Local\Programs\Python\Python312\toc.py", line 13, in read_cuefile
for l in f:
^
File "C:\Users\1\AppData\Local\Programs\Python\Python312\Lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 317: character maps to

@midi-creator
Copy link
Author

helpppp....

@midi-creator
Copy link
Author

first cue then bin python toc.py p.cue toc.bin
in this order works

@Havrevoll
Copy link
Owner

Hello, I'm sorry, I was busy this evening, but it seems you found a solution. I will have a look at it myself tomorrow morning. The script is very crude and not sophisticated, so please bear over if it's a little cumbersome to use. With time I will try to make it more robust and flexible.

@midi-creator
Copy link
Author

Yes, thank you for your hard work!
It's working perfectly
how to extract the timing information?
What is cuebreakpoints? another script for python?

@midi-creator
Copy link
Author

while I was manually extracting the timing from cue

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