Giter Site home page Giter Site logo

Comments (6)

risyadfahlevi avatar risyadfahlevi commented on May 24, 2024

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(""")?

from hacktronian.

Hustleboibam avatar Hustleboibam commented on May 24, 2024

from hacktronian.

SecurityJos avatar SecurityJos commented on May 24, 2024

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

from hacktronian.

MrAppAndCrap avatar MrAppAndCrap commented on May 24, 2024

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.

from hacktronian.

SecurityJos avatar SecurityJos commented on May 24, 2024

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?
image

from hacktronian.

punkrock4dadz avatar punkrock4dadz commented on May 24, 2024

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.

from hacktronian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.