ImportError: No module named _functools

Tony Lay tonylay at gmail.com
Thu Jul 16 15:56:31 EDT 2009


On Jul 16, 10:14 am, a... at pythoncraft.com (Aahz) wrote:
> In article <45228cf4-0b37-4c52-bf6f-d7bd124b0... at l32g2000vbp.googlegroups.com>,
> Tony  Lay  <tony... at gmail.com> wrote:
>
>
>
> >Traceback (most recent call last):
> >  File "/usr/local/bin/meld", line 35, in <module>
> >    import gettext
> >  File "/usr/local/lib/python2.6/gettext.py", line 49, in <module>
> >    import locale, copy, os, re, struct, sys
> >  File "/usr/local/lib/python2.6/locale.py", line 15, in <module>
> >    import functools
> >  File "/usr/local/lib/python2.6/functools.py", line 10, in <module>
> >    from _functools import partial, reduce
> >ImportError: No module named _functools
>
> Where is _functools.so?
> --
> Aahz (a... 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

/usr/local/lib/python2.6/lib-dynload/

It's in the path...
export PYTHONHOME=/usr/local/lib/python2.6
export PYTHONPATH=/usr/local/lib/python2.6:/usr/local/lib/python2.6/
site-packages:/usr/local/lib/python2.6/lib-dynload:/usr/local/etc/
pango



More information about the Python-list mailing list