View previous topic :: View next topic |
Author |
Message |
NTwoO Tux's lil' helper
Joined: 01 Jun 2007 Posts: 75
|
Posted: Fri Feb 16, 2018 9:12 am Post subject: Python3 giving problems |
|
|
In emerging my packages, python3 seems to give issues. During an emerge -vuD world I get harfbuzz failing with:
Code: |
File "/usr/lib64/python3.5/subprocess.py", line 127, in <module>
import _posixsubprocess
ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)
|
eselect python list is
Code: |
Available Python interpreters, in order of preference:
[1] python2.7
[2] python3.4
[3] python3.5
|
If I set 3.4 or 3.5 as the first to be selected, then emerge also fails to start with:
Code: |
# emerge -vuD world
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.5/emerge", line 7, in <module>
import platform
File "/usr/lib64/python3.5/platform.py", line 117, in <module>
import sys, os, re, subprocess
File "/usr/lib64/python3.5/subprocess.py", line 127, in <module>
import _posixsubprocess
ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)
|
I'm now runnig a python-updater to see if it solves any problems. |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Mon Feb 19, 2018 12:12 pm Post subject: |
|
|
It can be, that your environment contains PYTHONPATH that points to libraries for Python 2. Those are not compatible with Python 3, so they can not be properly used. At least here https://bbs.archlinux.org/viewtopic.php?id=226314 the person was getting the same error as you and had to clear the above variable. |
|
Back to top |
|
|
NTwoO Tux's lil' helper
Joined: 01 Jun 2007 Posts: 75
|
Posted: Tue Feb 20, 2018 7:49 am Post subject: |
|
|
Sounds plausable. I'll have a look |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Feb 20, 2018 8:40 am Post subject: |
|
|
If you have out-of-tree python stuff installed as a normal user, running portage under "su -" might help. |
|
Back to top |
|
|
NTwoO Tux's lil' helper
Joined: 01 Jun 2007 Posts: 75
|
Posted: Sun Feb 25, 2018 1:38 pm Post subject: |
|
|
Found the problem. I am busy with a course in robotics and installed ROS on the system that set PYTHONPATH and nuked the rest. |
|
Back to top |
|
|
|