problem with netCDF4 package in python

2,165 views
Skip to first unread message

Theo Awo

unread,
Mar 25, 2017, 5:46:41 AM3/25/17
to RSGISLib Support
Hi All,

Wondering about what could be wrong with my netCDF4 installation.

I'm getting an error when attempting to run a python script: 

File "Batch_Pr.py", line 8, in <module>
    import batch_pr
  File "/home/on_programs/batch_pr.py", line 15, in <module>
    from my_hdf_pro import *
  File "data/my_hdf_pr.py", line 5, in <module>
    from netCDF4 import Dataset   
ImportError: No module named netCDF4

I have tried to install netCDF several times and even updated numpy, but still can't run the python script. Any help will be appreciated.

Theo.

Daniel Clewley

unread,
Mar 25, 2017, 7:46:54 AM3/25/17
to Theo Awo, RSGISLib Support
Hi Theo,

I’m not sure why you are getting this error but it doesn’t sound like it is related to RSGISLib.

Have you installed netcdf4 through conda-forge? If so and this is what you are having problems with I would recommend opening an issue on the netcdf4-feedstock (https://github.com/conda-forge/netcdf4-feedstock) so the conda-forge team can help. Feel free to tag me in it.

Thanks,

Dan


--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.

Theo Awo

unread,
Mar 28, 2017, 6:23:54 PM3/28/17
to Daniel Clewley, RSGISLib Support
Thanks Dan!

On Sat, Mar 25, 2017 at 4:46 AM, Daniel Clewley <daniel....@gmail.com> wrote:
Hi Theo,

I’m not sure why you are getting this error but it doesn’t sound like it is related to RSGISLib.

Have you installed netcdf4 through conda-forge? If so and this is what you are having problems with I would recommend opening an issue on the netcdf4-feedstock (https://github.com/conda-forge/netcdf4-feedstock) so the conda-forge team can help. Feel free to tag me in it.

Thanks,

Dan

On 25 Mar 2017, at 09:46, Theo Awo <philu...@gmail.com> wrote:

Hi All,

Wondering about what could be wrong with my netCDF4 installation.

I'm getting an error when attempting to run a python script: 

File "Batch_Pr.py", line 8, in <module>
    import batch_pr
  File "/home/on_programs/batch_pr.py", line 15, in <module>
    from my_hdf_pro import *
  File "data/my_hdf_pr.py", line 5, in <module>
    from netCDF4 import Dataset   
ImportError: No module named netCDF4

I have tried to install netCDF several times and even updated numpy, but still can't run the python script. Any help will be appreciated.

Theo.

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-support+unsubscribe@googlegroups.com.
To post to this group, send email to rsgislib-support@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages