[issue15066] make install error: ImportError: No module named _struct
suzhengchun
report at bugs.python.org
Thu Jun 14 16:36:22 CEST 2012
New submission from suzhengchun <suzhengchun at yahoo.com.cn>:
if test -d /WORK/suzc/installed/python/lib/python2.7/distutils/tests; then \
/usr/bin/install -c -m 644 ./Modules/xxmodule.c \
/WORK/suzc/installed/python/lib/python2.7/distutils/tests ; \
fi
PYTHONPATH=/WORK/suzc/installed/python/lib/python2.7 \
./python -Wi -tt /WORK/suzc/installed/python/lib/python2.7/compileall.py \
-d /WORK/suzc/installed/python/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/WORK/suzc/installed/python/lib/python2.7
Traceback (most recent call last):
File "/WORK/suzc/installed/python/lib/python2.7/compileall.py", line 16, in <module>
import struct
File "/WORK/suzc/installed/python/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
make: *** [libinstall] 错误 1
In directory /WORK/suzc/software/Python-2.7.3, I do this:
suzc at linux-opensuse:22:33:28:Python-2.7.3$ ./configure --prefix=/WORK/suzc/installed/python --exec-prefix=/WORK/suzc/installed/python --mandir=/WORK/suzc/installed/man | tee -a config_make.20120614.log
make
make install
and then meets the install error!!
python's version is 2.7.3, i download the .tgz & .bz2, both the some problem.
My system is:
suzc at linux-opensuse:22:33:28:Python-2.7.3$ uname -a
Linux linux-opensuse 3.1.0-rc7-3-desktop #1 SMP PREEMPT Wed Sep 28 14:41:36 UTC 2011 (50fb02f) x86_64 x86_64 x86_64 GNU/Linux
suzc at linux-opensuse:22:35:22:Python-2.7.3$ lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: openSUSE 12.1 Beta 1 (x86_64)
Release: 12.1
Codename: Asparagus
any help? Thank you very much.
----------
components: Installation
messages: 162794
nosy: suzhengchun
priority: normal
severity: normal
status: open
title: make install error: ImportError: No module named _struct
type: compile error
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15066>
_______________________________________
More information about the Python-bugs-list
mailing list