#16364 closed defect (worksforme)
python24 / python25 build without _locale module
Reported by: | jm.carp@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | python24 python25 _locale | Cc: | mww@…, mf2k (Frank Schima) |
Port: |
Description
Both python2.4 and python2.5 build without the _locale module:
import _locale Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named _locale
Change History (11)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
comment:2 Changed 16 years ago by jm.carp@…
The locale module works fine, but _locale doesn't. This is a problem because wxpython requires _locale.
comment:3 Changed 16 years ago by mf2k (Frank Schima)
FYI, I running wxpython just fine. I'm also able to import _locale. Can you provide more information about your setup please?
What OS? What version of Xcode? What version of MacPorts? What does "port installed python25" return? What does "port installed py25-wxpython" return?
comment:5 Changed 16 years ago by skymoo (Adam Mercer)
Works for me:
$ which python /opt/local/bin/python $ python -V Python 2.5.2 $ python -c "import locale" $ python -c "import _locale" $ port provides /opt/local/lib/python2.5/locale.py /opt/local/lib/python2.5/locale.py is provided by: python25 $ port provides /opt/local/lib/python2.5/lib-dynload/_locale.so /opt/local/lib/python2.5/lib-dynload/_locale.so is provided by: python25 $ port installed python25 The following ports are currently installed: python25 @2.5.2_5+darwin_9 (active) $
comment:6 Changed 16 years ago by jm.carp@…
I'm using macports 1.6 and xcode 3.1. Python is installed fine:
bash-3.2$ port installed python25 The following ports are currently installed: python25 @2.5.2_5+darwin_9 (active)
But it looks like I'm missing _locale.so
bash-3.2$ ls /opt/local/lib/python2.5/lib-dynload/_locale* /opt/local/lib/python2.5/lib-dynload/_locale_failed.so
I checked the output from installing python25, and I noticed this warning:
*** WARNING: renaming "_locale" since importing it failed: dlopen(build/lib.macosx-10.3-i386-2.5/_locale.so, 2): Symbol not found: _libintl_bindtextdomain Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/Python-2.5.2/build/lib.macosx-10.3-i386-2.5/_locale.so Expected in: dynamic lookup
What's going on?
comment:7 Changed 16 years ago by blb@…
What version of the gettext port do you have installed (port installed gettext
)?
comment:8 Changed 16 years ago by blb@…
Any word? Also note that python24 and python25 have seen updates since.
comment:9 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing due to lack of response from reporter.
comment:11 Changed 15 years ago by stelund@…
Just wanted to say i had the same issue. But after reading here I figured it must be a library I had in an 32 bit versoin of only. And now i've used +universal to install python. The local depends n gettext for me (libintl.8.dylib). To fix uninstall python and fix dependency then reinstall :)
What happens when you try it without the underscore?