ImportError: No module named _functools

Aahz aahz at pythoncraft.com
Fri Jul 17 05:39:39 CEST 2009


In article <bfd28485-adaf-43ca-963d-3576c1c2cd4e at l2g2000vba.googlegroups.com>,
Tony  Lay  <tonylay at gmail.com> wrote:
>On Jul 16, 10:14=A0am, a... at pythoncraft.com (Aahz) wrote:
>> In article <45228cf4-0b37-4c52-bf6f-d7bd124b0... at l32g2000vbp.googlegroups=
>.com>,
>> Tony =A0Lay =A0<tony... at gmail.com> wrote:
>>>
>>>Traceback (most recent call last):
>>> =A0File "/usr/local/bin/meld", line 35, in <module>
>>> =A0 =A0import gettext
>>> =A0File "/usr/local/lib/python2.6/gettext.py", line 49, in <module>
>>> =A0 =A0import locale, copy, os, re, struct, sys
>>> =A0File "/usr/local/lib/python2.6/locale.py", line 15, in <module>
>>> =A0 =A0import functools
>>> =A0File "/usr/local/lib/python2.6/functools.py", line 10, in <module>
>>> =A0 =A0from _functools import partial, reduce
>>>ImportError: No module named _functools
>>
>> Where is _functools.so?
>
>/usr/local/lib/python2.6/lib-dynload/
>
>It's in the path...
>export PYTHONHOME=3D/usr/local/lib/python2.6
>export PYTHONPATH=3D/usr/local/lib/python2.6:/usr/local/lib/python2.6/
>site-packages:/usr/local/lib/python2.6/lib-dynload:/usr/local/etc/

What's in sys.path?  You might also get somewhere with "python -vv".
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair



More information about the Python-list mailing list