stephenslab / ipynb-website

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

Build JSONDecodeError #14

Closed NathanielDake closed 4 years ago

NathanielDake commented 4 years ago

Hi, as of last week I went to regenerate all webpages via the sos run release.sos -s force command, but ran into this error:

sos run release.sos -s force

INFO: Running Configure website:
INFO: Configure website is completed.
INFO: Running Build website:
INFO: Running Index notebook generator:
ERROR: [f5189c88-d37c-45b0-9935-61171bce5004]: [update-index]: [update-index]:
---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
script_4402045945992218985 in <module>
      from jnbinder import make_index_nb, make_empty_nb
      for binder in binders:
---->   content = make_index_nb(binder, conf['exclude_file'] + [conf['homepage']], conf['long_autoindex'], binder in conf['reverse_autoindex'])
        with open(f'{binder}/_index.ipynb', 'w') as f:
          f.write(content)
      if not os.path.isfile(conf['homepage']):

JSONDecodeError: Expecting property name enclosed in double quotes: line 36 column 1 (char 3551)
[default]: 1 pending step: default_4

Has anyone run into this before? I can provide any information that would be helpful in debugging this! Thanks!

gaow commented 4 years ago

@NathanielDake I just checked -- running current master as is, sos run release.sos -s force command does not show any issues. Could it be possible that you modified some files that caused the problem?

NathanielDake commented 4 years ago

🤦‍♂Thanks so much for looking at it. It turned out to be a weird merge error from a week ago that messed up the JSON. I am all set! 🙏