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

Unable to create new .jGIS document #182

Closed
arjxn-py opened this issue Oct 10, 2024 · 3 comments · Fixed by #184
Closed

Unable to create new .jGIS document #182

arjxn-py opened this issue Oct 10, 2024 · 3 comments · Fixed by #184

Comments

@arjxn-py
Copy link
Contributor

image

With this error message I get the following logs in jupyterlab terminal:

[E 2024-10-10 16:23:31.648 ServerApp] Error initializing: examples/untitled.jGIS
    JSONDecodeError('Expecting property name enclosed in double quotes: line 6 column 1 (char 160)')
    Traceback (most recent call last):
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/site-packages/jupyter_collaboration/handlers.py", line 233, in open
        await self.room.initialize()
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/site-packages/jupyter_collaboration/rooms.py", line 148, in initialize
        self._document.source = model["content"]
        ^^^^^^^^^^^^^^^^^^^^^
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/site-packages/jupyter_ydoc/ybasedoc.py", line 95, in source
        return self.set(value)
               ^^^^^^^^^^^^^^^
      File "/Users/arjunverma/Desktop/Arjun/jupytergis/python/jupytergis_core/jupytergis_core/jgis_ydoc.py", line 47, in set
        valueDict = json.loads(value)
                    ^^^^^^^^^^^^^^^^^
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/json/__init__.py", line 346, in loads
        return _default_decoder.decode(s)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/json/decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/arjunverma/mambaforge/envs/jgis/lib/python3.12/json/decoder.py", line 353, in raw_decode
        obj, end = self.scan_once(s, idx)
                   ^^^^^^^^^^^^^^^^^^^^^^
@martinRenou
Copy link
Member

Could it be related to jupytercad/JupyterCAD#471 ?

@arjxn-py
Copy link
Contributor Author

Could it be related to jupytercad/JupyterCAD#471 ?

Yes, it could be.
But just to mention that there was no trouble opening any of the example files.

@martinRenou
Copy link
Member

Man, thanks for reporting this. I left a comma in #170 😓

#184 should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants