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

[BUG] v0.10.1 import fails in Google Collab notebooks #684

Closed
willemarcel opened this issue Oct 11, 2024 · 4 comments · Fixed by #687
Closed

[BUG] v0.10.1 import fails in Google Collab notebooks #684

willemarcel opened this issue Oct 11, 2024 · 4 comments · Fixed by #687
Labels
bug Something isn't working
Milestone

Comments

@willemarcel
Copy link
Contributor

Context

When I install lonboard 0.10.1 in a Google Collab, the import fails.

Resulting behaviour, error message or logs

Describe what happened:

TypeError                                 Traceback (most recent call last)

[<ipython-input-2-898f83bc3a04>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from lonboard import Map

4 frames

[/usr/local/lib/python3.10/dist-packages/lonboard/traits.py](https://localhost:8080/#) in <module>
   1076 
   1077 
-> 1078 class VariableLengthTuple(traitlets.Container[Tuple[T, ...]]):
   1079     """
   1080     An instance of a Python tuple with variable numbers of elements of the same type.

TypeError: 'type' object is not subscriptable

Environment

  • Lonboard Version: 0.10.1
  • Runtime: CPU

Steps to reproduce the bug

Describe the actions that led you to encounter the bug. Example:

  1. imported lonboard into a new notebook
  2. add a new code line with from lonboard import Map
@willemarcel willemarcel added the bug Something isn't working label Oct 11, 2024
@kylebarron
Copy link
Member

What version of traitlets is installed?

@willemarcel
Copy link
Contributor Author

What version of traitlets is installed?

traitlets is 5.14.3

@kylebarron kylebarron added this to the 0.10.2 milestone Oct 14, 2024
@kylebarron
Copy link
Member

Aha, no it's not!

image

This is annoying but apparently it's not possible to update the traitlets version on Colab

@spatialthoughts
Copy link

I am also running into this in Colab. Switching to the old version makes it work for now. !pip install lonboard==0.9.3 but would be good to make the newer versions work in Colab.

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.

3 participants