I am trying to run l1bextract_oci. I just did a fresh ocssw install and using V2025.1. When I do l1bextract_oci help, I get this error: Traceback (most recent call last):
File "/accounts/awindled/ocssw/bin/l1bextract_oci", line 6, in <module>
import netCDF4
ModuleNotFoundError: No module named 'netCDF4'
Any ideas on what's going on? Other ocssw functions are working just fine.
Anna
l1bextract_oci not working
-
- Posts: 4
- Joined: Wed Oct 23, 2019 11:04 am America/New_York
-
- Subject Matter Expert
- Posts: 715
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 10 times
Re: l1bextract_oci not working
As "ModuleNotFoundError: No module named 'netCDF4'" indicates, you probably need to install netCDF4 module. You mgith find this tutorial video helpful -- https://www.youtube.com/watch?v=bvyxNYY_C4A&list=PLf60TttfDm30SjrRVBSXptm0tGRax5fKq&index=5
-
- Subject Matter Expert
- Posts: 11
- Joined: Thu Nov 18, 2021 10:29 am America/New_York
- Been thanked: 1 time
Re: l1bextract_oci not working
I think the user knows how to install a package. In this case, I think the question is why hasn't that been taken care of during installation of ocssw? Is it supposed to have been?
I just tried running the installer script (https://oceandata.sci.gsfc.nasa.gov/manifest/install_ocssw) in a Python virtual environment. It returned an error because requests was missing. I manually installed requests and tried again, but there is still no netCDF module. Shouldn't these dependencies all be handled by the installer? I guessed at trying the `--python` argument, but don't detect any change.
How is a user supposed to know what to install and that they need to do it manually?
I just tried running the installer script (https://oceandata.sci.gsfc.nasa.gov/manifest/install_ocssw) in a Python virtual environment. It returned an error because requests was missing. I manually installed requests and tried again, but there is still no netCDF module. Shouldn't these dependencies all be handled by the installer? I guessed at trying the `--python` argument, but don't detect any change.
How is a user supposed to know what to install and that they need to do it manually?