You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/lib/python3.6/posixpath.py in split(p)
105 """Split a pathname. Returns tuple "(head, tail)" where "tail" is
106 everything after the final slash. Either part may be empty."""
--> 107 p = os.fspath(p)
108 sep = _get_sep(p)
109 i = p.rfind(sep) + 1
TypeError: expected str, bytes or os.PathLike object, not NoneType
What am I supposed to do ?
The text was updated successfully, but these errors were encountered:
I have the same exact issue and am not coming up with a solution as of yet. Trying to import it into a Jupyter Notebook using python, but same exact error and nco=Nco() operator after importing nco.
Thanks @czender, that stack discussion is actually my discussion. The ncks seems to be only contained inside my conda environment. Does that need to be installed somewhere else? I set the path as you suggested but still no luck.
I think NCO and pyNCO are separate installations. Did you install NCO? If so, then pyNCO should find it if you set NCOpath to the directory containing the ncks executable.
Hi, I'm trying to use nco on google colab but when I iniatialize the object
nco = Nco()
it raises the error/usr/local/lib/python3.6/dist-packages/nco/nco.py in init(self, returnCdf, return_none_on_error, force_output, cdf_module, debug, **kwargs)
56 self.nco_path = os.environ["NCOpath"]
57 else:
---> 58 self.nco_path = os.path.split(distutils.spawn.find_executable("ncks"))[0]
59
60 self.operators = operators
/usr/lib/python3.6/posixpath.py in split(p)
105 """Split a pathname. Returns tuple "(head, tail)" where "tail" is
106 everything after the final slash. Either part may be empty."""
--> 107 p = os.fspath(p)
108 sep = _get_sep(p)
109 i = p.rfind(sep) + 1
TypeError: expected str, bytes or os.PathLike object, not NoneType
What am I supposed to do ?
The text was updated successfully, but these errors were encountered: