-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Error syntax print command in hacktronian.py #34
Comments
im also to same error |
Yes
ALOMO INC.
…On Mon, Mar 21, 2022, 3:21 AM muhammad risyad fahlevi < ***@***.***> wrote:
im also to same error
File "/usr/share/doc/hacktronian/hacktronian.py", line 82
print """
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(""")?
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATAW744AXT57HKZOULLSFBTVBAWPDANCNFSM5KPV7G3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
solved it with running the older python version on the kali server if you run version 2.7.18 it works correctly |
That doesn't seem to be working for me. |
If you have several versions of Python installed, /usr/bin/env will ensure the interpreter used is the first one on your environment's $PATH. The alternative would be to hard code something like #!/usr/bin/python. In Unix, an executable file that's meant to be interpreted can indicate what interpreter to use by having a #! at the start of the first line, followed by the interpreter (and any flags it may need).
#!/usr/bin/env python2.7.18 In computing, a shebang (also called a hashbang, hashpling, pound bang, or crunchbang) refers to the characters "#!" when they are the first two characters in an interpreter directive as the first line of a text file. In a Unix-like operating system, the program loader takes the presence of these two characters as an indication that the file is a script, and tries to execute that script using the interpreter specified by the rest of the first line in the file. In summary, this needs to be executed by python 2.7.18 because of indents and unindented blocks. |
File "/usr/share/doc/hacktronian/hacktronian.py", line 82
print """
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(""")?
Check this...
The text was updated successfully, but these errors were encountered: