-
Notifications
You must be signed in to change notification settings - Fork 222
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
syntax errors #21
Comments
Did you try to put in parentheses around the string that you’re trying to
print, like the error message suggested?
On Fri, May 28, 2021 at 5:18 AM Sia ***@***.***> wrote:
hi guys.
I'm trying to test my WP Website security Vulnerability with this amazing
tool.
seriously its very nice , useful and beautiful.
but I've got some problems with run the tool.
here is the errors:
File "c:\WPForce\wpforce.py", line 72
print "Here is the content of the wordlists for each thread"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print("Here is the content of the wordlists for each thread")?
File "c:\WPForce\wpforce.py", line 96
print banner
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(banner)?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#21>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA33U5PY34CPU7URDEPCADTP5NXJANCNFSM45WEXCMQ>
.
--
Sent from Gmail Mobile
|
yes I did. Traceback (most recent call last): File "c:\WPForce\wpforce.py", line 8 |
Ok well, let’s continue to peel the onion. What happens when you put the
statement at the beginning of your script?
import urlparse
On Fri, May 28, 2021 at 6:58 AM Sia ***@***.***> wrote:
Did you try to put in parentheses around the string that you’re trying to
print, like the error message suggested?
yes I did.
and syntax errors gone but new problems shows up:
Traceback (most recent call last):
File "C:\WPForce\wpforce.py", line 8, in
from urlparse import urljoin
ModuleNotFoundError: No module named 'urlparse'
File "c:\WPForce\wpforce.py", line 8
from urlparse
^
SyntaxError: invalid syntax
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA33U3ERP2F45WMHICHPEDTP5ZN7ANCNFSM45WEXCMQ>
.
--
Sent from Gmail Mobile
|
i tried to change the statement top of the code from " Import urllib2" to "import urllib.response" |
The main issue is this tool was written for Python 2.7. (the print statements are the giveaway) It can be modernized for Python 3 with some effort, but it's currently not compatible |
that's right, |
Python 2 is dead. Come into the modern world and embrace Python 3!
…On Fri, May 28, 2021 at 3:49 PM Sia ***@***.***> wrote:
that's right,
I'm not an expert developer , i recently started learning and I'm drowning
in .
just tried with python 2.7.0 in windows 10 x64 in a minute ago and
instantly got : "SyntaxError: invalid syntax"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA33U7C6H6LDET44YUITLTTP7XURANCNFSM45WEXCMQ>
.
|
before python 2.7 I had installed python 3.9 for learning and developing on android. |
hi guys.
I'm trying to test my WP Website security Vulnerability with this amazing tool.
seriously its very nice , useful and beautiful.
but I've got some problems with run the tool.
here is the errors:
File "c:\WPForce\wpforce.py", line 72
print "Here is the content of the wordlists for each thread"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Here is the content of the wordlists for each thread")?
File "c:\WPForce\wpforce.py", line 96
print banner
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(banner)?
The text was updated successfully, but these errors were encountered: