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

pipenv with pixi (on Windows) -- ssl issue #6325

Open
jamesmyatt opened this issue Dec 11, 2024 · 0 comments
Open

pipenv with pixi (on Windows) -- ssl issue #6325

jamesmyatt opened this issue Dec 11, 2024 · 0 comments

Comments

@jamesmyatt
Copy link

jamesmyatt commented Dec 11, 2024

I have been given a project that uses pipenv, and I'm developing on Windows, so I was wondering about using pixi to do installation of both pipenv as a global tool (like pipx) and the installation of Python for the virtual environment.

So far I have:

  • pixi global install pipenv - Fine 👍
  • pixi global install "python=3.8.3" -e python3-8-3 --with pip --expose python3-8-3=python - Seems fine 👍 Note pip is explicitly included
  • pipenv install --python C:\...\.pixi\env\python3-8-3\python.exe - (as in https://pipenv.pypa.io/en/latest/advanced.html#pipenv-and-other-python-distributions) Creates the required virtual environment using this version of Python, but can't install pypi packages there due to ssl issues:
WARNING:pipenv.patched.pip._internal.models.search_scope:pip is configured with locations that require TLS/SSL, however   
the ssl module in Python is not available.

In the python3-8-3 global environment, it has the following packages installed.

>pixi global list -e python3-8-3                     
The python3-8-3 environment has 12 packages:
Package          Version       Build               Size
ca-certificates  2024.8.30     h56e8100_0          155.1 KiB
libsqlite        3.47.2        h67fdade_0          870.4 KiB
openssl          1.1.1w        hcfcfb64_0          5 MiB
pip              24.3.1        pyh8b19718_0        1.2 MiB
python           3.8.3         cpython_h5fd99cc_0  18.9 MiB
setuptools       75.3.0        pyhd8ed1ab_0        761.3 KiB
sqlite           3.47.2        h2466b09_0          894.4 KiB
ucrt             10.0.22621.0  h57928b3_1          546.6 KiB
vc               14.3          ha32ba9b_23         17.1 KiB
vc14_runtime     14.42.34433   he29a5d6_23         736.6 KiB
vs2015_runtime   14.42.34433   hdffcdeb_23         17.2 KiB
wheel            0.45.1        pyhd8ed1ab_0        61.5 KiB
Package          Version       Build               Size

Exposes:
python3-8-3 -> python
Channels:
https://prefix.dev/conda-forge

All of the following commands work correctly (no errors), so ssl does appear to be available in all of the relevant environments (compare with

import _ssl # noqa: F401 # ignore unused
).

  • C:\...\.pixi\envs\python3-8-3\python.exe -c "import ssl", also ... "import _ssl"
  • C:\...\.pixi\envs\pipenv\python.exe -c "import ssl", also ... "import _ssl"

Any suggestions? Or is this a dumb idea?

The pipenv environment has the following packages installed, which includes openssl, so that should be OK 🤷.

>pixi global list -e pipenv
The pipenv environment has 26 packages:
Package          Version       Build               Size
bzip2            1.0.8         h2466b09_7          53.6 KiB
ca-certificates  2024.8.30     h56e8100_0          155.1 KiB
certifi          2024.8.30     pyhd8ed1ab_0        159.9 KiB
distlib          0.3.9         pyhd8ed1ab_1        267.7 KiB
filelock         3.16.1        pyhd8ed1ab_1        17 KiB
libexpat         2.6.4         he0c23c2_0          135.8 KiB
libffi           3.4.2         h8ffe710_5          41.1 KiB
liblzma          5.6.3         h2466b09_1          101.9 KiB
libmpdec         4.0.0         h2466b09_0          86.6 KiB
libsqlite        3.47.2        h67fdade_0          870.4 KiB
libzlib          1.3.1         h2466b09_2          54.2 KiB
openssl          3.4.0         h2466b09_0          8.1 MiB
packaging        24.2          pyhd8ed1ab_2        58.8 KiB
pip              24.3.1        pyh145f28c_0        1.2 MiB
pipenv           2024.4.0      pyhd8ed1ab_0        2 MiB
platformdirs     4.3.6         pyhd8ed1ab_1        20 KiB
python           3.13.1        h071d269_102_cp313  16 MiB
python_abi       3.13          5_cp313             6.6 KiB
setuptools       75.6.0        pyhff2d567_1        756.1 KiB
tk               8.6.13        h5226925_1          3.3 MiB
tzdata           2024b         hc8b5060_0          119.5 KiB
ucrt             10.0.22621.0  h57928b3_1          546.6 KiB
vc               14.3          ha32ba9b_23         17.1 KiB
vc14_runtime     14.42.34433   he29a5d6_23         736.6 KiB
virtualenv       20.28.0       pyhd8ed1ab_0        3.2 MiB
vs2015_runtime   14.42.34433   hdffcdeb_23         17.2 KiB
Package          Version       Build               Size

Exposes:
pipenv-resolver, pipenv
Channels:
https://prefix.dev/conda-forge

conda create -n python3-8-3 "python=3.8.3" installs the same conda packages as above, and has the same errors, so maybe it's an effect of the pixi global install. I am able to pip install packages into that conda environment, so I don't think it's a firewall issue.

@jamesmyatt jamesmyatt changed the title pipenv with pixi (on Windows) pipenv with pixi (on Windows) -- ssl issue Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant