hacktronian
hacktronian copied to clipboard
Error syntax print command in hacktronian.py
File "/usr/share/doc/hacktronian/hacktronian.py", line 82 print """ ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(""")?
Check this...
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(""")?
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 https://github.com/thehackingsage/hacktronian/issues/34#issuecomment-1073604391, 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 https://www.kali.org/docs/general-use/using-eol-python-versions/#pyenv
solved it with running the older python version on the kali server if you run version 2.7.18 it works correctly https://www.kali.org/docs/general-use/using-eol-python-versions/#pyenv
That doesn't seem to be working for me.
what is the issue you run into on this moment is it the same with the print issue?
did you check the version of python you are running on this moment when you try to start it?
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).
LINE ONE OF hacktronian.py:
#!/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.