Disclaimer: I'm running Arch Linux, not ubuntu, but that should be irrelevant, or if it isn't I should be able to translate from apt to pacman.
Whenever I attempt to use an application relating to python2(gnome-tweak-tool, bzr, etc.) it fails to start and, when run from command-line, I get this error:
[username@host ~]$ gnome-tweak-tool
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 563, in <module>
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 243, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 419, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 287, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/bin/lib/python2.7/config/Makefile (No such file or directory)
I checked /usr/bin/lib/python2.7/config/ and it is empty.
/usr/binshould not have alibfolder as libraries are provided from/usr/libfolder. May be you should pass some argument for paths to look for during installation ? By the waygnome-tweak-toolis provided through arch official repositories so it should work unless you are trying a different tweak-tool ? – sagarchalise Feb 18 '12 at 4:00