Bug#783787: devscripts: upgrade fails; ImportError: No module named '_sysconfigdata_m'
Package: python3.4 Version: 3.4.3-4 Followup-For: Bug #783787 This seems to break Python 3 and with it all Python 3-dependent scripts on affected machines due to `_sysconfigdata_m.py` not existing in the import path when called from `/usr/lib/python3.4/_sysconfigdata.py`. The module exists in the `/usr/lib/python3.4/plat-i386-linux-gnu` directory, though. A quick workaround in a single command for those finding this bug report who just want to get it working immediately could be to run sudo ln -sr /usr/lib/python3.4/plat-i386-linux-gnu/_sysconfigdata_m.py \ /usr/lib/python3.4/ (verified to work on my local system) while remembering to revert the manual workaround as soon as a proper fix rolls in. -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3.4 depends on: ii libpython3.4-stdlib 3.4.3-4 ii mime-support 3.58 ii python3.4-minimal3.4.3-4 python3.4 recommends no packages. Versions of packages python3.4 suggests: ii binutils2.25-7 pn python3.4-doc none ii python3.4-venv 3.4.3-4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#783787: devscripts: upgrade fails; ImportError: No module named '_sysconfigdata_m'
Package: python3.4 Version: 3.4.3-4 Severity: critical Followup-For: Bug #783787 Reproduced on amd64. This makes *any* software that uses python3 unusable, so I'm escalating the severity. It also breaks the installation of packages (as this may use python3). The issue seems to be that python3 does not search it's own module path by default. c.f. $ python3 Failed to import the site module Traceback (most recent call last): File /usr/lib/python3.4/site.py, line 586, in module main() File /usr/lib/python3.4/site.py, line 572, in main known_paths = addusersitepackages(known_paths) File /usr/lib/python3.4/site.py, line 287, in addusersitepackages user_site = getusersitepackages() File /usr/lib/python3.4/site.py, line 263, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File /usr/lib/python3.4/site.py, line 253, in getuserbase USER_BASE = get_config_var('userbase') File /usr/lib/python3.4/sysconfig.py, line 597, in get_config_var return get_config_vars().get(name) File /usr/lib/python3.4/sysconfig.py, line 540, in get_config_vars _init_posix(_CONFIG_VARS) File /usr/lib/python3.4/sysconfig.py, line 412, in _init_posix from _sysconfigdata import build_time_vars File /usr/lib/python3.4/_sysconfigdata.py, line 6, in module from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' vs. $ PYTHONPATH=/usr/lib/python3.4/plat-x86_64-linux-gnu/ python3 Python 3.4.3 (default, Apr 29 2015, 20:37:56) [GCC 4.9.2] on linux Type help, copyright, credits or license for more information. mgfsdar IOhannes gfmdsa IOhannes -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3.4 depends on: ii libpython3.4-stdlib 3.4.3-4 ii mime-support 3.58 ii python3.4-minimal3.4.3-4 python3.4 recommends no packages. Versions of packages python3.4 suggests: ii binutils2.25-7 pn python3.4-doc none pn python3.4-venv none -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#783787: devscripts: upgrade fails; ImportError: No module named '_sysconfigdata_m'
Control: reassign -1 python3.4 3.4.3-4 On Thu, 2015-04-30 at 14:59 +1000, Brian May wrote: This is under i386 only, amd64 seems to be fine. Preparing to unpack .../devscripts_2.15.4_i386.deb ... Failed to import the site module Traceback (most recent call last): File /usr/lib/python3.4/site.py, line 586, in module main() [...] File /usr/lib/python3.4/_sysconfigdata.py, line 6, in module from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' This wasn't a problem with devscripts (as per the lack of anything devscripts-related in the stack trace), rather it was simply the first Python 3.4-using package that was updated on your system. It looks like this is the python3.4 version of #783738, which was recently introduced and then fixed for python2.7; reassigning. Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#783787: devscripts: upgrade fails; ImportError: No module named '_sysconfigdata_m'
Package: devscripts Version: 2.15.3 Severity: important This is under i386 only, amd64 seems to be fine. Preparing to unpack .../devscripts_2.15.4_i386.deb ... Failed to import the site module Traceback (most recent call last): File /usr/lib/python3.4/site.py, line 586, in module main() File /usr/lib/python3.4/site.py, line 572, in main known_paths = addusersitepackages(known_paths) File /usr/lib/python3.4/site.py, line 287, in addusersitepackages user_site = getusersitepackages() File /usr/lib/python3.4/site.py, line 263, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File /usr/lib/python3.4/site.py, line 253, in getuserbase USER_BASE = get_config_var('userbase') File /usr/lib/python3.4/sysconfig.py, line 597, in get_config_var return get_config_vars().get(name) File /usr/lib/python3.4/sysconfig.py, line 540, in get_config_vars _init_posix(_CONFIG_VARS) File /usr/lib/python3.4/sysconfig.py, line 412, in _init_posix from _sysconfigdata import build_time_vars File /usr/lib/python3.4/_sysconfigdata.py, line 6, in module from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Failed to import the site module Traceback (most recent call last): File /usr/lib/python3.4/site.py, line 586, in module main() File /usr/lib/python3.4/site.py, line 572, in main known_paths = addusersitepackages(known_paths) File /usr/lib/python3.4/site.py, line 287, in addusersitepackages user_site = getusersitepackages() File /usr/lib/python3.4/site.py, line 263, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File /usr/lib/python3.4/site.py, line 253, in getuserbase USER_BASE = get_config_var('userbase') File /usr/lib/python3.4/sysconfig.py, line 597, in get_config_var return get_config_vars().get(name) File /usr/lib/python3.4/sysconfig.py, line 540, in get_config_vars _init_posix(_CONFIG_VARS) File /usr/lib/python3.4/sysconfig.py, line 412, in _init_posix from _sysconfigdata import build_time_vars File /usr/lib/python3.4/_sysconfigdata.py, line 6, in module from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' dpkg: error processing archive /var/cache/apt/archives/devscripts_2.15.4_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Failed to import the site module Traceback (most recent call last): File /usr/lib/python3.4/site.py, line 586, in module main() File /usr/lib/python3.4/site.py, line 572, in main known_paths = addusersitepackages(known_paths) File /usr/lib/python3.4/site.py, line 287, in addusersitepackages user_site = getusersitepackages() File /usr/lib/python3.4/site.py, line 263, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File /usr/lib/python3.4/site.py, line 253, in getuserbase USER_BASE = get_config_var('userbase') File /usr/lib/python3.4/sysconfig.py, line 597, in get_config_var return get_config_vars().get(name) File /usr/lib/python3.4/sysconfig.py, line 540, in get_config_vars _init_posix(_CONFIG_VARS) File /usr/lib/python3.4/sysconfig.py, line 412, in _init_posix from _sysconfigdata import build_time_vars File /usr/lib/python3.4/_sysconfigdata.py, line 6, in module from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../linux-libc-dev_3.16.7-ckt9-3_i386.deb ... Unpacking linux-libc-dev:i386 (3.16.7-ckt9-3) over (3.16.7-ckt9-2) ... Processing triggers for man-db (2.7.0.2-5) ... Errors were encountered while processing: /var/cache/apt/archives/devscripts_2.15.4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) -- Package-specific info: --- /etc/devscripts.conf --- --- ~/.devscripts --- DEBSIGN_KEYID=B9D02636 -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE= (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages devscripts depends on: ii dpkg-dev 1.17.25 ii libc62.19-18 ii perl 5.20.2-3 ii python3 3.4.2-2 pn python3:any none Versions of packages devscripts recommends: pn at none pn dctrl-tools none pn debian-keyring none pn dput | dupload none pn equivs none ii fakeroot1.20.2-1 pn filenone ii gnupg 1.4.18-7 pn libdistro-info-perl none pn libencode-locale-perl
Bug#783787: devscripts: upgrade fails; ImportError: No module named '_sysconfigdata_m'
notfound 783787 2.15.3 found 783787 2.15.4 thanks Supplied the wrong version by mistake :-( This happens with the version in sid.