#10875 closed defect (fixed)
BUG: python24 builds without including the _locale module
Reported by: | dominik@… | Owned by: | mww@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 1.3.2 |
Keywords: | python _locale | Cc: | dominik@…, roederja |
Port: |
Description
It appears that python (since 2.3 in fact) builds without including the _locale module (at least perhaps other modules don't build either) which cause troubles with other ports like, for instance, Trac that doesn't run because it depends on the locale module. The build on a PPC machine doesn't miss this module, though. The error can be triggered with the following code:
[lapin]~> python Python 2.4.3 (#1, Oct 14 2006, 19:34:10) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.getpreferredencoding() Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/locale.py", line 399, in getpreferredencoding import _locale ImportError: No module named _locale >>>
Attachments (1)
Change History (9)
comment:1 Changed 18 years ago by dominik@…
comment:2 Changed 18 years ago by dominik@…
The provided patch fixes the flawing test in the setup.py that was missing libintl. This fixes the ticket.
comment:3 Changed 18 years ago by kballard (Lily Ballard)
Milestone: | → Available Ports |
---|
comment:4 Changed 18 years ago by pipping@…
Milestone: | Available Ports → Port Bugs |
---|
comment:5 Changed 18 years ago by vinc17@…
Summary: | BUG: python24 builds whithout including the _locale module on i386 → BUG: python24 builds without including the _locale module |
---|
Same problem on PowerPC -> summary update.
comment:6 Changed 17 years ago by roederja
Cc: | jann@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Should be fixed in r25391. Please re-open if not
comment:7 Changed 16 years ago by remy.blank@…
I know I'm late to the party, but would it be possible to fix the same issue in python23?
Note: See
TracTickets for help on using
tickets.
It appears that the problem doesn't arise for everyone on an i386 plateform. The python build process fails on my machine on the _locale.so production and the setup.py script renames it to _locale_failed.so:
However libintl was installed by gettext port and looks ok.