X Tutup
The Wayback Machine - https://web.archive.org/web/20231120064909/https://github.com/python/cpython/issues/81758
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu' #81758

Closed
LuisAlejandro mannequin opened this issue Jul 13, 2019 · 8 comments
Closed

ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu' #81758

LuisAlejandro mannequin opened this issue Jul 13, 2019 · 8 comments
Labels
3.8 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@LuisAlejandro
Copy link
Mannequin

LuisAlejandro mannequin commented Jul 13, 2019

BPO 37577
Nosy @doko42, @tiran, @LuisAlejandro

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2019-07-13.01:52:11.187>
labels = ['type-bug', '3.8']
title = "ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'"
updated_at = <Date 2021-10-19.11:06:47.514>
user = 'https://github.com/LuisAlejandro'

bugs.python.org fields:

activity = <Date 2021-10-19.11:06:47.514>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2019-07-13.01:52:11.187>
creator = 'luisalejandro'
dependencies = []
files = []
hgrepos = []
issue_num = 37577
keywords = []
message_count = 6.0
messages = ['347765', '347766', '347788', '348017', '348018', '348079']
nosy_count = 3.0
nosy_names = ['doko', 'christian.heimes', 'luisalejandro']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37577'
versions = ['Python 3.8']

@LuisAlejandro
Copy link
Mannequin Author

LuisAlejandro mannequin commented Jul 13, 2019

Hello everyone,

I've been building some minimal python docker images for a while and a few days ago an error popped out in my CI when building python 3.8 on debian sid. The error happens when trying to install pip with the usual:

curl -fsSL https://bootstrap.pypa.io/get-pip.py | python3.8 - setuptools

The message:

ERROR: Exception:
Traceback (most recent call last):
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/cli/base_command.py", line 178, in main
    status = self.run(options, args)
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/commands/install.py", line 405, in run
    installed = install_given_reqs(
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/req/__init__.py", line 54, in install_given_reqs
    requirement.install(
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/req/req_install.py", line 919, in install
    self.move_wheel_files(
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/req/req_install.py", line 440, in move_wheel_files
    move_wheel_files(
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/wheel.py", line 318, in move_wheel_files
    scheme = distutils_scheme(
  File "/tmp/tmprv6tur0m/pip.zip/pip/_internal/locations.py", line 180, in distutils_scheme
    i.finalize_options()
  File "/usr/lib/python3.8/distutils/command/install.py", line 306, in finalize_options
    (prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
  File "/usr/lib/python3.8/distutils/sysconfig.py", line 501, in get_config_vars
    func()
  File "/usr/lib/python3.8/distutils/sysconfig.py", line 461, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

You can check the full CI output[0] or the building script if you need to[1].

I've checked for similar bugs and I found bpo-28046 but I don't know if this is related or not.

Thanks for the great work and I'm looking forward to help you fix this issue.

Luis

[0]https://travis-ci.org/LuisAlejandro/dockershelf/jobs/557990064
[1]https://github.com/LuisAlejandro/dockershelf/blob/master/python/build-image.sh

@LuisAlejandro LuisAlejandro mannequin added the 3.8 only security fixes label Jul 13, 2019
@LuisAlejandro
Copy link
Mannequin Author

LuisAlejandro mannequin commented Jul 13, 2019

New information on this:

python3-distutils for 3.8 exists on Debian (experimental) but python3 (which is kind of a meta-package) for 3.8 doesn't exist. It depends on python3.8 or python3.7, resulting in the installation on python3.7.

Perhaps this is a bug to report on Debian instead of here, idk.

@LuisAlejandro LuisAlejandro mannequin added the type-crash A hard crash of the interpreter, possibly with a core dump label Jul 13, 2019
@tiran
Copy link
Member

tiran commented Jul 13, 2019

Yes, this is most likely a packaging bug on Debian.

By the way, Python comes with an ensurepip module. To install pip, just execute "python3.8 -m ensurepip".

@doko42
Copy link
Member

doko42 commented Jul 16, 2019

this is issue bpo-37561, making the sysconfigdata file name not changing with the kernel version of the OS. I need to commit that patch to the trunk and 3.8. But apparently pip needs to be aware of that as well ...

@LuisAlejandro
Copy link
Mannequin Author

LuisAlejandro mannequin commented Jul 16, 2019

Thanks Christian for the suggestion and Matthias.

@doko42
Copy link
Member

doko42 commented Jul 17, 2019

Luis, I'm still trying to figure out why you are seeing that. Please could you report the package versions which are installed on the system?

dpkg -l python3.7 python3.8 python3-distutils

@iritkatriel iritkatriel added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Oct 19, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@mattip
Copy link
Contributor

mattip commented Nov 16, 2022

I think this should be closed, it is more about how debian packages python than something that CPython can fix.

@FFY00
Copy link
Member

FFY00 commented Apr 3, 2023

Agreed.

@FFY00 FFY00 closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

5 participants
X Tutup