Issue 11621: build error: bootstrap issue with gettext - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: db3l, eric.araujo, georg.brandl, pitrou, python-dev, r.david.murray
Priority: release blocker Keywords:

Created on 2011-03-21 14:12 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg131655 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-03-21 14:12
Looks like a bootstrap issue, could be related to the latest getopt changes:


Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/setup.py", line 13, in <module>
    from distutils.core import Extension, setup
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/distutils/core.py", line 18, in <module>
    from distutils.dist import Distribution
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/distutils/dist.py", line 17, in <module>
    from distutils.fancy_getopt import FancyGetopt, translate_longopt
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/distutils/fancy_getopt.py", line 14, in <module>
    import getopt
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/getopt.py", line 37, in <module>
    from gettext import gettext as _
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/gettext.py", line 49, in <module>
    import locale, copy, io, os, re, struct, sys
  File "/Users/db3l/buildarea.dmg/3.x.dmg/build/Lib/struct.py", line 12, in <module>
    from _struct import *
ImportError: No module named '_struct'
make: *** [sharedmods] Error 1
msg131662 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-03-21 15:00
Actually, it's not specific to the DMG build.
msg131663 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-21 15:04
New changeset 160823d258b5 by Antoine Pitrou in branch 'default':
Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9)
http://hg.python.org/cpython/rev/160823d258b5
msg131665 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-03-21 15:08
Should be fixed.
msg131698 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-03-21 22:52
Thank you for catching and fixing this.