I am somewhat new to Jupyter. I use Windows and I specifically use Jupyter through Anaconda. I am trying to downloand a notebook to link with my Github account. I get a 500 error when I try to do this. Below is the error log in Jupyter:
[E 17:58:15.342 NotebookApp] 500 GET /nbconvert/notebook/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb?download=true (::1) 618.15ms referer=http://localhost:8888/notebooks/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb
[E 17:58:22.275 NotebookApp] Uncaught exception GET /nbconvert/pdf/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb?download=true (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8888’, method=‘GET’, uri=’/nbconvert/pdf/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb?download=true’, version=‘HTTP/1.1’, remote_ip=’::1’)
Traceback (most recent call last):
File “C:\Users\sueke\anaconda3\lib\site-packages\tornado\web.py”, line 1592, in _execute
result = yield result
File “C:\Users\sueke\anaconda3\lib\site-packages\tornado\gen.py”, line 1133, in run
value = future.result()
File “C:\Users\sueke\anaconda3\lib\site-packages\tornado\gen.py”, line 1147, in run
yielded = self.gen.send(value)
File “C:\Users\sueke\anaconda3\lib\site-packages\notebook\nbconvert\handlers.py”, line 115, in get
mod_date = model[‘last_modified’].strftime(text.date_format)
AttributeError: ‘str’ object has no attribute ‘strftime’
[E 17:58:22.290 NotebookApp] {
“Host”: “localhost:8888”,
“Connection”: “keep-alive”,
“Sec-Ch-Ua”: “” Not A;Brand";v=“99”, “Chromium”;v=“90”, “Google Chrome”;v=“90"”,
“Sec-Ch-Ua-Mobile”: “?0”,
“Upgrade-Insecure-Requests”: “1”,
“User-Agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36”,
“Accept”: “text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9”,
“Sec-Fetch-Site”: “same-origin”,
“Sec-Fetch-Mode”: “navigate”,
“Sec-Fetch-Dest”: “document”,
“Referer”: “http://localhost:8888/notebooks/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb”,
“Accept-Encoding”: “gzip, deflate, br”,
“Accept-Language”: “en-US,en;q=0.9”,
“Cookie”: “_xsrf=2|00ca346b|27c389407de3f1dfc1a8f0c45467f62c|1620069233; username-localhost-8889=“2|1:0|10:1621022224|23:username-localhost-8889|44:YTVhOWQ1ZTYzMTZiNGIwYjgyZTVkNWEwZDdiMGQ2OWI=|1900461d7387ba021c61b5151f267ae6297747ed212b79247e67ab7145a411ac”; username-localhost-8891=“2|1:0|10:1621194964|23:username-localhost-8891|44:ZTE3OTU2ZmU2ODFjNGNmZTgzYmM0MDNmZDBmMTcxYmI=|716fc526e9642746dbe3ee3be90f45fb5eb6fe4d5ce69d38a189d668129bcbac”; username-localhost-8890=“2|1:0|10:1621194964|23:username-localhost-8890|44:OTFjMWZhZmM3Y2ZmNDgyOWEyNTI5ODZjZmM2YWE4MmQ=|cc6fb5e180f8ab19996a39fdd58748c3b0f734b09b3f8fe104cfab5ae39bcaa3”; username-localhost-8888=“2|1:0|10:1622066277|23:username-localhost-8888|44:NDkzNDNjMjQ1NjRmNDMyNTlkOGRhYmM0YTYwZGZkOTg=|48b2df8f238ad4077cb52ecbc676ef8e04f3d51487b0c67b42c5941524cad54e””
}
[E 17:58:22.371 NotebookApp] 500 GET /nbconvert/pdf/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb?download=true (::1) 434.11ms referer=http://localhost:8888/notebooks/rbkellam/fantasy-football-sharpe-ratio/Fantasy%20Football%20Data%20Analysis.ipynb
Can you share conda list? It might be that a package is out of date. It’s epxecting a datetime object in the last_modified model, when it’s presumably getting a timestamp string.
Minrk – I upgraded to the newest version of nbconvert (6.0.7 I beleive) and I also tried cutting off the “.strftime(text.date_format)” part of line 115, and also tried strptime instead, All of these options still lead to the 500 error. What should I do?