Havrevoll / md

2 stars 0 forks source link

can't run a script((( #1

Open midi-creator opened 3 weeks ago

midi-creator commented 3 weeks ago

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 commented 3 weeks ago

helpppp....

midi-creator commented 3 weeks ago

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

Havrevoll commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

while I was manually extracting the timing from cue