Re: pip3-installing SCons on current Raspbian Stretch fails
Mathew Robinson <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAFvD1Y5PaSkX2hUwseDp=M6AUcJ+X+kyMpSYpee5trsmiZrySA@mail.gmail.com> |
Scons installs man pages into /usr/local as part of its setup.py Seems like Raspbian doesn’t have the proper man page directories setup out of the box. You should be able to fix this by running: mkdir -p /usr/local/man/man1 Then re-running the pip3 install. I’m not really sure why the Python 2 one worked. On March 14, 2019 at 10:52:46 AM, Arndt Pauschardt ([email protected]) wrote: Hi, * a) I have a Raspberry 3 with the latest Raspbian Stretch release: pi@raspi_rsdk1:~ $ uname -a Linux raspi_rsdk1 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux b) the 'default' python is a Py2: pi@raspi_rsdk1:~ $ python -V Python 2.7.13 c) pip-installing Scons and running it works fine: pi@raspi_rsdk2:~ $ which scons /usr/local/bin/scons pi@raspi_rsdk2:~ $ scons --version SCons by Steven Knight et al.: script: v3.0.4.3a41ed6b288cee8d085373ad7fa02894e1903864, 2019-01-20 22:51:36, by bdeegan on kufra engine: v3.0.4.3a41ed6b288cee8d085373ad7fa02894e1903864, 2019-01-20 22:51:36, by bdeegan on kufra engine path: ['/usr/local/lib/python2.7/dist-packages/scons/SCons'] Copyright (c) 2001 - 2019 The SCons Foundation Because the Raspberry is only one of multiple target platforms for us and all other target platforms have been migrated to Py3, I wanted to do the same for Raspian: d) pip3-installing SCons fails: pi@raspi_rsdk1:~ $ sudo pip3 install scons Collecting scons Using cached https:/blabla/scons-3.0.4-py2.py3-none-any.whl Installing collected packages: scons Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 360, in run prefix=options.prefix_path, File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 784, in install **kwargs File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/usr/lib/python3/dist-packages/pip/wheel.py", line 377, in move_wheel_files clobber(source, dest, False, fixer=fixer, filter=filter) File "/usr/lib/python3/dist-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/usr/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/man/man1' e) the Py3 on Raspbian is pi@raspi_rsdk1:~ $ python3 -V Python 3.5.3 Now my question: 1. I guess I need to address the pip3 install problem from above to a Raspbian mailing list, correct? It's pip3 which is causing the trouble, right? Or is the offending path to /usr/local/man/man1 coming from SCons? 2. Is anyone here who is using sucessfully using SCons with Py3 on Raspbian? 2. looking into /usr/local/bin/scons, I found that scons is she-banged to "python", so in case nothing in PATH is tweaked, scons will end up using Py2 at least on Raspbian where both are available per default. The SCons man says that Py3 is prefered, so the assumption behind this is that the user is linking "python" to "python3" in order to use Py3 as engine under the hood. Correct? Thx for your time and help Arndt _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users