Re: Scons Execution on Fedora 30 doesn't work due to python2 being in /usr/bin/python [pip & dnf install]
Gordon MacPherson <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Bill, That's correct unfortunately. This was a fresh install using cinnamon spin. I need to check if this is the case for the standard fedora 30 spin with gnome, but since they use the same repositories I would expect the result to be the same. Apologies if this creates a new thread, the reply email from the list has not come through. Thanks, Gordon ---- On Thu, 12 Sep 2019 20:23:27 +0100 Gordon MacPherson <mailto:[email protected]> wrote ---- Hello, On fedora 30 - clean install, the python shebang provided in the scons pip package causes scons to not executed properly on the right python interpreter. How to reproduce: - install fedora 30 - sudo pip3 install scons note: python 3 is used to install this module - run scons for project Example output - this is present in 3.0.5 -> and latest release 3.1.1. scons 3.1.1 scons --version SCons import failed. Unable to find engine files in: /usr/local/lib/scons-3.1.1 /usr/lib/scons-3.1.1 /usr/local/lib/scons-3.1.1 /usr/lib/python2.7/site-packages/scons-3.1.1 /usr/lib64/scons-3.1.1 /usr/local/lib/scons /usr/lib/scons /usr/local/lib/scons /usr/lib/python2.7/site-packages/scons /usr/lib64/scons scons 3.0.5 SCons import failed. Unable to find engine files in: /usr/local/lib/scons-3.0.5 /usr/lib/scons-3.0.5 /usr/local/lib/scons-3.0.5 /usr/lib/python2.7/site-packages/scons-3.0.5 /usr/lib64/scons-3.0.5 /usr/local/lib/scons /usr/lib/scons /usr/local/lib/scons /usr/lib/python2.7/site-packages/scons /usr/lib64/scons Traceback (most recent call last): File "/usr/local/bin/scons", line 195, in <module> import SCons.Script ImportError: No module named SCons.Script As a workaround: I have had to update the shebang to this to get scons to find the non python 2.7 modules. #!/usr/bin/python3 I'm guessing this is a known issue but wanted to contact the mailing list regardless as clean installs should have a working installer. Our dev team had this issue so would be nice if this could be patched so that the python2 version provides a python2 shebang, and the python3 version provides a python3 shebang. Additional notes: - This also happens on the package provided in the fedora 30 repositories: sudo dnf install scons Thoughts? Thanks, Gordon _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users