how to solve error processing /usr/lib/python2.7/dist-packages/pygst.pth:?

Posted by ChitKo on Ask Ubuntu See other posts from Ask Ubuntu or by ChitKo
Published on 2012-06-10T15:45:43Z Indexed on 2012/06/10 16:48 UTC
Read the original article Hit count: 560

Filed under:
Error processing line 1 of /usr/lib/python2.7/dist-packages/pygst.pth:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 161, in addpackage
      if not dircase in known_paths and os.path.exists(dir):
    File "/usr/lib/python2.7/genericpath.py", line 18, in exists
      os.stat(path)
  TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
Error processing line 1 of /usr/lib/python2.7/dist-packages/pygtk.pth:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 161, in addpackage
      if not dircase in known_paths and os.path.exists(dir):
    File "/usr/lib/python2.7/genericpath.py", line 18, in exists
      os.stat(path)
  TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 16, in <module>
    from gi.repository import GObject
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 222, in _load
    version)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 90, in __init__
    repository.require(namespace, version)
gi.RepositoryError: Failed to load typelib file '/usr/lib/girepository-1.0/GLib-2.0.typelib' for namespace 'GLib': Invalid magic header

© Ask Ubuntu or respective owner

Related posts about terminal