Select to view content in your preferred language

Can't clone Py environment in 2.3.2

4038
12
04-02-2019 06:53 PM
GabrielMarcus1
Frequent Contributor

I should say I _still_ can't clone the Py environment, but my home machine gives me a different error message than my work machine. 

What work around is there for 2.3.2? Dan Patterson 

Is it finally fixed in 2.4?

ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'defaults::ipykernel-4.9.0-py36_0'.
LinkError: post-link script failed for package defaults::ipykernel-4.9.0-py36_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\...\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

Attempting to roll back.


LinkError: post-link script failed for package defaults::ipykernel-4.9.0-py36_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\...\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone2\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

Tags (1)
12 Replies
by Anonymous User
Not applicable

Add another one to the list-

If these updates invalidate old clones each time Pro is upgraded, it is going to be a pain to keep rebuilding them each time.  Especially if you have specific environments for processes and can't remember what packages you have installed in them... being able to rename the clones at the time of cloning would be a lot better than the default clone1, clone2 etc...  add the option to export the env to a yml or something that the users can use to rebuild the env's when needed, without having to go through conda to do so.

Running as administer didn't work-  my pkg folder is empty with exception of cache. Still get the failed to clone env error:

ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'defaults::ipykernel-5.1.2-py36h39e3cac_0'.
LinkError: post-link script failed for package defaults::ipykernel-5.1.2-py36h39e3cac_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\Mine\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

Attempting to roll back.


LinkError: post-link script failed for package defaults::ipykernel-5.1.2-py36h39e3cac_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\Mine\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

0 Kudos
JoeBorgione
MVP Emeritus

...it is going to be a pain to keep rebuilding them each time.  Especially if you have specific environments for processes and can't remember what packages you have intalled...

Yep. It's a pain alright. I keep all my clones in a directory in my C: drive named EnvClones.  Each clone itself is then named after the version like 24, 242, and now I have 25.  You can use the conda list command and redirect the returns to a readme file in the clone## directory so your next iteration isn't such a guessing game. 

That should just about do it....
0 Kudos
GabrielMarcus1
Frequent Contributor

There was a good post by someone like Dan or Kory that listed the steps to create a new environment with your existing library. I can't find it now though. 

0 Kudos