Comments (2)
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.
@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)
- Segmentation fault during homogeneous execution on aarch64 HOT 2
- Failed assertion in CodeGen/UnwindInfo.cpp HOT 2
- Soft floating-point emulation routines leaking into aarch64 HOT 9
- Unable to build bodytrack with clang HOT 1
- Unhandled level 2 translation fault HOT 1
- Segfault when compiling bzlib.c (bzip2 SPEC-2006) HOT 1
- Compilation fails with backend ran out of registers HOT 1
- number of records for stackmap ... doesn't match HOT 1
- Argv argument table corruption HOT 2
- Cannot Build libopenpop HOT 2
- libelf: different code paths on aarch64 compared to x86-64 HOT 1
- GCC constructor/destructor attributes do not execute on AArch64
- SIGRTMIN does not induce migration
- struct stat wrong value HOT 4
- Wrong value when passing "struct stat" as a parameter to a function
- Stack transform timing utility architecture mismatch HOT 2
- Changing musl Makefile to use -O0 explicitly causes arm64 STLXR -> LDAXR pair to fail on real machines
- ./install_compiler.py error on Ubuntu 20.04 HOT 2
- libevent configure failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from popcorn-compiler.