You are not logged in.
Pages: 1
Topic closed
I can't start gnome-tweak-tool it complains
Traceback (most recent call last):
File "/usr/bin/gnome-tweak-tool", line 22, in <module>
import gi
File "/usr/lib/python3.3/site-packages/gi/__init__.py", line 27, in <module>
from ._gi import _API, Repository
ImportError: /usr/lib/libpyglib-gi-2.0-python3.so.0: undefined symbol: _Py_FalseStructIt would appear that python2 is trying to import python3 modules. I also get this error with
>python2
>import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.3/site-packages/gi/__init__.py", line 27, in <module>
from ._gi import _API, Repository
ImportError: /usr/lib/libpyglib-gi-2.0-python3.so.0: undefined symbol: _Py_FalseStructWhy is this happening!? I had a similar issue a while back with python2 trying to import a (different) python3 module when trying to install something from the AUR but that was
fixed by doing
export $PYTHONPATH=/usr/lib/python2.7/site-packages as on login my PYTHONPATH is set as /usr/lib/python3.3/site-packages, however this did not fix the gnome-tweak-tool issue.
my python3 sys.path is
['', '/usr/lib/python3.3/site-packages', '/usr/lib/python33.zip', '/usr/lib/python3.3', '/usr/lib/python3.3/plat-linux', '/usr/lib/python3.3/lib-dynload', '/usr/lib/python3.3/site-packages/setuptools-0.6c11.egg-info', '/usr/lib/python3.3/site-packages/setuptools-0.6c11.egg-info']and my python2 sys.path is
['', '/usr/lib/python3.3/site-packages', '/usr/lib/python3.3/site-packages/setuptools-0.6c11.egg-info', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info', '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode']Whats going wrong!?
Last edited by tbdc (2013-05-16 19:28:28)
Offline
Setting
export PYTHONPATH=/usr/lib/python2.7/site-packages:/usr/lib/python3.3/site-packages seemed to fix the issue. Is this correct value for PYTHONPATH when both pyhton 2 and 3 installed?
Offline
faced a similar issue, this helped, thanks ! ![]()
Offline
@prateek13 Please do not Necro-bump or Power-post
https://wiki.archlinux.org/index.php/Fo … Bumping.22
https://wiki.archlinux.org/index.php/Fo … mpty_Posts
Closing.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1
Topic closed