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.

Incompatible Python environment could be auto-activated in ROS terminal

See original GitHub issue

I have ms-python.python extension installed and it by default will automatically launch a Python environment for every terminal open in VSCode, and which results in unexpected behaviors. Any thought?

image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
seanyencommented, May 24, 2019

Sourcing c:\opt\ros\melodic\x64\setup.bat does the trick to make c:\opt\python27amd64\python.exe on the list. And I need to manually switch to it once to make the change happen in workspace settings.json.

1reaction
kejxucommented, May 24, 2019

No, a virtualenv is chosen instead.

I think this might be the reason, as the Python extension detects that the interpreter is from venv, it will attempt to activate the environment in the terminal

And here are the choices I have. Do I need to source c:\opt\ros\melodic\setup.bat before running vscode?

Yes, I think so. our (ros) python install path needs to be in the environment so that the extension can pick it up. Maybe you could also try typing that in manually, I think that would also work.

I am guessing it’s because I have gone through this earlier, so when I launch a vscode instance without sourcing setup.bat first, I can still see the (ros) python: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

geometry2 / tf2_py incompatible with python 3.6 and 3.7 #411
I am using Python 3.6 and can import tf2_ros or tf2_py without any problems. Maybe it's somehow related to Anaconda? What about just...
Read more >
Conflict anaconda vs ROS, catking_pkg not found
The problem I think it is that it is getting anaconda python path. I have tried: sudo apt-get install --reinstall python-rospkg python-rosdep ......
Read more >
python - Conda install and update do not work also solving ...
1) I cannot use conda install for any package. It will give me the error in solving environment list this: failed with initial...
Read more >
vocab.pubmed.txt - UCI Machine Learning Repository
... 3-sulfate 3t 3-t 3t3-f442a 3tc 3'-terminal 3'-termini 3'-terminus 3-tesla ... aboh abo-incompatible abolish abolished abolishes abolishing abolishment ...
Read more >
Landscape of the p53 transcriptome and clinical implications ...
The C-terminal domain (CTD) of p53 is important for protein-protein interactions ... Cells may be stressed in a variety of ways including DNA...
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