Python Jupyer实验室给出错误500:内部服务器错误

Python Jupyer实验室给出错误500:内部服务器错误,python,jupyter,jupyter-lab,Python,Jupyter,Jupyter Lab,我正竭尽全力想让jupyter实验室运转起来。我以前让它运行得很好,但是运行我服务器的机器几个月来第一次被重置,从那以后,我无法连接到实验室 Jupyter notbook运行良好 我在网上看到了各种各样的建议来更新这个和那个,执行jupyter lab build,但没有任何帮助。我甚至尝试了miniconda的全新安装,并创造了一个全新的环境 我在尝试连接时得到以下输出: p-tau.pauln>conda激活jup测试 (jup测试)np tau.pauln>jupyter实验室——无浏览

我正竭尽全力想让jupyter实验室运转起来。我以前让它运行得很好,但是运行我服务器的机器几个月来第一次被重置,从那以后,我无法连接到实验室

Jupyter notbook运行良好

我在网上看到了各种各样的建议来更新这个和那个,执行jupyter lab build,但没有任何帮助。我甚至尝试了miniconda的全新安装,并创造了一个全新的环境

我在尝试连接时得到以下输出:

p-tau.pauln>conda激活jup测试
(jup测试)np tau.pauln>jupyter实验室——无浏览器
[I 2021-02-16 20:07:56.005 ServerApp]jupyterlab扩展已成功链接。
[I 2021-02-16 20:07:57.561 ServerApp]nbclassic |扩展已成功链接。
[I 2021-02-16 20:07:57.967 LabApp]JupyterLab扩展从/home/pauln/.conda/envs/jup test/lib/python3.9/site-packages/JupyterLab加载
JupyterLab应用程序目录是/home/pauln/.conda/envs/jup test/share/jupyter/lab
[I 2021-02-16 20:07:57.975 ServerApp]jupyterlab扩展已成功加载。
[I 2021-02-16 20:07:57.994 ServerApp]nbclassic |扩展已成功加载。
[I 2021-02-16 20:07:58.001 ServerApp]从本地目录提供笔记本服务:/home/pauln
[I 2021-02-16 20:07:58.001 ServerApp]Jupyter服务器1.3.0正在以下位置运行:
[I 2021-02-16 20:07:58.001服务器应用程序]http://localhost:8888/lab?token=271769cf70c6bee101ab2ebee4e9ef528622afafe1706142
[I 2021-02-16 20:07:58.001服务器应用程序]或http://127.0.0.1:8888/lab?token=271769cf70c6bee101ab2ebee4e9ef528622afafe1706142
[I 2021-02-16 20:07:58.001 ServerApp]使用Control-C停止此服务器并关闭所有内核(两次以跳过确认)。
[C 2021-02-16 20:07:58.029服务器应用程序]
要访问服务器,请在浏览器中打开此文件:
file:///home/pauln/.local/share/jupyter/runtime/jpserver-59618-open.html
或复制并粘贴以下URL之一:
http://localhost:8888/lab?token=271769cf70c6bee101ab2ebee4e9ef528622afafe1706142
或http://127.0.0.1:8888/lab?token=271769cf70c6bee101ab2ebee4e9ef528622afafe1706142
[E 2021-02-16 20:09:19.126 ServerApp]未捕获异常获取/实验室?令牌=271769cf70c6bee101ab2ebee4e9ef528622afafe1706142(127.0.0.1)
HTTPServerRequest(protocol='http',host='localhost:8888',method='GET',uri='/lab?token=271769cf70c6bee101ab2ebee4e9ef528622afe1706142',version='http/1.1',remote_ip='127.0.0.1')
回溯(最近一次呼叫最后一次):
文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/tornado/web.py”,第1702行,在
结果=方法(*self.path_参数,**self.path_参数)
文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/tornado/web.py”,第3173行,在包装器中
返回方法(self、*args、**kwargs)
文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/tornado/web.py”,第1878行,在包装器中
返回方法(self、*args、**kwargs)
get中的文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/jupyterlab_server/handlers.py”,第130行
tpl=self.render\u模板('index.html',page\u config=page\u config)
文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/jupyter_server/base/handlers.py”,第441行,位于render_模板中
template=self.get_模板(名称)
文件“/home/pauln/.conda/envs/jup test/lib/python3.9/site packages/jupyter\u server/extension/handler.py”,第13行,在get\u模板中
返回self.settings[env].get_模板(名称)
get_模板中的文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/environment.py”,第791行
返回self.\u加载\u模板(名称、self.make\u全局(全局))
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/environment.py”,第765行,在加载模板中
template=self.loader.load(self、name、globals)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/loaders.py”,第125行,装入
code=environment.compile(源代码、名称、文件名)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/environment.py”,第554行,编译
self.handle\u异常(exc\u info,source\u hint=source)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/environment.py”,第742行,在handle_异常中
重放(exc_类型、exc_值、tb)
文件“/home/pauln/apps/clas12root_-dg/rcdb/python/jinja2/_-compat.py”,第36行,请重新阅读
通过_回溯(tb)提升值
文件“/home/pauln/.conda/envs/jup test/share/jupyter/lab/static/index.html”,第1行,在
JupyterLab{{#复制,这样我们就不会用更新来修改页面配置。{%set page_-config_-full=page_-config.Copy()}{{#设置一个伪变量-我们只需要更新的副作用。{%set}{page_-config_-full.update(baseUrl=base_-url,wsUrl=ws-url)%}{{{page_-config|tojson}%block favicon%}{/*从URL中删除令牌*/
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/environment.py”,第504行,在生成
返回generate(source、self、name、filename、defer\u init=defer\u init)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/compiler.py”,第61行,生成
生成器访问(节点)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/visitor.py”,第38行,访问
返回f(节点,*args,**kwargs)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/compiler.py”,第812行,访问模板
self.blockvisit(node.body,frame)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/compiler.py”,第488行,在blockvisit中
self.visit(节点、框架)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/visitor.py”,第38行,访问
返回f(节点,*args,**kwargs)
文件“/home/pauln/apps/clas12root_dg/rcdb/python/jinja2/compiler.py”,第1327行,访问输出
自我访问(论点,f)
python3 -m pip check
jupyterlab 3.0.7 has requirement jinja2>=2.10, but you have jinja2 2.9.
jupyterlab-server 2.2.1 has requirement jinja2>=2.10, but you have jinja2 2.9.
python3 -m pip install 'jinja2>=2.10'
python3 -m pip install -U jupyterlab jupyterlab-server