Open rbeucher opened 9 months ago
Interesting. The --relocate-prefix
argument in this line is supposed to handle that. I guess it doesn't work for pip
packages installed that way? I notice you have MED-utils on your conda channel, why not install from there?
Yes that is what I thought we should do.
I had other ideas in case --relocate-prefix
didn't work out. My first thought was to maintain a fork of micromamba
that doesn't resolve path symlinks, or to run sed
on every script in the bin
directory. Neither of these ideas are good, so but if --relocate-prefix
doesn't work one of those might be the only option without reverting back to mamba
and a base environment.
Hi @dsroberts ,
I am having a similar problem. I have tried to deploy a new version of our ESMValTool environment
module use /g/data/xp65/public/modules
module load conda/esmvaltool-0.4
Build and deployment went OK. I can also import the python packages from a notebook on ARE.
However, I cannot run the esmvaltool
command from the CLI. I get:
esmvaltool version
/g/data/xp65/public/apps/med_conda_scripts/esmvaltool-0.4.d/bin/esmvaltool: /g/data/xp65/public/apps/med_conda/envs/esmvaltool-0.4/bin/esmvaltool: /jobfs/120579340.gadi-pbs/squashfs-root/opt/conda/esmvaltool-0.4/bin/python: bad interpreter: No such file or directory
/g/data/xp65/public/apps/med_conda_scripts/esmvaltool-0.4.d/bin/esmvaltool: line 121: /g/data/xp65/public/apps/med_conda/envs/esmvaltool-0.4/bin/esmvaltool: Success
I was initially installing ESMValTool with pip in my environment file, I moved it to get ESMValTool from conda-forge but I still have the same issue.
See environment conda/esmvatool-0.4b
which returns the same error.
I think the MED-condaenv is in sync with your branch. I don't understand what is going on. Would you be able to help?
Thanks!
I have added the logs in /scratch/hh5/rb5533
if that helps
The
med-utils
package which provides theilamb-tree-generator
command line tool is currently installed using pip in our access-med environment:The problem is that during install/deploy a shebang is created:
This leads to the following error:
@rhaegar325 I think that's the cause of the issue but I could be wrong. @dsroberts do you have a suggestion on how to fix this?