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

TraitError: The 'config' trait of a Map instance must be a Config, but a value of class 'dict' was specified #178

Closed
pbugnion opened this issue Aug 30, 2017 · 4 comments

Comments

@pbugnion
Copy link
Owner

pbugnion commented Aug 30, 2017

To reproduce:

import gmaps
gmaps.configure(api_key=...)
gmaps.Map()

# throws TraitError: The 'config' trait of a Map instance must be a Config, but a value of class 'dict' was specified

This seems to happen when the user has gmaps 0.6.0 and ipywidgets 6.

@pbugnion
Copy link
Owner Author

pbugnion commented Aug 30, 2017

This should now be fixed with gmaps 0.6.1. To install:

$ conda install -c conda-forge gmaps

The conda recipe for the previous version of gmaps (0.6.0) had the wrong lower-bound dependency for ipywidgets. This caused users currently running ipywidgets 6 who upgraded to gmaps 0.6.0 to end up with a broken installation.
gmaps 0.6.0 only supports ipywidgets 7.

(Edited this after the release of 0.6.1).

@RuilinYang-beta
Copy link

Thank you, this perfectly solves my problem!

I find that under ipywidgets 6, the highest version of gmaps available is 0.6.0.

Tips for someone novice as me:
You should upgrade ipywidgets to 7 before install gmaps 0.6.1. Run this two line.

conda install -c conda-forge ipywidgets
conda install -c conda-forge gmaps

@pbugnion
Copy link
Owner Author

pbugnion commented Sep 5, 2017

Good to know that it's working!

I find that under ipywidgets 6, the highest version of gmaps available is 0.6.0.

Actually, the highest version that works with ipywidgets 6 is gmaps 0.5.4. The requirements on conda-forge for version 0.6.0 are wrong, but, as far as I can tell, I cannot remove that version.

@pbugnion
Copy link
Owner Author

pbugnion commented Sep 5, 2017

Closing as resolved! Thanks for the help.

@pbugnion pbugnion closed this as completed Sep 5, 2017
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

No branches or pull requests

2 participants