stephenslab / ipynb-website

Simple data science website using Jupyter notebooks.
https://tinyurl.com/yb7mal2m
MIT License
66 stars 29 forks source link

expected str, bytes or os.PathLike object, not NoneType #12

Closed benjaminsw closed 5 years ago

benjaminsw commented 5 years ago

While I was running ./release.sos -s force, I encountered the below error.

INFO: Executing Configure website: 
INFO: input:   []
INFO: output:   []
INFO: Executing Rmarkdown to ipynb: 
INFO: Executing Build website: build ipynb website ...
INFO: input:   []
INFO: Executing Jupyter HTML template updater: 
INFO: input:   []
INFO: output:   [file_target('docs/analysis.tpl'), ...] (6 items)
INFO: Executing Index notebook generator: 
INFO: input:   [file_target('analysis/time-of-day-trends.ipynb'), ...] (5 items)
INFO: output:   [file_target('analysis/_index.ipynb'), ...] (5 items)
INFO: Executing Notebook to HTML converter: 
INFO: Executing Index HTML updater: 
INFO: input:   [file_target('setup/index.ipynb'), ...] (5 items)
ERROR: expected str, bytes or os.PathLike object, not NoneType
INFO: input:   [file_target('analysis/time-of-day-trends.ipynb'), ...] (5 items)
ERROR: expected str, bytes or os.PathLike object, not NoneType
ERROR: expected str, bytes or os.PathLike object, not NoneType
ERROR: expected str, bytes or os.PathLike object, not NoneType
ERROR: expected str, bytes or os.PathLike object, not NoneType
ERROR: expected str, bytes or os.PathLike object, not NoneType
ERROR: [cc487c57-2803-4bdf-a06b-5f3d22bb952d]: [update-hp_0]: 

\---------------------------------------------------------------------------

TypeError                                 Traceback (most recent call last)
script_3902021779967928260 in <module>
      fi

----> """, stderr = None)
      python(fr"""get_sha1_files([({_input:r}, {_output:r})], [], {password}, write = True)
      \""", input = 'docs/jnbinder.py')

TypeError: expected str, bytes or os.PathLike object, not NoneType
[update-nb_0]: 
\---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
script_2794453011905480483 in <module>
      fi

----> """, stderr = None)
      python(fr"""get_sha1_files([], [({_input:r}, {_output:r})], {password}, write = True)
      \""", input = 'docs/jnbinder.py')

TypeError: expected str, bytes or os.PathLike object, not NoneType
[update-hp + update-nb + update-wf + upda]: 4 pending steps: update-wf_0, update-toc_0, update-search_0, remove-obsolete_0
[default]: 1 pending step: default_4

Do you know how to fix it? Thx in advance.

gaow commented 5 years ago

@benjaminsw we believe this version is fixed in current master. A release has just been made to formally incorporate the change (version 0.9.7). Sorry for the delayed reply. With this version ./release.sos -s force works.