Skip to content

ImportError: DLL load failed while importing _netCDF4 #7246

Answered by forestbat
forestbat asked this question in Q&A
Discussion options

You must be logged in to vote

@dcherian @headtr1ck @kmuehlbauer Now I knew what make this mistake happen.
My business code is like this: dataset = xa.open_dataset(my_dict.get(my_key))
However, my_dict.get(my_key) returns a None value because of some mistakes of myself, so xarray don't know what backend to choose to parse None data.
Of course it can be debugged, however when I debug the method, pycharm gives me this error: https://stackoverflow.com/questions/74326551/attributeerror-module-ntpath-has-no-attribute-sep
So I think this is an python env's problem which has correlation with xarray(in fact it's a python env's problem, but xarray and its backends have no problem) and wasted much time(about 3 days!).
How I solv…

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@forestbat
Comment options

@headtr1ck
Comment options

Comment options

You must be logged in to vote
11 replies
@kmuehlbauer
Comment options

@forestbat
Comment options

@forestbat
Comment options

@forestbat
Comment options

@kmuehlbauer
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by forestbat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants