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

Bug, #1

Open
SpiderPL opened this issue Feb 1, 2023 · 0 comments
Open

Bug, #1

SpiderPL opened this issue Feb 1, 2023 · 0 comments

Comments

@SpiderPL
Copy link

SpiderPL commented Feb 1, 2023

Hi, it doesn't work for me when I load a gp3 file as well as a gp5 file.

UnicodeDecodeError Traceback (most recent call last)
Cell In [1], line 18
15 tempo = 100
17 t = Tabs(fname)
---> 18 t.preprocess()
19 t.displayTabs()
20 t.convertNotes()

File ~/project/read_tabs.py:14, in Tabs.preprocess(self)
12 def preprocess(self):
13 with open(self.fname) as f:
---> 14 content = f.readlines()
16 content = [x.strip() for x in content]
18 for symbol in self.symbols:

File /usr/lib/python3.10/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final)
319 def decode(self, input, final=False):
320 # decode input (taking the buffer into account)
321 data = self.buffer + input
--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)
323 # keep undecoded input until the next call
324 self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 28: invalid start byte

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