Intake 'UserWarning: Shell command'

Since analysis3-26.02 I’ve been getting this warning:

/g/data/xp65/public/apps/med_conda/envs/analysis3-26.02/lib/python3.11/site-packages/intake/catalog/utils.py:173: UserWarning: Shell command not executed due to getshell=False
  warnings.warn("Shell command not executed due to getshell=False")

when running:

import intake
cat = intake.cat.access_nri

Can we suppress this? It’s annoying to have it appearing in all the COSIMA Recipes etc.

Hi Adele, thanks for posting your question!

Just wondering if you were after a user-side solution (i.e. something you can do to suppress the warnings e.g. in a notebook) or you’re after a fix in the analysis3 environment/packages?

If appropriate/possible, a fix in the analysis3 environment/packages would be great!

Okay, looks like this should be relatively straightforward to resolve: it was changed in March following this issue: [Security] Private reporting channel for critical vulnerability · Issue #883 · intake/intake · GitHub

I’ve had a poke and it seems like there might be some issues surrounding it in intake, since I configured getshell and I’m still getting warnings.

Doing a bit more digging now…

Fingers crossed this gets merged soon. I’ll roll back intake to the version prior to these changes in analysis3 shortly.

Intake is now pinned to v2.0.8 in analysis3-26.05. That should resolve the warnings.

When the patch gets merged, I’ll relax the pin again.

Thanks @CharlesTurner - you’re amazing!