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

Invalid Syntax on running 'python3 CreepyMain.py' #98

Open
ghost opened this issue Mar 24, 2018 · 11 comments
Open

Invalid Syntax on running 'python3 CreepyMain.py' #98

ghost opened this issue Mar 24, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Mar 24, 2018

yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python3 CreepyMain.py 
  File "CreepyMain.py", line 217
    except Exception, err:
                    ^
SyntaxError: invalid syntax

Running it with just python returns
yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in <module> from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit , however since it doesn't say this when using python3, I have ignored it for now. All dependencies have been installed by direct copy paste.

@NTgitdude23
Copy link

kirby193, have you found a solution for this issue? If so, it would be very much appreciated if you wouldnt mind sharing it here with me as ive also encountered this exact issue and in need of help. Thanks in advance.

@Delson704557
Copy link

yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python3 CreepyMain.py 
  File "CreepyMain.py", line 217
    except Exception, err:
                    ^
SyntaxError: invalid syntax

Running it with just python returns
yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in <module> from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit , however since it doesn't say this when using python3, I have ignored it for now. All dependencies have been installed by direct copy paste.

use python CreepyMain.py

@Delson704557
Copy link

kirby193, have you found a solution for this issue? If so, it would be very much appreciated if you wouldnt mind sharing it here with me as ive also encountered this exact issue and in need of help. Thanks in advance.

use python CreepyMain.py

@pariyopatel90
Copy link

yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python3 CreepyMain.py 
  File "CreepyMain.py", line 217
    except Exception, err:
                    ^
SyntaxError: invalid syntax

Running it with just python returns
yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in <module> from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit , however since it doesn't say this when using python3, I have ignored it for now. All dependencies have been installed by direct copy paste.

I am facing the same issue i tried
python Creepymain.py gives me this error

python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit

how to solve this error.

@Delson704557
Copy link

No module named QtWebKit

sudo apt install python-pyqt5.qtwebkit
pip install PySide

run the above commands, and run the script and do let me know if this works for you

@Abdelhad1Belaid
Copy link

yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python3 CreepyMain.py 
  File "CreepyMain.py", line 217
    except Exception, err:
                    ^
SyntaxError: invalid syntax

Running it with just python returns
yuri@sleepy:~/Downloads/git/creepy/jkakavas-creepy-a861ee3/creepy$ python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in <module> from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit , however since it doesn't say this when using python3, I have ignored it for now. All dependencies have been installed by direct copy paste.

I am facing the same issue i tried
python Creepymain.py gives me this error

python CreepyMain.py Traceback (most recent call last): File "CreepyMain.py", line 20, in from PyQt4.QtWebKit import QWebPage, QWebSettings ImportError: No module named QtWebKit

how to solve this error.

I changed the comma to "as " .

@DarkAngel415
Copy link

┌──(root㉿192)-[~/jkakavas-creepy-6abeaa5/creepy]
└─# python3 CreepyMain.py
File "/root/jkakavas-creepy-6abeaa5/creepy/CreepyMain.py", line 217
except Exception, err:
^
SyntaxError: invalid syntax

How do the great gods need to solve it?

@imranullahk
Copy link

┌──(root㉿imran)-[/creepy/creepy]
└─# python CreepyMain.py
File "/creepy/creepy/CreepyMain.py", line 156
except Exception,err:
^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized

kindly help me to resolve this issue.

@Abdelhad1Belaid
Copy link

┌──(root㉿imran)-[/creepy/creepy] └─# python CreepyMain.py File "/creepy/creepy/CreepyMain.py", line 156 except Exception,err: ^^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized

kindly help me to resolve this issue.

Try changing the comma with "as" as mentioned above

Just like : except Exception as err

@stcalica
Copy link

stcalica commented Nov 6, 2023

so it this an error in Creepy? Or in our install? If an error in Creepy shouldn't a fix be pushed? and why is this closed cause there's no clear answer...

@nkemjikaevans
Copy link

Did you find a solution to this yet? I'm wondering why Creepy has not fixed this problem.

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

8 participants