title: Error using NCO in Jupyter Notebook not loading, gives error TypeError, after correctly (I think) installing Pynco
body: <p>I am trying to convert an hdf5 file to NetCDF using nco. I have properly installed Pynco and nco into my conda environment as called below (seperate, not my base env) from bash shell:</p>
  <pre><code>conda install -c conda-forge pynco
  </code></pre>
  <p>When I try to call and import the packages into my Jupyter Notebook using</p>
  <pre><code>from nco import Nco
  nco = Nco()
  </code></pre>
  <p>I get the error:</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-1-ce3bb555a308&gt; in &lt;module&gt;
        8 import scipy
        9 from nco import Nco
  ---&gt; 10 nco = Nco()
  
  ~/anaconda3/envs/aoes/lib/python3.6/site-packages/nco/nco.py in __init__(self, returnCdf, return_none_on_error, force_output, cdf_module, debug, **kwargs)
       56             self.nco_path = os.environ[&quot;NCOpath&quot;]
       57         else:
  ---&gt; 58             self.nco_path = os.path.split(distutils.spawn.find_executable(&quot;ncks&quot;))[0]
       59 
       60         self.operators = operators
  
  ~/anaconda3/envs/aoes/lib/python3.6/posixpath.py in split(p)
      105     &quot;&quot;&quot;Split a pathname.  Returns tuple &quot;(head, tail)&quot; where &quot;tail&quot; is
      106     everything after the final slash.  Either part may be empty.&quot;&quot;&quot;
  --&gt; 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
  </code></pre>
  <p>I researched and saw that I may need to add a PATH to my environment pointing to NCO but not totally sure how to do that. I know I have a PATH variable added to my .bashrc file in my home linux environment for anaconda, do I add something there?</p>
  <p>More info for my setup: Output from <code>conda list nco</code>:</p>
  <pre><code># packages in environment at /home/jcamp/anaconda3/envs/aoes:
  #
  # Name                    Version                   Build  Channel
  nco                       5.0.0                hf82150d_0    conda-forge
  pynco                     1.0.0                      py_1    conda-forge
  webencodings              0.5.1                      py_1    conda-forge
  </code></pre>
  <p>Section of .bashrc file with path variables (no difference with or without Ncopath line - although I'm pretty sure my path is wrong for this):</p>
  <pre><code>export PATH=&quot;/home/jcamp/anaconda3/bin:$PATH&quot;
  export NCOpath=&quot;../usr/local/bin:$NCOpath&quot;
  </code></pre>
  <p>I launch jupyter notebook through a virtual environment and creating a ipkernyl for access through a secure portal. I had no issues installing and utilizing 20+ packages with my current environment. NCO is the first one to cause issues.</p>
  <p>With my environment active, <code>which ncks</code> produces:</p>
  <pre><code>/home/jcamp/anaconda3/envs/aoes/bin/ncks
  </code></pre>