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.

Fix No such file or directory on conda activate

See original GitHub issue

Environment data

  • VS Code version: 1.54.3
  • Extension version (available under the Extensions sidebar): v2021.3.680753044
  • OS and version: linux x64 5.9.16-1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.2 conda 4.9.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python-related VS Code extensions and their versions: Jupyter v2021.3.684299474
  • Value of the python.languageServer setting: Jedi

Expected behaviour

for the command ‘. activate’ to work in integrated terminal. (but the source command DOES work!- i.e source activate & conda activate)

Actual behaviour

. activate returns an error: No such file or directory, but weirdly enough - the command will work after deactivating the environment: image

Steps to reproduce:

  1. . activate conda_env_name

Consequence

This is actually affecting a error when using the jupyter extension: whenever I need to activate a virtual environment other than base in a notebook, the following command is used:

. activate mech && echo etc.

returning a command failed message saying: activate: No such file or directory. image

I’ve had this problem in the past, and it disappeared for a while, but now it’s back. Also, a weird observation: if code is called from terminal, this issue does not happen.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:13

github_iconTop GitHub Comments

1reaction
karrtikrcommented, Jun 6, 2022
1reaction
mokeyishcommented, Apr 24, 2022

Hello, I have fixed this issue in PR https://github.com/microsoft/vscode-python/pull/18989

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is Anaconda source activate non-existent? - Stack Overflow
When trying to activate an environment, the console output is -bash: activate: No such file or directory . The output of which conda...
Read more >
When using conda, "source activate [env_name]" doesn't work ...
To fix this problem, you can simply enter the following command in the terminal where user is your username. export PATH="/home/user/anaconda3/ ...
Read more >
Failed to activate conda environment! - Mapping step
Hi everyone, I am new to Galaxy and I am facing a conda environment ... Failed to activate conda environment! ... No such...
Read more >
Managing environments - Conda
Locate the directory for the conda environment in your Anaconda Prompt by running in the command shell %CONDA_PREFIX% . Enter that directory and...
Read more >
'activate' is not a conda command. Keeps popping up. What ...
source activate rsudp (or conda activate rsudp if you installed it ... bash: Miniconda-latest-Linux-armv71.sh: No such file or directory
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