# Compas error in Visual Studio Code

**URL:** <https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448>\
**Category:** Uncategorized\
**Created:** [March 11, 2021, 5:47pm UTC](https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448 "2021-03-11T17:47:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.compas-framework.org/u/Jan)\
**Post date:** [March 11, 2021, 5:47pm UTC](https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448/1 "2021-03-11T17:47:12Z")

</div>

Dear,  
I am having such an issue:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/5b54a08cb6219956f29d9e738f144e5e682f0205.png)

**the code is:**

from compas.geometry import Point

from compas\_plotters.artist import PointArtist

from compas\_plotters import GeometryPlotter

from compas.geometry import Line

pt = Point(0,1,1)

pt2 = Point(1,5,0)

ln = Line(pt, pt2)

print(ln)

pointartist = PointArtist(pt)

plotter = GeometryPlotter(show\_axes = True)

plotter.add(ln)

plotter.show()

**compas version**  
argh 0.26.2  
attrs 20.3.0  
certifi 2020.12.5  
COMPAS 1.1.0  
compas-fofin 0.1.0  
compas-tna 0.1.5  
contextlib2 0.5.5

The same code worked out in anaconda prompt, but is not working on Visual Studio Code.

Does anyone know what is the issue?

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.compas-framework.org/u/Jan)\
**Post date:** [March 11, 2021, 5:50pm UTC](https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448/2 "2021-03-11T17:50:28Z")

</div>

The OS is Windows 10

---

<div class="post-metadata">

**Author:** ![gonzalocasas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/gonzalocasas/32/127_2.png) [@gonzalocasas](https://forum.compas-framework.org/u/gonzalocasas)\
**Post date:** [March 12, 2021, 3:25pm UTC](https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448/3 "2021-03-12T15:25:28Z")

</div>

You need to configure the `Default Shell` in VS Code to be `Command Prompt`: press `Ctrl+Shift+P`, then search for `Select Default Shell` and choose `Command Prompt` from the list. Then, restart to be sure, and it should work.

This happens because your default shell (PowerShell) does not properly support conda activation.

Cheers

---

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [March 17, 2021, 7:02am UTC](https://forum.compas-framework.org/t/compas-error-in-visual-studio-code/448/4 "2021-03-17T07:02:14Z")

</div>

could be this but usually the error looks different in that case. could you check the numpy version?
