# trying /usr/lib/python3.2/plat-linux2/gi.pyc # trying /usr/lib/python3.2/plat-linux2/gi.py # trying /usr/lib/python3.2/plat-linux2/gimodule.so # trying /usr/lib/python3.2/plat-linux2/gi.so # trying /usr/lib/python3.2/plat-linux2/gi.abi3.so # trying /usr/lib/python3.2/plat-linux2/gi.cpython-32mu.so # trying /usr/lib/python3.2/gi.cpython-32mu.so Also, this appears relevant:, Good luck. Here's all the verbose import output that led me this far. If you can track down that missing symbol you might be able to solve this problem. ImportError: /usr/lib/libpyglib-gi-2.0-python2.7.so.0: undefined symbol: _Py_ZeroStruct Type "help", "copyright", "credits" or "license" for more information.įile "/usr/local/lib/python3.2/dist-packages/gi/_init_.py", line 23, in Sudo ln -s /usr/lib/python2.7/dist-packages/gi/ /usr/local/lib/python3.2/dist-packages Even after all that, I tried doing a simple symlink of the 2.7 dist-package to my usr/local 3.x dist-package and got a little further, but not by much. Increasing the verbosity of the interpreter goes a long way towards triaging this issue. In that case have a look here to review all the directories python uses to look for that file and check that your environment is correct. ![]() The pending problem probably is either that your site.py file isn't valid for whatever reason or, more probably, that you're not getting the right site.py (it should be under /usr/lib/python2.7/). Once the import works, you can just set your PYTHONPATH or investigate further on the reason why the path isn't correctly set. If /usr/lib/python2.7/dist-packages isn't included, then add it and try again. If the gi package it's there, then you should have a look at your sys.path output. You should have that file since you have python-gobject 3.0.0-0ubuntu4 (yes, I have the very same version). If isn't then check that /usr/lib/python2.7/dist-packages/gi/_init_.py points /usr/share/pyshared/gi/_init_.py. So what you have to check if that you have that file available. '/usr/lib/python2.7/dist-packages/gi/_init_.pyc' Is there anything I can do to completely re-install Python 2.7 as the default version? Python -version now returns: Python 2.7.2Īnd also some software packages which depend on Python 2.7 are now working (for example the software center), but some things are still broken. I have tried re-installing Python both from the software center and from sources, but the same error persists. After my computer imploded and everything stopped working, I tried to revert back my changes (by linking /usr/bin/python2.7 to /usr/bin/python and changing the default version in /usr/share/python/debian_defaults back to 2.7) but some things are still broken.įor example, when I type import gi in the Python interpreter I get the following message: > import giĮrror which appears with some programs too (eg: gnome tweak tool). The content of this file offĪnd that is it, run start-meld.After some not so clever editing of the default Python version in Ubuntu, from 2.7 to 3.2, I ended up breaking my entire system. This will install to the correct python based on the registry entry from step 3. These are the PyGTK, P圜airo, and PyGObject modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |