Skip to content

On Hera, must deactivate and re-activate the venv to find the esmf-profiler #96

@rsdunlapiv

Description

@rsdunlapiv

Describe the bug
On Hera, I have to deactivate and reactivate the venv in order to find the esmf-profiler in the path:

[Rocky.Dunlap@hfe05 esmf-profiler]$ source ./venv/bin/activate.csh 
[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ pip install -e .
Obtaining file:///scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler
Installing collected packages: profiler
  Running setup.py develop for profiler
Successfully installed profiler
[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ esmf-profiler
esmf-profiler: Command not found.

Note that the version (0.1.1) is not shown above, but it does show if the command is repeated:

[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ pip install -e .
Obtaining file:///scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler
Installing collected packages: profiler
  Found existing installation: profiler 0.1.1
    Uninstalling profiler-0.1.1:
      Successfully uninstalled profiler-0.1.1
  Running setup.py develop for profiler
Successfully installed profiler
[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ esmf-profiler
esmf-profiler: Command not found.

The esmf-profiler is not found. If I deactivate/activate again, it is found:

[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ deactivate 
[Rocky.Dunlap@hfe05 esmf-profiler]$ source ./venv/bin/activate.csh
[venv] [Rocky.Dunlap@hfe05 esmf-profiler]$ esmf-profiler
usage: esmf-profiler [-h] -t TRACEDIR -n NAME -o OUTDIR [-p PUSH] [-v] [-s]
esmf-profiler: error: the following arguments are required: -t/--tracedir, -n/--name, -o/--outdir

To Reproduce
Follow steps above on Hera.

Expected behavior
Ideally, the user should not need to deactivate/activate again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions