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

Error : pynco in Windows10 #36

Closed
mohar123 opened this issue Sep 19, 2018 · 1 comment
Closed

Error : pynco in Windows10 #36

mohar123 opened this issue Sep 19, 2018 · 1 comment

Comments

@mohar123
Copy link

Hi there,
I am using anaconda and used the command:
conda install -c conda-forge pynco
to install pynco in my Windows10 machine and simply used the commands
from nco import Nco
nco = Nco()

I get the error below. Will appreciate help to resolve the issue.

TypeError Traceback (most recent call last)
in ()
1 from nco import Nco
----> 2 nco = Nco()

~\Anaconda3\lib\site-packages\nco\nco.py in init(self, returnCdf, returnNoneOnError, forceOutput, cdfMod, debug, **kwargs)
52 self.NCOpath = os.environ['NCOpath']
53 else:
---> 54 self.NCOpath = os.path.split(which('ncks'))[0]
55
56 self.operators = operators

~\Anaconda3\lib\ntpath.py in split(p)
202 Return tuple (head, tail) where tail is everything after the final slash.
203 Either part may be empty."""
--> 204 p = os.fspath(p)
205 seps = _get_bothseps(p)
206 d, p = splitdrive(p)

TypeError: expected str, bytes or os.PathLike object, not NoneType

@jhamman
Copy link
Member

jhamman commented Nov 28, 2018

@mohar123 - sorry for the very slow response. We have not tested pynco on python so I would be surprised if it works out of the box. If you've managed to get things to work here or would like to contribute some windows tests or fixes, please feel free to check back in and reopen this issue.

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

2 participants