[Tutor] ImportError: No module named '_sysconfigdata_m'

eryksun eryksun at gmail.com
Tue Sep 24 00:23:22 CEST 2013


On Mon, Sep 23, 2013 at 3:28 PM, Albert-Jan Roskam <fomcl at yahoo.com> wrote:
> I just wanted to type "git status" in my Linux terminal but I made a typo
> and I got a long Python 3.3 traceback message. Just curious: What does it
> mean?
>
> gigt status
> Traceback (most recent call last):

"gigt"? Why is that trying to run Python?

>   File "/usr/lib/python3.3/_sysconfigdata.py", line 6, in <module>
>     from _sysconfigdata_m import *
> ImportError: No module named '_sysconfigdata_m'

_sysconfigdata.build_time_vars updates sysconfig._CONFIG_VARS.
build_time_vars was parsed from pyconfig.h when Python was built:

http://hg.python.org/cpython/file/d047928ae3f6/Lib/sysconfig.py#l364
http://hg.python.org/cpython/file/d047928ae3f6/pyconfig.h.in

On Debian systems the dict is actually stored in the platform-specific
module _sysconfigdata_m. I doubt it's a sys.path issue since the
platform subdirectory is baked in to the interpreter binary. Check
that the module exists:

/usr/lib/python3.3/plat-x86_64-linux-gnu/_sysconfigdata_m.py
or
/usr/lib/python3.3/plat-i386-linux-gnu/_sysconfigdata_m.py


More information about the Tutor mailing list