Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDMSError('Cannot open file %s (%s)' % (path, err)) #413

Open
ghost opened this issue Aug 2, 2020 · 1 comment
Open

CDMSError('Cannot open file %s (%s)' % (path, err)) #413

ghost opened this issue Aug 2, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 2, 2020

Hi,

I am new to Python and CDAT. I get the following error while trying to open a NetCDF file.
_>>> import cdms2

f = cdms2.open('upstr_mean.nc')
CDMS system error: No such file or directory
CDMS I/O error: Opening file /home/vikas/Desktop/upstr_mean.nc
Traceback (most recent call last):
File "/home/vikas/anaconda3/envs/cdat/lib/python3.7/site-packages/cdms2/dataset.py", line 1275, in init
fileobj = Cdunif.CdunifFile(path, mode)
OSError: No error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/vikas/anaconda3/envs/cdat/lib/python3.7/site-packages/cdms2/dataset.py", line 497, in openDataset
return CdmsFile(path, mode, mpiBarrier=CdMpi)
File "/home/vikas/anaconda3/envs/cdat/lib/python3.7/site-packages/cdms2/dataset.py", line 1277, in init
raise CDMSError('Cannot open file %s (%s)' % (path, err))
cdms2.error.CDMSError: Cannot open file /home/vikas/Desktop/upstr_mean.nc (No error)_

What do I do?

@angshuiisc
Copy link

angshuiisc commented Aug 2, 2020 via email

@jasonb5 jasonb5 transferred this issue from CDAT/cdat Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant