The following error is raised after pressing the "check for update" button in an environment where at least one package requires an upgrade. No error returned when all packages are UpToDate. Similar error on Linux and Windows platforms with nb_conda2.2.1py36_0 and notebook5.7.4py36_0.
PS: When the updatable package is identified manually it can be updated with "updated selected package" without a problem.
Log from windows below.
{
"caused_by": "None",
"error": "DryRunExit: Dry run exiting",
"exception_name": "DryRunExit",
"exception_type": "<class 'conda.exceptions.DryRunExit'>",
"message": "Dry run exiting"
}
[E 11:58:50.783 NotebookApp] Uncaught exception POST /conda/environments/root/packages/check (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='POST', uri='/conda/environments/root/packages/check', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\XXXX\Anaconda3\lib\site-packages\tornado\web.py", line 1590, in _execute
result = method(*self.path_args, self.path_kwargs)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\tornado\web.py", line 3006, in wrapper
return method(self, *args, *kwargs)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 718, in wrapper
return method(self, args, kwargs)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\nb_conda\handlers.py", line 140, in post
resp = self.env_manager.check_update(env, packages)
File "C:\Users\XXXX\Anaconda3\lib\site-packages\nb_conda\envmanager.py", line 146, in check_update
links = data['actions'][0].get('LINK', [])
KeyError: 0
[W 11:58:50.794 NotebookApp] Unhandled error
[E 11:58:50.795 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Content-Length": "0",
"Accept": "application/json, text/javascript, /; q=0.01",
"Origin": "http://localhost:8888",
"X-Requested-With": "XMLHttpRequest",
"X-Xsrftoken": "2|20b5d5e9|28dbc531c52abf9ebb32ffdf4132ce1e|1542549654",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
"Referer": "http://localhost:8888/tree",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "fr,en-US;q=0.9,en;q=0.8",
"Cookie": "_xsrf=2|20b5d5e9|28dbc531c52abf9ebb32ffdf4132ce1e|1542549654; username-localhost-8888=\"2|1:0|10:1546167396|23:username-localhost-8888|44:MzQyYzI0OGI0MGQyNDVmNGJjMThkMWRhMjFmOGY2ZDI=|822be445c490782ed16760edf38b909e8ecc548feb92458149cb27a86387c945\""
}
[E 11:58:50.796 NotebookApp] 500 POST /conda/environments/root/packages/check (::1) 41877.54ms referer=http://localhost:8888/tree
The following error is raised after pressing the "check for update" button in an environment where at least one package requires an upgrade. No error returned when all packages are UpToDate. Similar error on Linux and Windows platforms with nb_conda2.2.1py36_0 and notebook5.7.4py36_0.
PS: When the updatable package is identified manually it can be updated with "updated selected package" without a problem.
Log from windows below.
{ "caused_by": "None", "error": "DryRunExit: Dry run exiting", "exception_name": "DryRunExit", "exception_type": "<class 'conda.exceptions.DryRunExit'>", "message": "Dry run exiting" }
[E 11:58:50.783 NotebookApp] Uncaught exception POST /conda/environments/root/packages/check (::1) HTTPServerRequest(protocol='http', host='localhost:8888', method='POST', uri='/conda/environments/root/packages/check', version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): File "C:\Users\XXXX\Anaconda3\lib\site-packages\tornado\web.py", line 1590, in _execute result = method(*self.path_args, self.path_kwargs) File "C:\Users\XXXX\Anaconda3\lib\site-packages\tornado\web.py", line 3006, in wrapper return method(self, *args, *kwargs) File "C:\Users\XXXX\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 718, in wrapper return method(self, args, kwargs) File "C:\Users\XXXX\Anaconda3\lib\site-packages\nb_conda\handlers.py", line 140, in post resp = self.env_manager.check_update(env, packages) File "C:\Users\XXXX\Anaconda3\lib\site-packages\nb_conda\envmanager.py", line 146, in check_update links = data['actions'][0].get('LINK', []) KeyError: 0 [W 11:58:50.794 NotebookApp] Unhandled error [E 11:58:50.795 NotebookApp] { "Host": "localhost:8888", "Connection": "keep-alive", "Content-Length": "0", "Accept": "application/json, text/javascript, /; q=0.01", "Origin": "http://localhost:8888", "X-Requested-With": "XMLHttpRequest", "X-Xsrftoken": "2|20b5d5e9|28dbc531c52abf9ebb32ffdf4132ce1e|1542549654", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36", "Referer": "http://localhost:8888/tree", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "fr,en-US;q=0.9,en;q=0.8", "Cookie": "_xsrf=2|20b5d5e9|28dbc531c52abf9ebb32ffdf4132ce1e|1542549654; username-localhost-8888=\"2|1:0|10:1546167396|23:username-localhost-8888|44:MzQyYzI0OGI0MGQyNDVmNGJjMThkMWRhMjFmOGY2ZDI=|822be445c490782ed16760edf38b909e8ecc548feb92458149cb27a86387c945\"" } [E 11:58:50.796 NotebookApp] 500 POST /conda/environments/root/packages/check (::1) 41877.54ms referer=http://localhost:8888/tree