question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install local wheel package missing path in lock file

See original GitHub issue

In my program I use a local wheel, I’m in the process to upgrading from py 3.7 to py 3.11 and I had some trouble installing a local wheel (hash mismatch) bu I was able to install it after the first lock.

Then I noticed wheel path is missing in the lock file, is that a normal behavior?

immagine

This is my actual pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
pyinstaller = "5.6.2"

[packages]
python-dotenv = "==0.21.0"
requests = "==2.28.1"
flask = "==2.2.2"
flask-cors = "==3.0.10"
flask-caching = "==2.0.1"
flask-jwt-extended = "==4.4.4"
python-dateutil = "==2.8.2"
peewee = "==3.15.4"
pysqlite3 = {path = "./../_res/wheels/pysqlite3-0.4.7-cp311-cp311-win_amd64.whl"}

[requires]
python_version = "3.11"
python_full_version = "3.11.0"

vs old one

immagine

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
matteiuscommented, Nov 19, 2022

Confirmed: its a windows issue.

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5479
$ pipenv install ~/Downloads/requests-2.28.1-py3-none-any.whl
Creating a virtualenv for this project...
Pipfile: C:\Users\matte\Projects\pipenv-triage\pipenv-5479\Pipfile
Using default python from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\python.exe (3.10.8) to create virtualenv...
[  ==] Creating virtual environment...created virtual environment CPython3.10.8.final.0-64 in 3571ms
  creator Venv(dest=C:\c\users\matte\.virtualenvs\pipenv-5479-4OwuyVrB, clear=False, no_vcs_ignore=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\matte\AppData\Local\pypa\virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.5.1, wheel==0.37.1
  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Successfully created virtual environment!
Virtualenv location: \c\Users\matte\.virtualenvs\pipenv-5479-4OwuyVrB
Creating a Pipfile for this project...
Installing C:/Users/matte/Downloads/requests-2.28.1-py3-none-any.whl...
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Locking [dev-packages] dependencies...
Updated Pipfile.lock (0160b5f2eb5a90be856731097b066b03ccbaff274d1568aa0fc498c34609a7b8)!
Installing dependencies from Pipfile.lock (09a7b8)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5479
$ ls
Pipfile  Pipfile.lock

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5479
$ cat Pipfile.lock
{
    "_meta": {
        "hash": {
            "sha256": "0160b5f2eb5a90be856731097b066b03ccbaff274d1568aa0fc498c34609a7b8"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.10"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certifi": {
            "hashes": [
                "sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14",
                "sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2022.9.24"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845",
                "sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f"
            ],
            "markers": "python_full_version >= '3.6.0'",
            "version": "==2.1.1"
        },
        "idna": {
            "hashes": [
                "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4",
                "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==3.4"
        },
        "requests": {
            "hashes": [
                "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"
            ],
            "markers": null,
            "version": "==2.28.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e",
                "sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'",
            "version": "==1.26.12"
        }
    },
    "develop": {}
}
1reaction
matteiuscommented, Nov 19, 2022

It’s plausible that there are some python 3.11 bugs in pipenv that haven’t yet been fully realized, this may be one of them but that is surely perplexing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wheel installation fails when local path dependency introduced
Wheel installation fails when local path dependency introduced #4868 ... Exception trace thrown when invoking pip install of the .whl file.
Read more >
12. Creating packages — Level Up Your Python - GitHub Pages
To install a local package, use: pip install . This will copy the files into site-packages. If you want to actively develop a...
Read more >
pip download - pip documentation v22.3.1
If a local path or file:// URL that's a directory, then look for archives in the directory listing. Links to VCS project URLs...
Read more >
Third-party dependencies - Pants build
Instead, Pants understands exactly which dependencies every file in your project needs, ... [python].resolves to the path of your lockfile(s). Also set
Read more >
Environments with a Shared Package Installation Directory ...
these files are stored in a user-level directory, e.g. under ~/.local/state/python3.10/envs/default/{pyproject,lockfile}; package(s) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found