Skip to content

Modification needed to run the bootstrap in swapforth/j1b/verilator w…#73

Merged
jamesbowman merged 1 commit intojamesbowman:masterfrom
wzab:fix_new_verilator
Aug 27, 2021
Merged

Modification needed to run the bootstrap in swapforth/j1b/verilator w…#73
jamesbowman merged 1 commit intojamesbowman:masterfrom
wzab:fix_new_verilator

Conversation

@wzab
Copy link
Copy Markdown
Contributor

@wzab wzab commented Aug 27, 2021

…ith new version of Python 3.

Without that, an error occurs:

Traceback (most recent call last):
File "/tmp/swapforth/j1b/verilator/shell.py", line 53, in
swapforth.main(TetheredJ1b)
File "../../shell/swapforth.py", line 385, in main
r.shell()
File "../../shell/swapforth.py", line 339, in shell
self.shellcmd(cmd)
File "../../shell/swapforth.py", line 197, in shellcmd
d = self.serialize()
File "/tmp/rr/swapforth/j1b/verilator/shell.py", line 49, in serialize
s = array.array('B', s).tostring().ljust(32768, chr(0xff))
AttributeError: 'array.array' object has no attribute 'tostring'

…ith new version of Python 3.

Without that, an error occurs:

Traceback (most recent call last):
  File "/tmp/swapforth/j1b/verilator/shell.py", line 53, in <module>
    swapforth.main(TetheredJ1b)
  File "../../shell/swapforth.py", line 385, in main
    r.shell()
  File "../../shell/swapforth.py", line 339, in shell
    self.shellcmd(cmd)
  File "../../shell/swapforth.py", line 197, in shellcmd
    d = self.serialize()
  File "/tmp/rr/swapforth/j1b/verilator/shell.py", line 49, in serialize
    s = array.array('B', s).tostring().ljust(32768, chr(0xff))
AttributeError: 'array.array' object has no attribute 'tostring'
@jamesbowman jamesbowman merged commit d4ce57b into jamesbowman:master Aug 27, 2021
@jamesbowman
Copy link
Copy Markdown
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants