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.

Windows: Error launching shell

See original GitHub issue

I have a project with a simple Pipfile:

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]

bouncer = "*"
flask = "*"
"flask-bouncer" = "*"
"flask-marshmallow" = "*"
"flask-sqlalchemy" = "*"
marshmallow = "*"
"marshmallow-sqlalchemy" = "*"
"psycopg2" = "*"
pyjwt = "*"
sqlalchemy = "*"
webargs = "*"

[requires]
python_version = "3.6"

pipenv install is working as expected. Creates a new virtual environment and stuff. Now if I want to launch the environment using pipenv shell

C:\Users\fkraus\Projects\test-project>pipenv shell
Launching subshell in virtual environment. Type 'exit' to return.
Clink v0.4.8 [git:d565ad] Copyright (c) 2012-2016 Martin Ridgers
http://mridgers.github.io/clink

Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

The error translates to something like The command "C:\Program" is mistyped or can not be found.

My Python installation is globally available at C:\Python36. Looks like it is searching the Python installation at C:\Program. Is this intentionally or do I have a configuration error?

Edit: My virtual environment is properly created at C:\Users\fkraus\Envs\test-project-_LTCrZAU.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erinxoconcommented, Oct 6, 2017

Hey @floqqi and @uranusjr! I just submitted a PR that was accepted by pew that preserves your shell on windows without using cmder! Just a little subprocess magic in getting the parent process ID running pipenv/pew and then invoke that! If you reinstall pew in the environment pipenv is installed in you shouldn’t have to do these work arounds! cc @kennethreitz

0reactions
erinxoconcommented, Oct 6, 2017

@uranusjr no, if only sigh. I’m just a huge star trek fan and threw it in as an easter egg 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

EFI Shell start up error - Microsoft Community
Whenever it starts up, it goes to this EFI screen and no matter how many times I hold the power button and restart...
Read more >
FIXED Open Shell Not Working in Windows 11 | PC Error Fix
Watch our video #tutorial and follow the fixes shown to fix #OpenShell Not Working in #windows11 problem.For detailed step-by-step ...
Read more >
Error on Bash script when running from windows
I am new to bash. I am trying to configure searchguard(a plugin of elasticsearch). For this, I need to run the sgadmin.sh file....
Read more >
How to run .sh or Shell Script file in Windows 11/10
1] Execute Shell Script file using WSL ... Go to Settings > Update & Security > For Developers. Check the Developer Mode radio...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
The terminal exited with code 1 on Windows 10 (with WSL as the default shell) ... This can happen if Windows Subsystem for...
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