stephenslab / ipynb-website

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

error while issuing "sos run release.sos -s force" #8

Closed benjaminsw closed 5 years ago

benjaminsw commented 6 years ago

While I was setting up, there was an error. Not sure what went wrong and google isn't much helpful.

The entire massage was

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: [cbbf1eb1-301f-4611-ac3e-edff1725877e]: [update-hp_0]: 
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
script_891052909418019337 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_556241741804189335 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

Any help will be appreciated.

pcarbo commented 6 years ago

@benjaminsw Thanks for sending this. What command did you run? I will try to reproduce it.

benjaminsw commented 6 years ago

@pcarbo This one "sos run release.sos -s force" I followed along README.md util step 7.

pcarbo commented 6 years ago

Thanks @benjaminsw. I'm getting the exact same error as you. It may be caused by updates to SoS. @gaow can you try reproducing this error?

gaow commented 6 years ago

Sure. I think we need to make a new release. Will get it done in a couple of hours if not sooner

gaow commented 6 years ago

@benjaminsw please check out the latest release:

https://github.com/stephenslab/ipynb-website/releases/tag/v0.9.4

Sorry for the inconveniences!

pcarbo commented 6 years ago

@gaow Thanks, that worked for me! @benjaminsw Can you please try again with the new release? Note you may need to run sos run release.sos -s force twice.

benjaminsw commented 6 years ago

It worked now. Thank you @gaow Thank you @pcarbo.