Menu

Help I am gettin this error

Help
2008-07-26
2013-04-25
  • Naveen Chandran

    Naveen Chandran - 2008-07-26

    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......

     
    • cnr437

      cnr437 - 2008-12-05

      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?

       
    • cnr437

      cnr437 - 2008-12-19

      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.

       

Log in to post a comment.