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

ImportProjectFromFile decode error #15

Open
DavidPMika opened this issue Aug 30, 2024 · 0 comments
Open

ImportProjectFromFile decode error #15

DavidPMika opened this issue Aug 30, 2024 · 0 comments

Comments

@DavidPMika
Copy link

from acd.api import ImportProjectFromFile
controller = ImportProjectFromFile("my.ACD").import_project().controller

results in

Traceback (most recent call last):
File "", line 1, in
File "/home/m/.local/lib/python3.10/site-packages/acd/api.py", line 44, in import_project
export = ExportL5x(self.filename)
File "", line 7, in init
File "/home/m/.local/lib/python3.10/site-packages/acd/l5x/export_l5x.py", line 114, in post_init
CommentsRecord(self._cur, record)
File "", line 5, in init
File "/home/m/.local/lib/python3.10/site-packages/acd/record/comments.py", line 16, in post_init
r = FafaComents.from_bytes(self.dat_record.record.record_buffer)
File "/home/m/.local/lib/python3.10/site-packages/kaitaistruct.py", line 52, in from_bytes
return cls(KaitaiStream(BytesIO(buf)))
File "/home/m/.local/lib/python3.10/site-packages/acd/generated/comments/fafa_coments.py", line 19, in init
self._read()
File "/home/m/.local/lib/python3.10/site-packages/acd/generated/comments/fafa_coments.py", line 38, in _read
self.body = FafaComents.AsciiRecord(_io__raw_body, self, self._root)
File "/home/m/.local/lib/python3.10/site-packages/acd/generated/comments/fafa_coments.py", line 84, in init
self._read()
File "/home/m/.local/lib/python3.10/site-packages/acd/generated/comments/fafa_coments.py", line 92, in _read
self._io.read_bytes_term(0, False, True, True)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 0: 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