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


Groups > comp.lang.python > #86547 > unrolled thread

Fix for no module named _sysconfigdata while compiling

Started byRaymond Cote <ray.cote@auricsystems.com>
First post2015-02-26 16:17 -0500
Last post2015-02-26 16:17 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#86547 — Fix for no module named _sysconfigdata while compiling

FromRaymond Cote <ray.cote@auricsystems.com>
Date2015-02-26 16:17 -0500
SubjectFix for no module named _sysconfigdata while compiling
Message-ID<mailman.19291.1424985769.18130.python-list@python.org>

[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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web