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.

Pipenv failing to locate python version.

See original GitHub issue

My github workflow which uses pipenv has stopped being able to locate python. I’ve tried to fix this in a couple of places, but have only seemed to make the problem worse. https://github.com/lewiswolf/kac_drumset/pull/17#partial-pull-merging

The error I am concerned about is

FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/.local/share/virtualenvs/kac_drumset-8k23AR3r/bin/python'

My workflow looks like this:

    all-tests:
        runs-on: ${{ matrix.os }}
        strategy:
            matrix:
                os: [macos-latest, ubuntu-latest, windows-latest]
                python: ["3.9", "3.10"]

        steps:
            - uses: actions/checkout@v3
              with:
                  submodules: recursive
            - uses: lukka/get-cmake@latest
            - uses: actions/setup-python@v4
              with:
                  python-version: ${{ matrix.python }}
            - uses: actions/cache@v3
              id: cache-pipenv
              with:
                  path: ~/.local/share/virtualenvs
                  key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}

            - name: Install OS specific dependencies
              if: ${{ matrix.os == 'ubuntu-latest' }}
              run: sudo apt-get install libsndfile1

            - name: Install pipenv
              run: python -m pip install --upgrade pip pipenv setuptools wheel

            - name: Install python dependencies
              run: pipenv install -d --python ${{ matrix.python }}

The workflow always fails on the last step shown above. This initially was only happening on macos-latest, but is now also happening on other operating systems.

Thanks, Lewis

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JonZeollacommented, Oct 5, 2022

@lewiswolf I dug into this further and this is a pipenv problem. The fix is in the main branch and should be included in the next release according to https://github.com/pypa/pipenv/issues/5288#issuecomment-1264809498

1reaction
lewiswolfcommented, Sep 22, 2022

Deleted the caches using the gh cli extension worked, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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