chipmuenk / pyfda

Python Filter Design Analysis Tool
http://chipmuenk.github.io/
MIT License
644 stars 94 forks source link

SyntaxError: invalid syntax: reset = Reset(1, active=0, async=True) #200

Closed yurivict closed 2 years ago

yurivict commented 3 years ago

python-37 prints this error:

/usr/local/bin/python3.7 /tmp/tmpdhipfzyy.py
  File "/usr/local/lib/python3.7/site-packages/pyfda/fixpoint_widgets/iir_df1.py", line 234
    reset = Reset(1, active=0, async=True)
                                   ^
SyntaxError: invalid syntax

removing /tmp/tmpdhipfzyy.py

FreeBSD 12.2

chipmuenk commented 3 years ago

This file shouldn't be there, sorry. Please delete it if you can, it is a remainder of previous fixpoint implementations. But I don't quite understand why you're getting this error, the file shouldn't be used or imported anywhere. Are you running pyfda from the pyInstaller executable for Linux?

yurivict commented 3 years ago

This code is called autiomatically from setup.py install.

chipmuenk commented 3 years ago

I guess most people use pip install ..., that's why the error hasn't been noticed earlier. Thanks for reporting, I'll make a new release in the next few days that fixes the bug. I've pushed the change to the master branch already, if you install directly from the latest git master branch everything should be fine.