Hi,

habe Ubuntu 10.04 up2date und meine Python-Installation zerschossen.
Ich will pyinotify verwenden (das tut hier aber nicht viel zur Sache, es geht um die Python-Installation); das geht auch zunächst. Nachdem ich aber ein lokales Python installiert habe (durch atmail-webmail, das bei der CalDAV-Server-Installation sein eigenes Python nach /usr/local/lib installiert), kann ich pyinotify nicht mehr importieren:
"No module named _functool"
Habe viel versucht, z.B. sys.path manuell wieder von /usr/local/lib auf /usr/lib zu setzen oder Purging und Neuinstallation aller Python-Pakete (inklusive "Yes, I am aware this is a very bad idea"), Letzteres setzt zwar die Pfade dauerhaft zurück, aber es bleibt dabei:
Code:
>>> import pyinotify
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 71, in <module>
    import threading
  File "/usr/lib/python2.6/threading.py", line 13, in <module>
    from functools import wraps
  File "/usr/lib/python2.6/functools.py", line 10, in <module>
    from _functools import partial, reduce
ImportError: No module named _functools
In /usr/lib/python2.6/site.py und /etc/python2.6/sitecustomize.py habe ich auch nichts gefunden, hätte da aber noch Hoffnungen...

Hat jemand eine Idee? Wäre toll!

Da ich möglichst schnell Hilfe suche und nicht will, dass sich Leute dafür in verschiedenen Foren anmelden müssen, ist dies ein Crosspost - ich werde selbst für die Synchronisierung sorgen, d.h. das Thema überall als gelöst markieren und die Lösung überall posten, wenn es soweit ist. Ursprünglich auf http://forum.ubuntuusers.de/topic/py.../#post-2551721 gepostet.