Skip to content

Instantly share code, notes, and snippets.

cecy@cecy-Inspiron-N4020:~/Downloads$ unzip Pyastra-0.0.4.1.zip
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$ sudo python setup.py install
cecy@cecy-Inspiron-N4020:~$ pyastra
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc$ cd examples/
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc/examples$ ls
binary_clock.py example1.py led_blink.py pic_adc.py serial.py
eeprom.py example2.py num_ext.py README
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$ pyastra -S doc/examples/binary_clock.py
Traceback (most recent call last):
File "/usr/local/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/local/lib/python2.7/dist-packages/pyastra/ports/pic14/tree2asm.py", line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$ sudo emacs -nw /usr/local/lib/python2.7/dist-packages/pyastra/ports/pic14/tree2asm.py
self._convert(From('builtins', [('*', None)]))