[MacPorts] #16364: python24 / python25 build without _locale module
#16364: python24 / python25 build without _locale module ---------------------------------------+------------------------------------ Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: python24 python25 _locale | ---------------------------------------+------------------------------------ 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 -- Ticket URL: <http://trac.macports.org/ticket/16364> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by macsforever2000@macports.org): What happens when you try it without the underscore? {{{ import locale }}} -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by jm.carp@gmail.com): The locale module works fine, but _locale doesn't. This is a problem because wxpython requires _locale. -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by macsforever2000@macports.org): 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? -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by ram@macports.org): 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) $ }}} -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by jm.carp@gmail.com): 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? -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python24 python25 _locale --------------------------------+------------------------------------------- Comment (by blb@macports.org): What version of the gettext port do you have installed ({{{port installed gettext}}})? -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module ---------------------------------------+------------------------------------ Reporter: jm.carp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: python24 python25 _locale | Port: ---------------------------------------+------------------------------------ Comment(by blb@…): Any word? Also note that python24 and python25 have seen updates since. -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------+------------------------------------------- Reporter: jm.carp@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: python24 python25 _locale Port: | --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => worksforme Comment: Closing due to lack of response from reporter. -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16364: python24 / python25 build without _locale module --------------------------------------+------------------------------------- Reporter: jm.carp@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.6.0 | Resolution: worksforme Keywords: python24 python25 _locale | Port: --------------------------------------+------------------------------------- Comment(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 :) -- Ticket URL: <http://trac.macports.org/ticket/16364#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts