Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'error:': 0.07; 'installed.': 0.07; 'properly.': 0.09; 'skip:/ 10': 0.09; 'subject:module': 0.09; 'subject:while': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.11; '2.7.3': 0.16; 'advice,': 0.16; 'afternoon.': 0.16; 'filename:fname piece:signature': 0.16; 'googling': 0.16; 'renaming': 0.16; 'subject:skip:_ 10': 0.16; 'module': 0.19; 'machine': 0.22; 'install': 0.23; 'versions': 0.24; 'installed': 0.27; 'went': 0.31; 'away.': 0.31; 'directory,': 0.31; 'skip:_ 10': 0.34; 'problem': 0.35; 'case,': 0.35; 'but': 0.35; 'building': 0.35; 'skip:- 20': 0.37; 'to:addr :python-list': 0.38; 'skip:- 10': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'remove': 0.60; 'upgrading': 0.60; 'new': 0.61; 'address': 0.63; 'header:Message-Id:1': 0.63; 'saw': 0.77; './configure': 0.84; 'compiling': 0.84; 'resulted': 0.84; 'spoke': 0.91 X-Virus-Scanned: amavisd-new at appropriatesolutions.com From: Raymond Cote X-Pgp-Agent: GPGMail 2.5b5 Content-Type: multipart/signed; boundary="Apple-Mail=_D632BBE4-1083-4E4E-9A0B-D2ABA1016A75"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Mao-Original-Outgoing-Id: 446678232.673692-6fda4fe4197bc93721e895c854355bdb Subject: Fix for no module named _sysconfigdata while compiling Date: Thu, 26 Feb 2015 16:17:13 -0500 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) To: python-list@python.org X-Mailer: Apple Mail (2.2070.6) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424985769 news.xs4all.nl 2862 [2001:888:2000:d::a6]:46867 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86547 --Apple-Mail=_D632BBE4-1083-4E4E-9A0B-D2ABA1016A75 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thought I might help someone else address a problem I ran into this = afternoon. While compiling Python 2.7.9 on CentOS 6, I received the error: no = module named _sysconfigdata Googling found a number of other people having this problem =E2=80=94 = but the other issues were all after the Python was installed =E2=80=94 = not while building. In digging through their advice, I saw a number of = them spoke about having multiple versions of Python installed. In my = case, I already had a custom Python 2.7.3 installed on this machine =E2=80= =94 and I was upgrading over it to Python 2.7.9. I found that renaming my custom /opt/python2.7 directory and then = building the new release in the same directory, that the problem went = away. Summary: Compiling Python 2.7.9 resulted in error: no module named _sysconfigdata = while compiling. My configuration: ./configure --prefix=3D/opt/python2.7 = --enable-unicode=3Ducs4 --enable-shared LDFLAGS=3D"-Wl,-rpath = /opt/python2.7/lib" make;make alt install Remove the existing /opt/python2.7 directory which had Python 2.7.3. Now all builds and installs properly. =E2=80=94Ray --Apple-Mail=_D632BBE4-1083-4E4E-9A0B-D2ABA1016A75 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJU741YAAoJED7f127JG09TEeAIALYfGi0l/fMnkLka2M4v5l8P 6z/hwu5kqRdIOotPbH7s++wvC+Z//kinK61aBAZCTG5m638fMdHrxhR6rI6LSLfe CAYBEZ5Oz9QxEGiDh1B7wNQINKs1+2T/4AQKifm+ywnTJF2avOVL6nHkyGgGKgNY dGF5ZWUKfPUG+DAVDYpO6+mGNMemQZbICB5bqKlf/dQ6RDx5Ca73fYKfmMUBteo7 u/C0mUPk6wUoG0KklKzQPeO7gEmWJMo4DfxHTivIl40koeY8cm17DJP4yNiuG3og nhrGkVaieAPy5aKIB5UZYYbpEOUDVdK1LSaFd0FCEhwEeg+dEdcF9/B3OlzWXNY= =/hAB -----END PGP SIGNATURE----- --Apple-Mail=_D632BBE4-1083-4E4E-9A0B-D2ABA1016A75--