-
Notifications
You must be signed in to change notification settings - Fork 146
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
API change for collections in Python 3.3+ breaks is_atomic in options.py #352
Comments
Sorry I'm getting myself confused here. Creating a layer with one argument works, but adding additional options fails at the is_atomic function. I'll try to send a PR for this later. |
Apparently the correct way to do it is one of: from collections.abc import *
from collections import abc I'm not sure how the CI tests are passing on the existing build for v3.3+, but changing the import was definitely needed on my machine. |
This bug wasn't evident with Pyhton 3.9, but it is with 3.10. |
I'm not sure how to fix this in a good way - I'll leave it up to someone else. |
As a temporary workaround, add these lines in your script.
|
Running in Python 3.10 and calling
gmaps.symbol_layer()
withinfo_boxes
set to a list of strings:In python 3.3+ these are moved into the collections.abc (abstract base classes) module. For some reason I have to access them like this when testing in my code:
The text was updated successfully, but these errors were encountered: