Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start main.py - SyntaxError: invalid syntax #21

Closed
kennerblick opened this issue Mar 13, 2018 · 5 comments
Closed

Cannot start main.py - SyntaxError: invalid syntax #21

kennerblick opened this issue Mar 13, 2018 · 5 comments

Comments

@kennerblick
Copy link

kennerblick commented Mar 13, 2018

I have pull the actual master and configured ip and the option no gui. When i start main.py:

" /opt/Systematic-LEDs/python/main.py
File "/opt/Systematic-LEDs/python/main.py", line 1110
for key, label, ui_element, *opts in visualizers[self.board].dynamic_effects_config[effect]:
^
SyntaxError: invalid syntax
"

(the circumflex (^) is under the asterisk(*) bevor opts)

thank you for the effort

@gaijinsr
Copy link

You are probably using python 2.x, try python3.

@kennerblick
Copy link
Author

Yes, thank you, that was the problem. Now comes the next one. I have Ubuntu Server, without GUI. In the config i have disabled GUI. when i start main.py:
python3 /opt/Systematic-LEDs/python/main.py
Traceback (most recent call last):
File "/opt/Systematic-LEDs/python/main.py", line 636, in
class GUI(QMainWindow):
NameError: name 'QMainWindow' is not defined

@charlieali
Copy link

what pyqt version are you using?

@kennerblick
Copy link
Author

PyQt5 (5.10.1)
is installed.

@blassbasti
Copy link

@kennerblick did you figure out any solution for 'QMainWindow' is not defined??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants