View previous topic :: View next topic |
Author |
Message |
malcolmmaya n00b
Joined: 30 Oct 2017 Posts: 43
|
Posted: Thu Dec 14, 2017 6:32 pm Post subject: Can't emerge subprocess32 needed for matplotlib |
|
|
Hej all !
I can't emerge subprocess32. I have this bug that was reported here. It's blocking a lot of other things I need (matplotlib for example) so while I'm waiting for the fix (I'm not technical enough on this to solve it) is there anything I can do to have it work on my machine ?
I tried to emerge it only for python 3.5 (although I need it with python2.7) using
Code: |
dev-python/matplotlib -wxwidgets PYTHON_TARGETS: -* python3_5 PYTHON_SINGLE_TARGET: -* python3_5
|
But it still pulled sub process as a dependency:
Code: |
Calculating dependencies... done!
[ebuild N ] dev-python/pytz-2017.2 PYTHON_TARGETS="python2_7 python3_5 -pypy -pypy3 -python3_4 -python3_6"
[ebuild N ] dev-python/cycler-0.10.0 USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
[ebuild N ] dev-python/subprocess32-3.2.7 USE="{-test}" PYTHON_TARGETS="python2_7"
[ebuild N ] dev-python/python-dateutil-2.6.1 PYTHON_TARGETS="python2_7 python3_5 -pypy -pypy3 -python3_4 -python3_6"
[ebuild N ] dev-python/versioneer-0.16 PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
[ebuild N ] dev-python/xcffib-0.5.1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
[ebuild N ] dev-python/sip-4.19.6 USE="-debug -doc" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
[ebuild N ] dev-python/cairocffi-0.8.0 USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
[ebuild N ] dev-qt/qtbluetooth-5.9.3 USE="-debug -qml {-test}"
[ebuild N ] dev-python/PyQt5-5.9.2 USE="bluetooth dbus gui network opengl printsupport svg widgets -debug -declarative -designer -examples (-gles2) -help -location -multimedia -positioning -sensors -serialport -sql -testlib -webchannel -webengine -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
[ebuild N ] dev-python/matplotlib-2.1.0-r1 USE="cairo qt5 -doc -examples -excel -gtk2 -gtk3 -latex -pyside {-test} -tk -wxwidgets" PYTHON_TARGETS="python3_5 -python2_7 -python3_4 -python3_6"
|
|
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Thu Dec 14, 2017 8:27 pm Post subject: |
|
|
Ok, I figured out what is going on on why it was failing...
Code: | /python2.7/site-packages/subprocess32-3.2.7-py2.7.egg-info
* python2_7: running distutils-r1_run_phase distutils-r1_python_install_all
Traceback (most recent call last):
File "/usr/lib/portage/python3.5/doins.py", line 27, in <module>
import subprocess
File "/usr/lib64/python3.5/subprocess.py", line 127, in <module>
import _posixsubprocess |
As you posted in the bug report, it is trying to compile/install this package for 2.7, but it is running the script for python3.5 (not python 2.7).
To fix this issue, run this line before installing this package. Code: | eselect python set python2.7 |
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
malcolmmaya n00b
Joined: 30 Oct 2017 Posts: 43
|
Posted: Thu Dec 14, 2017 8:48 pm Post subject: |
|
|
Is it ok to switch to the 2.7 profile install the package and then switch back again to the profile with python3 or will that lead to disaster in the future ? Something like not emerging again next time I'm doing "emerge -avDuN @world" ?
Edit : doesn't seem like it ! Thanks for the solution |
|
Back to top |
|
|
|