Coder Social home page Coder Social logo

"python" shebang about lipx HOT 4 CLOSED

2mac avatar 2mac commented on July 22, 2024
"python" shebang

from lipx.

Comments (4)

rofl0r avatar rofl0r commented on July 22, 2024

this program requires Python 3.

works fine here with python 2.7.18.

from lipx.

2mac avatar 2mac commented on July 22, 2024

works fine here with python 2.7.18.

How are you running it? If you're running the latest code, the shebang is already changed to call python3. You probably have python 3 installed on your system as well, and it's calling that. This program uses syntax that is illegal in python 2, and it doesn't import any of the modules that would enable it to be compatible. The reason I opened this issue in the first place is because my system tried to run it in python 2 with the old shebang and it failed. I'm 99% sure you ran it with python 3 without realizing.

from lipx.

rofl0r avatar rofl0r commented on July 22, 2024

i only have python2 installed and executed "python lipx.py ....". both creating a patch and applying worked without issues.

from lipx.

2mac avatar 2mac commented on July 22, 2024

Hmm, okay I just tested this and it does appear to work. I guess the newer python 2 versions accept the python 3 print syntax. Either way, python in the shebang is not portable, and the README says the program is tested with python 3.

from lipx.

Related Issues (7)

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.