Open whudson opened 2 years ago
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.
import collections
collections.Iterable = collections.abc.Iterable
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: