Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't emerge subprocess32 needed for matplotlib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
malcolmmaya
n00b
n00b


Joined: 30 Oct 2017
Posts: 43

PostPosted: Thu Dec 14, 2017 6:32 pm    Post subject: Can't emerge subprocess32 needed for matplotlib Reply with quote

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
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Dec 14, 2017 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
malcolmmaya
n00b
n00b


Joined: 30 Oct 2017
Posts: 43

PostPosted: Thu Dec 14, 2017 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum