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 run --no-interactive

See original GitHub issue

For example, with Docker:

Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==3.3.6', 'console_scripts', 'pipenv')()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pipenv/cli.py", line 962, in run
    c.interact()
  File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 740, in interact
    mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

10reactions
relwellcommented, Feb 4, 2017

How about a --no-interactive flag that doesn’t open a new shell?

On Feb 4, 2017, at 2:25 PM, Kenneth Reitz notifications@github.com wrote:

or perhaps we can add a flag to run (e.g. $ pipenv run pytest --which), which would output the path to the executable, for environments like Docker.

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

4reactions
techalchemycommented, Mar 6, 2018

@marioBZ7 sorry, I didn’t realize the issue with ‘interactivity’ isn’t that you don’t want to give input (which is what PIPENV_YES addresses) but instead that you just need to use pipenv in docker.

I don’t know what you’re talking about

I would ask that you be a bit courteous, we are triaging a lot of issues and since most of them come down to a simple answer we don’t always invest a lot of time in each one.

This is a decent overview of how to use pipenv in docker, but essentially you will want to pass --system to prevent the creation of a virtualenv at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipenv shell in Jenkins return the issue termios.error
Jenkins is a non-interactive environment. All user input is nullified, and it's just an output console. So you cannot run an interactive ...
Read more >
Pipenv run vs Pipenv shell - Anselmos Blog
Pipenv run is the main purpose for running next python commands. It will automatically activate environment for that command and execute ...
Read more >
Image Layer Details - kennethreitz/pipenv:update-options
kennethreitz/pipenv:update-options ... /bin/sh -c mkdir -p /run/systemd ... /bin/sh -c LC_ALL=C DEBIAN_FRONTEND=noninteractive /tmp/build.sh. 148.59 MB.
Read more >
Running mypy and managing imports
This page discusses in more detail how exactly to specify what files you want mypy to type check, how mypy discovers imported modules,...
Read more >
pipenv run script
To activate this project's virtualenv, run the following: $ pipenv shell $ pipenv run --no-interactive python manage.py migrate ERROR: Job failed: exit code...
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