Error in driver.py file of lantz in Labpy project

29 views
Skip to first unread message

himanshuag...@gmail.com

unread,
Feb 19, 2016, 1:31:00 AM2/19/16
to LabPy: Instrumentation in Python
Hello, 

While running lantz of laby project i am facing the following error : Can anyone tell me how to tackle that /

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from lantz.drivers.examples import LantzSignalGenerator
  File "C:\Python27\lib\site-packages\lantz-0.4.dev0-py2.7.egg\lantz\__init__.py", line 25, in <module>
    from .driver import Driver, Feat, DictFeat, Action, initialize_many, finalize_many
  File "C:\Python27\lib\site-packages\lantz-0.4.dev0-py2.7.egg\lantz\driver.py", line 54
    class Self(metaclass=MetaSelf):
                        ^
SyntaxError: invalid syntax


That occurs while using  driver.py file lantz folder.

Thank You

Regards ,
Himanshu Aggarwal 

plaster...@gmail.com

unread,
May 31, 2016, 5:57:43 AM5/31/16
to LabPy: Instrumentation in Python
Himanshu,
Lantz is only compatible with python 3.4, you're trying to run it in a python2 environment. The class A(metaclass=) syntax was only introduced with py3.
Thanks,
Dan W
Reply all
Reply to author
Forward
0 new messages