plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
293 stars 40 forks source link

Orca and Conda Removing Environment Error #320

Open rwolst opened 4 years ago

rwolst commented 4 years ago

I am using Conda on Windows and am having an issue when removing an environment with Orca installed.

The quickest way to see this is by doing the following:

conda create -y -n orca_test python=3.6.3
activate orca_test
conda install -y -c plotly plotly-orca==1.2.1
deactivate orca_test
conda env remove -y -n orca_test

This will remove the virtual environment in the sense that Conda no longer lists it, however the directory relating to the virtual environment still exists and it is impossible to create a new environment with the same name.

Furthermore, if you try to remove this directory it complains the files are in use by another process. My guess is that the orca server is not being shutdown before the environment is attempting to be removed. For example

orca_app\blink_image_resources_200_percent.pak
The process cannot access the file because it is being used by another process.

Is there anyway of shutting down the server so that I can remove these directories?

antoinerg commented 4 years ago

Hello @rwolst,

On the top of my head, I'm not sure there is another way than killing the Orca process. On Windows, it can be done via the Task Manager.