Stream: python-questions

Topic: running script in batch mode


view this post on Zulip Jean-Francois Lamarque (May 18 2022 at 00:16):

I have a bash script that I submit to qsub on casper. Before the update last week, it was working great but now it is not working at all. I am getting the error message

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
Now using NPL virtual environment at path:
/glade/u/apps/dav/opt/python/3.7.9/gnu/9.1.0/pkg-library/20201220

Use deactivate to remove NPL from environment

The script is /glade/u/home/lamar/Python/CMIP6_analysis/PM2.5/run_health.bash

Thanks!

view this post on Zulip Matt Long (May 18 2022 at 15:22):

Are you sure it's not working? I think this part of the warning:

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.

may just be telling you that there's no input device.

And this part

Now using NPL virtual environment at path:
/glade/u/apps/dav/opt/python/3.7.9/gnu/9.1.0/pkg-library/20201220

Use deactivate to remove NPL from environment

is what ncar_pylib prints out.

view this post on Zulip Jean-Francois Lamarque (May 19 2022 at 16:28):

Got the answer from CISL. ncar_pylib is deprecated and needs to be replaced by the following

module load ncarenv
module load conda
conda activate npl

python compute_health_5years_omp_batch.py


Last updated: May 16 2025 at 17:14 UTC