Code Monkey home page Code Monkey logo

Comments (2)

olivierpierre avatar olivierpierre commented on June 12, 2024

Indeed the tool is not supposed to be run with python 3. I guess the problem is when the default invocation of python is calling version 3. I can add the shebang, but remember that pyalign is called by the Makefile template in its 'binary form' through this script. Thus, I modified that script to force the use of python 2 (9773569).

I'm assuming that people do not use ./__main__.py (this file is not even executable) so no shebang to interpret. You can invoke python directly and in that case you should be aware of the version you use, anyway the shebang will not be used.

I cleaned up the tab/spaces mix. I don't see any good reason for now to convert the script to python 3.

from popcorn-compiler.

acarno avatar acarno commented on June 12, 2024

@olivierpierre I'm not advocating to convert the script to Python 3 (at least not at this moment) -- and it was a configuration error on my part that even brought the whitespace bugs to light (I had set the default Python version to 3.6 using pyenv for my own development purposes).

Long-term, it might make sense to convert to Python 3 if we ever find ourselves using a distro that doesn't include Python 2 (several seem to be moving in that direction, since it's supposedly deprecated), but that's waaaaay far down on the list of priorities :)

Closing issue as resolved by @olivierpierre 's commit.

from popcorn-compiler.

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.