Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86547

Fix for no module named _sysconfigdata while compiling

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 <ray.cote@auricsystems.com>
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 <ray.cote@auricsystems.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19291.1424985769.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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 — but the other issues were all after the Python was installed — 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 — 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=/opt/python2.7 --enable-unicode=ucs4 --enable-shared  LDFLAGS="-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.
—Ray

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Fix for no module named _sysconfigdata while compiling Raymond Cote <ray.cote@auricsystems.com> - 2015-02-26 16:17 -0500

csiph-web