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.

Spaces in Path to Virtualenv Fail to Spawn `fish` Shell

See original GitHub issue
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Ubuntu 18.04, WSL 2

  • Poetry version: 1.0.3

  • Link of a Gist with the contents of your pyproject.toml file: Not easily possible (proprietary project).

Issue

  1. I overrode where virtualenvs get installed.
  2. My full path to the virtualenv includes a folder with spaces in the name.
  3. When spawning the shell with poetry shell, it chokes with fish trying to ‘source …’ a path with non-escaped or quoted spaces.

Otherwise, poetry install and other related commands all work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
atomobiancocommented, Feb 2, 2021

Hello there, I stumbled on this open issue and I hope to give more info about a working context. I use fish (version 3.1.2) and poetry (Poetry version 1.1.4). I installed https://github.com/ryoppippi/fish-poetry with fisher install 'ryoppippi/fish-poetry'. Whenever I enter a poetry folder with the local virtual environment .venv the shell automatically activates it:

Spawning shell within /home/me/project/.venv
source /home/me/project/.venv/bin/activate.fish
...

and when running within this I get

Virtual environment already activated: /home/me/project/.venv

All works fine in my case.

0reactions
theonewolfcommented, Mar 4, 2021

That PR supposedly closed https://github.com/python-poetry/poetry/issues/3630.

Which looks like a duplicate issue for what I reported 1 year ago, almost to the day.

Based on the commit and that issue, I believe we can safely close this. I will re-open this issue if I notice it cropping up in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Spaces in Path to Virtualenv Fail to Spawn `fish` Shell -
I overrode where virtualenvs get installed. · My full path to the virtualenv includes a folder with spaces in the name. · When...
Read more >
How to get virtualenv to work with fish shell? - Stack Overflow
You can use the command - set VIRTUAL_ENV 'path to the virtual env directory' Example - set ...
Read more >
virtualenv with gunicorn not working - DigitalOcean
I am developing a django project in the instantiate (droplet) in which is created ubuntu server 14.04 + django.
Read more >
pipenv Documentation
shell will spawn a shell with the virtualenv activated. • run will run a given command from the virtualenv, with any arguments forwarded ......
Read more >
Powerline - Read the Docs
Extensible and feature rich, written in Python. Powerline was completely rewritten in Python to get rid of as much vimscript as possible.
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