WARNING: This is a preview release! It may (but i hope it doesn't) generate incorrect code.
If it really works, please inform me for which microcontroller did you used Pyastra and other thigs that may be important:
estyler (at) users (dot) sourceforge (dot) net
yes, the same, I have been getting the same error since Ubuntu 7.10 and through up to 8.10. Now still I have the same error
Traceback (most recent call last):
File "/usr/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/lib/python2.5/site-packages/pyastra/ports/pic14/tree2asm.py", line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
How can it be solved?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have solved this error by changing one small paramater of _convert function.
Only change line 107 in this file;
/usr/lib/python2.5/site-packages/pyastra/ports/pic14/tree2asm.py
107. Line
--------------------------------------------------------------------------------
with self._convert(From('builtins', [('*', None)],None))
--------------------------------------------------------------------------------
delete line 107 and paste this to there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
naveen@Neo-Notebook:~/Pyastra-0.0.4.1$ sudo pyastra -p 16c72 led_blink.py
WARNING: This is a preview release! It may (but i hope it doesn't) generate incorrect code.
If it really works, please inform me for which microcontroller did you used Pyastra and other thigs that may be important:
estyler (at) users (dot) sourceforge (dot) net
If you have found a bug, you are welcome to submit one:
http://sourceforge.net/tracker/?group_id=106265&atid=643744
-------
Traceback (most recent call last):
File "/usr/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/lib/python2.5/site-packages/pyastra/ports/pic14/tree2asm.py", line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
naveen@Neo-Notebook:~/Pyastra-0.0.4.1$
Running this on Ubuntu......
yes, the same, I have been getting the same error since Ubuntu 7.10 and through up to 8.10. Now still I have the same error
Traceback (most recent call last):
File "/usr/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/lib/python2.5/site-packages/pyastra/ports/pic14/tree2asm.py", line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
How can it be solved?
I have solved this error by changing one small paramater of _convert function.
Only change line 107 in this file;
/usr/lib/python2.5/site-packages/pyastra/ports/pic14/tree2asm.py
107. Line
--------------------------------------------------------------------------------
with self._convert(From('builtins', [('*', None)],None))
--------------------------------------------------------------------------------
delete line 107 and paste this to there.