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

assemble command fails on python3 (os x) #77

Closed
patricksurry opened this issue Sep 12, 2023 · 1 comment
Closed

assemble command fails on python3 (os x) #77

patricksurry opened this issue Sep 12, 2023 · 1 comment

Comments

@patricksurry
Copy link

py65/utils/console.py isn't decoding bytes to string properly on os x:

        PC  AC XR YR SP NV-BDIZC
65C02: 0000 00 00 00 ff 00110000
.assemble 1000
$1000            Traceback (most recent call last):
  File ".../py65/py65/monitor.py", line 160, in onecmd
    result = cmd.Cmd.onecmd(self, line)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/cmd.py", line 217, in onecmd
    return func(arg)
           ^^^^^^^^^
  File ".../py65/py65/monitor.py", line 341, in do_assemble
    return self._interactive_assemble(args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../py65/py65/monitor.py", line 379, in _interactive_assemble
    line = console.line_input(prompt,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../py65/py65/utils/console.py", line 217, in line_input
    line += char
TypeError: can only concatenate str (not "bytes") to str
@patricksurry
Copy link
Author

Fixed by #78

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