Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leafmap Docker container fails to start #509

Closed
CloudNiner opened this issue Aug 18, 2023 · 2 comments · Fixed by #510
Closed

leafmap Docker container fails to start #509

CloudNiner opened this issue Aug 18, 2023 · 2 comments · Fixed by #510
Labels
bug Something isn't working

Comments

@CloudNiner
Copy link

Environment Information

  • leafmap version: latest?
  • Python version: Looks like 3.11 from the traceback
  • Operating System: Docker

Description

Run the leafmap Docker image provided in the docs at https://leafmap.org/installation/#use-docker

What I Did

➜  ~/jupyter docker run -it -p 8899:8888 giswqs/leafmap:latest
Entered start.sh with args: jupyter lab
Executing the command: jupyter lab
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-lab", line 6, in <module>
    from jupyterlab.labapp import main
  File "/opt/conda/lib/python3.11/site-packages/jupyterlab/__init__.py", line 7, in <module>
    from .handlers.announcements import (  # noqa
  File "/opt/conda/lib/python3.11/site-packages/jupyterlab/handlers/announcements.py", line 14, in <module>
    from jupyter_server.base.handlers import APIHandler
  File "/opt/conda/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 23, in <module>
    from jupyter_events import EventLogger
  File "/opt/conda/lib/python3.11/site-packages/jupyter_events/__init__.py", line 3, in <module>
    from .logger import EVENTS_METADATA_VERSION, EventLogger
  File "/opt/conda/lib/python3.11/site-packages/jupyter_events/logger.py", line 18, in <module>
    from .schema import SchemaType
  File "/opt/conda/lib/python3.11/site-packages/jupyter_events/schema.py", line 18, in <module>
    from .validators import draft7_format_checker, validate_schema
  File "/opt/conda/lib/python3.11/site-packages/jupyter_events/validators.py", line 41, in <module>
    JUPYTER_EVENTS_SCHEMA_VALIDATOR = Draft7Validator(  # type: ignore
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: create.<locals>.Validator.__init__() got an unexpected keyword argument 'registry'
@CloudNiner CloudNiner added the bug Something isn't working label Aug 18, 2023
@CloudNiner
Copy link
Author

Looks like pulling image tag v0.21.4 works:

➜  ~/jupyter docker run -it -p 8899:8888 giswqs/leafmap:v0.21.4
Entered start.sh with args: jupyter lab
Executing the command: jupyter lab
[I 2023-08-18 17:31:02.069 ServerApp] Package jupyterlab took 0.0000s to import

@giswqs
Copy link
Member

giswqs commented Aug 19, 2023

Thanks for reporting. This issue has been fixed. Somehow there were some dependency conflicts. Pin jsonschema==4.18.0 solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants