Skip to content

createmodule.sh failed to work within the pyenv-based conda environment. #320

@hongyi-zhao

Description

@hongyi-zhao

Hi,

I use pyenv to manage python versions, and I installed the miniconda-lastest with pyenv.

Then I do the following testing on createmodule.sh within and outof the pyenv-based conda environment:

Outside of the pyenv-based conda environment:

$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | grep CONDA
setenv		_CE_CONDA	
setenv		CONDA_DEFAULT_ENV	base
setenv		CONDA_EXE	/opt/intel/intelpython3/bin/conda
setenv		CONDA_PREFIX	/opt/intel/intelpython3
setenv		CONDA_PROMPT_MODIFIER	(base) 
setenv		CONDA_PYTHON_EXE	/opt/intel/intelpython3/bin/python
setenv		CONDA_SHLVL	1

Within the pyenv-based conda environment:

$ pyenv local miniconda3-latest
$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | grep CONDA
Unhandled change of CONDA_PREFIX
Before </home/werner/.repo/github.com/pyenv/versions/linux-x86_64/miniconda3-latest>
After  </opt/intel/intelpython3>
Unhandled change of CONDA_PYTHON_EXE
Before </home/werner/.pyenv/versions/miniconda3-latest/bin/python>
After  </opt/intel/intelpython3/bin/python>
Unhandled change of CONDA_SHLVL
Before <0>
After  <1>
Unhandled change of CONDA_EXE
Before </home/werner/.pyenv/versions/miniconda3-latest/bin/conda>
After  </opt/intel/intelpython3/bin/conda>
Unhandled change of CONDA_DEFAULT_ENV
Before <root>
After  <base>
setenv		CONDA_PROMPT_MODIFIER	(base) 

As you can see, the latter will fail to do the job.

Any hints?
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions