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.

support more shells (fish / csh / bash / powershell)

See original GitHub issue

I’m using fish and looks pipenv works fine without shell command:

❰/private/tmp/asd❱✔≻ pipenv shell
Spawning virtualenv shell (/usr/local/bin/fish).
Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.
/private/tmp/asd/.venv/bin/activate (line 23):     if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
                                                                         ^
from sourcing file /private/tmp/asd/.venv/bin/activate
	called on line 194 of file /usr/local/Cellar/fish/2.4.0/share/fish/config.fish

in function '.'
	called on standard input

source: Error while reading file '/private/tmp/asd/.venv/bin/activate'

Seems it is trying to active the virtualenv with bin/active, but virtualenv also support fish via bin/active.fish, i think we can source it while detected current shell is fish.

And also, i think pipenv dose not support csh / cmd.exe now…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
kennethreitzcommented, Jan 24, 2017

going to drop windows support for now.

0reactions
jessebrahamcommented, Jan 24, 2017

@uranusjr It is possible to detect the difference between Powershell and Command Prompt, for example using the psutil module:

import psutil
import sys

if sys.platform() == 'win32':
    me = psutil.Process()
    parent = psutil.Process(me.ppid())

    # Prints 'powershell.exe' or 'cmd.exe'
    print(parent.name())

However as you mentioned, pexpect.spawn is not supported on Windows, and there are no plans for it ever to be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fish Shell vs PowerShell | What are the differences?
It is a useful utility filled shell which makes command line operations quicker with customized functions, easy to append path variable command, command...
Read more >
Comparison of command shells - Wikipedia
A command shell is a command-line interface to interact with and manipulate a computer's operating system. Bash, the default shell on many GNU/Linux...
Read more >
I think that these 'improved shell' projects (incl. crush and ...
I think that bourne shell, bash, fish, zsh, and csh are all able to interact with the unix system in a way that...
Read more >
Fish vs. Zsh vs. Bash and Why You Should Switch to Fish
Bash is the most common Linux shell out there. If you open up a terminal on Mac (until macOS Mojave), or if you've...
Read more >
Why can't Windows OS run bash or fish shell without ... - Reddit
I am asking this question to learn more about how OS/ computers work. This is not a windows/tech support question. Powershell is just...
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