pipenv fails when pipfile.lock is updated

Vincent Buscarello's Avatar

Vincent Buscarello

08 Aug, 2019 09:20 PM

combing hard through these logs, Powershell seems to fail _because_ the pipfile.lock is updated? pretty lost here.

```
...
Installing collected packages: toml, attrs, click, appdirs, black
Successfully installed appdirs-1.4.3 attrs-19.1.0 black-19.3b0 click-7.0 toml-0.10.0
Command executed with exception: Updated Pipfile.lock (780220)!
```

full build
https://ci.appveyor.com/project/ukanga/pyxform/builds/26571963/job/1rq3n5vwtn1nrcp6

attempt at config
https://github.com/KeynesYouDigIt/pyxform/blob/pipenv/appveyor.yml

  1. 1 Posted by Vincent Buscare... on 08 Aug, 2019 10:06 PM

    Vincent Buscarello's Avatar

    Heres the work around :/
    https://ci.appveyor.com/project/ukanga/pyxform/builds/26572919

    most specifically
    ```
      - ps: python -Wignore -m pip install pipenv
      - ps: rm Pipfile.lock
      - ps: $PIPENV_QUIET="true"
      - pipenv run conditional_install
    ```

  2. Support Staff 2 Posted by Owen McDonnell on 09 Aug, 2019 12:26 AM

    Owen McDonnell's Avatar

    Is there a difference when you run these commands on your local machine?

  3. 3 Posted by Vincent Buscare... on 09 Aug, 2019 03:35 PM

    Vincent Buscarello's Avatar

    Yes, im on linux but I installed powershell to check and powershell runs everything without error when running - pipenv run conditional_install by itself

  4. 4 Posted by Vincent Buscare... on 09 Aug, 2019 03:37 PM

    Vincent Buscarello's Avatar

    Since its squashed heres the original that would fail for reference

    ```
      - ps: python -Wignore -m pip install pipenv
      - ps: pipenv run conditional_install
    ```

  5. Support Staff 5 Posted by Owen McDonnell on 09 Aug, 2019 04:08 PM

    Owen McDonnell's Avatar

    From a brief look at a couple issues, it looks like pipenv prints a number of things to stderr. So perhaps the PIPENV_QUIET variable is less a workaround and more best practice?

  6. 6 Posted by Vincent Buscare... on 09 Aug, 2019 05:00 PM

    Vincent Buscarello's Avatar

    Be helpful to have that in the python docs if possible

  7. Support Staff 7 Posted by Owen McDonnell on 09 Aug, 2019 05:12 PM

    Owen McDonnell's Avatar

    Our docs are open source so feel free to make a pull request.

  8. 8 Posted by Vincent Buscare... on 09 Aug, 2019 05:43 PM

    Vincent Buscarello's Avatar
  9. Support Staff 9 Posted by Owen McDonnell on 09 Aug, 2019 10:16 PM

    Owen McDonnell's Avatar

    Thank you!

  10. Owen McDonnell closed this discussion on 09 Aug, 2019 10:16 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac