Created
March 20, 2024 10:21
-
-
Save sebbacon/45d58e2c45e564bbddd7dc1e66cf2a9c to your computer and use it in GitHub Desktop.
description.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This log output shows Chris running `python run.py` on Windows. It shows two issues. | |
1. A syntax error in jupyterlab | |
2. A config error (presumably due to deprecated config) for jupyterlab | |
```txt | |
(base) C:\Users\cwood\Documents\GitHub\rich_test_1>python run.py | |
Building docker image. This may take some time (particularly on the first run)... | |
#0 building with "default" instance using docker driver | |
#1 [internal] load build definition from Dockerfile | |
#1 transferring dockerfile: 1.09kB done | |
#1 DONE 0.0s | |
#2 [internal] load metadata for docker.io/ebmdatalab/datalab-jupyter:python3.8.1-2328e31e7391a127fe7184dcce38d581a17b1fa5 | |
#2 DONE 0.9s | |
#3 [internal] load .dockerignore | |
#3 transferring context: 2B done | |
#3 DONE 0.0s | |
#4 [1/7] FROM docker.io/ebmdatalab/datalab-jupyter:python3.8.1-2328e31e7391a127fe7184dcce38d581a17b1fa5@sha256:3341a83e925e75d157d964fe2936a73510d808f0f7e9fc2b34f6dc6305d9034d | |
#4 DONE 0.0s | |
#5 [internal] load build context | |
#5 transferring context: 8.01kB 0.0s done | |
#5 DONE 0.0s | |
#6 [6/7] RUN jupyter kernelspec install /tmp/kernel_with_custom_path/ --user --name="python3" | |
#6 CACHED | |
#7 [5/7] COPY config/kernel.json /tmp/kernel_with_custom_path/kernel.json | |
#7 CACHED | |
#8 [2/7] COPY requirements.txt /tmp/ | |
#8 CACHED | |
#9 [3/7] RUN chmod 644 /tmp/requirements.txt | |
#9 CACHED | |
#10 [4/7] RUN pip install --requirement /tmp/requirements.txt | |
#10 CACHED | |
#11 [7/7] COPY bq-service-account.jso[n] /tmp/ | |
#11 CACHED | |
#12 exporting to image | |
#12 exporting layers done | |
#12 writing image sha256:f8dd36fb8cc0da778c73e45b470306128be4c7222b0626c0c4e055150d3bdcad done | |
#12 naming to docker.io/library/datalab-notebook done | |
#12 DONE 0.0s | |
View build details: docker-desktop://dashboard/build/default/default/d9m28b6cbm4fh7pwunnjlirdz | |
What's Next? | |
View a summary of image vulnerabilities and recommendations → docker scout quickview | |
Running docker... | |
To stop this docker container, use Ctrl+ C, or the File -> Shut Down menu in Jupyter Lab | |
Fail to get yarn configuration. /root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:4 | |
(()=>{var Qge=Object.create;var AS=Object.defineProperty;var bge=Object.getOwnPropertyDescriptor;var Sge=Object.getOwnPropertyNames;var vge=Object.getPrototypeOf,xge=Object.prototype.hasOwnProperty;var J=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var Pge=(r,e)=>()=>(r&&(e=r(r=0)),e);var w=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ut=(r,e)=>{for(var t in e)AS(r,t,{get:e[t],enumerable:!0})},Dge=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sge(e))!xge.call(r,n)&&n!==t&&AS(r,n,{get:()=>e[n],enumerable:!(i=bge(e,n))||i.enumerable});return r};var Pe=(r,e,t)=>(t=r!=null?Qge(vge(r)):{},Dge(e||!r||!r.__esModule?AS(t,"default",{value:r,enumerable:!0}):t,r));var QK=w((GXe,BK)=>{BK.exports=wK;wK | |
SyntaxError: Unexpected token { | |
at createScript (vm.js:80:10) | |
at Object.runInThisContext (vm.js:139:10) | |
at Module._compile (module.js:616:28) | |
at Object.Module._extensions..js (module.js:663:10) | |
at Module.load (module.js:565:32) | |
at tryModuleLoad (module.js:505:12) | |
at Function.Module._load (module.js:497:3) | |
at Function.Module.runMain (module.js:693:10) | |
at startup (bootstrap_node.js:188:16) | |
at bootstrap_node.js:609:3 | |
[I 2024-03-11 12:23:32.511 ServerApp] jupyter_lsp | extension was successfully linked. | |
[I 2024-03-11 12:23:32.515 ServerApp] jupyter_server_terminals | extension was successfully linked. | |
[W 2024-03-11 12:23:32.518 LabApp] 'allow_root' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'contents_manager_class' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'allow_remote_access' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.518 LabApp] 'token' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2024-03-11 12:23:32.522 ServerApp] jupyterlab | error linking extension: The 'contents_manager_class' trait of a ServerApp instance expected a subclass of 'jupyter_server.services.contents.manager.ContentsManager', not the JupytextContentsManager JupytextContentsManager. | |
Traceback (most recent call last): | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyter_server/extension/manager.py", line 345, in link_extension | |
extension.link_all_points(self.serverapp) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyter_server/extension/manager.py", line 227, in link_all_points | |
self.link_point(point_name, serverapp) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyter_server/extension/manager.py", line 217, in link_point | |
point.link(serverapp) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyter_server/extension/manager.py", line 139, in link | |
linker(serverapp) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyter_server/extension/application.py", line 411, in _link_jupyter_server_extension | |
self.serverapp.update_config(self.config) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/config/configurable.py", line 244, in update_config | |
self._load_config(config) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/config/configurable.py", line 193, in _load_config | |
setattr(self, name, deepcopy(config_value)) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/traitlets.py", line 716, in __set__ | |
self.set(obj, value) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/traitlets.py", line 690, in set | |
new_value = self._validate(obj, value) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/traitlets.py", line 722, in _validate | |
value = self.validate(obj, value) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/traitlets.py", line 2151, in validate | |
self.error(obj, value) | |
File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/traitlets/traitlets.py", line 831, in error | |
raise TraitError(e) | |
traitlets.traitlets.TraitError: The 'contents_manager_class' trait of a ServerApp instance expected a subclass of 'jupyter_server.services.contents.manager.ContentsManager', not the JupytextContentsManager JupytextContentsManager. | |
[I 2024-03-11 12:23:32.523 ServerApp] jupytext | extension was successfully linked. | |
[I 2024-03-11 12:23:32.525 ServerApp] Writing Jupyter server cookie secret to /root/.local/share/jupyter/runtime/jupyter_cookie_secret | |
[I 2024-03-11 12:23:32.698 ServerApp] notebook_shim | extension was successfully linked. | |
[W 2024-03-11 12:23:32.700 ServerApp] Config option `preferred_jupytext_formats_save` not recognized by `AsyncLargeFileManager`. | |
[W 2024-03-11 12:23:32.701 ServerApp] Config option `default_jupytext_formats` not recognized by `AsyncLargeFileManager`. | |
[W 2024-03-11 12:23:32.701 ServerApp] Config option `default_notebook_metadata_filter` not recognized by `AsyncLargeFileManager`. | |
[W 2024-03-11 12:23:32.702 ServerApp] Config option `default_cell_metadata_filter` not recognized by `AsyncLargeFileManager`. | |
[I 2024-03-11 12:23:32.751 ServerApp] notebook_shim | extension was successfully loaded. | |
[I 2024-03-11 12:23:32.757 ServerApp] jupyter_lsp | extension was successfully loaded. | |
[I 2024-03-11 12:23:32.758 ServerApp] jupyter_server_terminals | extension was successfully loaded. | |
[I 2024-03-11 12:23:32.760 LabApp] JupyterLab extension loaded from /root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterlab | |
[I 2024-03-11 12:23:32.760 LabApp] JupyterLab application directory is /root/.pyenv/versions/3.8.1/share/jupyter/lab | |
[I 2024-03-11 12:23:32.760 LabApp] Extension Manager is 'pypi'. | |
[I 2024-03-11 12:23:32.769 ServerApp] jupyterlab | extension was successfully loaded. | |
[I 2024-03-11 12:23:32.769 ServerApp] [Jupytext Server Extension] Deriving a JupytextContentsManager from AsyncLargeFileManager | |
[I 2024-03-11 12:23:32.770 ServerApp] jupytext | extension was successfully loaded. | |
[C 2024-03-11 12:23:32.771 ServerApp] Running as root is not recommended. Use --allow-root to bypass. | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment