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.

Error in PipenvUsageError?

See original GitHub issue
Step 1/5 : FROM python:3.8.0a1-alpine3.9
 ---> 4b47ccb20dbe
Step 2/5 : ENV PYTHONDONTWRITEBYTECODE 1
 ---> Using cache
 ---> 1266f81bbbb0
Step 3/5 : RUN pip install pipenv==2018.11.26
 ---> Using cache
 ---> 282c4198a839
Step 4/5 : COPY Pipfile Pipfile.lock /
 ---> a10b922545ea
Step 5/5 : RUN pipenv install --system --deploy --dev
 ---> Running in c1a8bbad3884
Your Pipfile.lock (0e51d6) is out of date. Expected: (cefd04).
Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 10, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/cli/command.py", line 235, in install
    retcode = do_install(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1863, in do_install
    do_init(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1192, in do_init
    raise exceptions.DeployException
  File "/usr/local/lib/python3.8/site-packages/pipenv/exceptions.py", line 168, in __init__
    PipenvUsageError.__init__(message=fix_utf8(message), extra=extra, **kwargs)
TypeError: __init__() missing 1 required positional argument: 'self'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

6reactions
nicktimkocommented, Nov 5, 2019

To my knowledge, I think this is only hit when there is a problem with the command or the Pipfile itself. If others come across this, check the Pipfile/Pipfile.lock is OK (not trashed by a merge conflict) and possibly recreate it by deleting the lockfile and pipenv lock again.

6reactions
dimaqqcommented, May 16, 2019

I guess the best is to ask nicely for a new release.

I’ve pinned pipenv==2018.10.13 or to be precise included that in my the docker image:

ENV PYTHONDONTWRITEBYTECODE 1
RUN pip install pipenv==2018.10.13
COPY Pipfile Pipfile.lock /
RUN pipenv install --system --deploy

If you need newer functionality (https://github.com/pypa/pipenv/blob/master/CHANGELOG.rst#20181126-2018-11-26, there’s plenty), patch our local pipenv with https://github.com/pypa/pipenv/commit/e532f16c62abff3e20e9129139889d166759cc77 or build your own wheel from master and install your custom build…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows reports error when trying to install package using ...
'pipenv' is not recognized as an internal or external command, operable program or batch file. I have added the path. C:\Users\Robert\AppData\ ...
Read more >
Exit codes — pytest documentation
Internal error happened while executing tests. Exit code 4. pytest command line usage error. Exit code 5. No tests were collected.
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
This article is one of many covering Python package and environment management with Pipenv. Here, you'll learn how to troubleshoot Pipenv installation and ......
Read more >
Starting Celery Worker From Python Script Results In Error
UsageError: No such command in 5.1.2. Hi everyone I am using celery for one ... Hi I am running celery worker command as...
Read more >
[Example code]-Bokeh Error thrown from periodic callback
I'm following a Udemy tutorial on Bokeh and I've come across an error that I can't figure out how to solve, and haven't...
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