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.

environment variables in pipfile scripts are not recognized correctly

See original GitHub issue

When running scripts from pipfile. Unix style environment variables are wrongly recognized as commands.

Expected result

hello=world is recognized as setting an environment variable

Actual result

Error: the command hello=world (from generic-script) could not be found within PATH.

Steps to replicate

  • have the following part in pipfile
    [scripts]
    generic-script = 'hello=world python --version'
    
  • $ pipenv run generic-script

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:16

github_iconTop GitHub Comments

3reactions
Madoshakalakacommented, Aug 19, 2019

a workaround is to use $ env hello=world <commands> on unix systems.

2reactions
matteiuscommented, Mar 23, 2022

@Madoshakalaka Could you check if new version 2022.3.23 which has a fix for something similar to this, solves this ticket?

Read more comments on GitHub >

github_iconTop Results From Across the Web

'pip' is not recognized as an internal or external command
and add it to environment variables. After path setting just run pip.exe file on C:\Python27\Scripts and then try pip in cmd. But if...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
If you want Pipenv to automatically “do the right thing”, you can set the environment variable PIPENV_PYTHON to $PYENV_ROOT/shims/python .
Read more >
Advanced Usage of Pipenv - Python Packaging Authority
Pipenv will expand environment variables (if defined) in your Pipfile. Quite useful if you need to authenticate to a private PyPI:.
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
How to Fix 'Pip' is Not Recognized as an Internal or External ...
Fix 2: Add Pip to the PATH Environment Variable · Launch the Run dialog box by pressing the Windows key + R. ·...
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