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

cannot use python3.6 in buildInputs #13

Open
pedohorse opened this issue Jul 16, 2023 · 3 comments
Open

cannot use python3.6 in buildInputs #13

pedohorse opened this issue Jul 16, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@pedohorse
Copy link

you can test on simple

mkShell {
    buildInputs = [ nixpkgs-python.packages.x86_64-linux."3.6" ];
};

then with nix develop - python will not start.
looks like the problem has something to do with this change since 3.8

@domenkozar
Copy link
Member

What error do you get?

@pedohorse
Copy link
Author

sorry that i haven't posted the error message - thought it's easier to reproduce and see, but here it is:

Failed to import the site module
Traceback (most recent call last):
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/site.py", line 553, in <module>
    main()
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/site.py", line 539, in main
    known_paths = addusersitepackages(known_paths)
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/site.py", line 282, in addusersitepackages
    user_site = getusersitepackages()
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/site.py", line 258, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/site.py", line 248, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/sysconfig.py", line 601, in get_config_var
    return get_config_vars().get(name)
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/sysconfig.py", line 550, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/nix/store/3ydi8l8whzrvfbmr29aiyiahb9d2kqgs-python3-3.6.15/lib/python3.6/sysconfig.py", line 421, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

as you see, there is m missing in '_sysconfigdata__linux_x86_64-linux-gnu'
and that has something to do with this i bet

@domenkozar domenkozar added the bug Something isn't working label Jul 17, 2023
@domenkozar
Copy link
Member

Someone should try to apply https://github.com/pypa/distutils/pull/111/files and see if it fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants