Git Product home page Git Product logo

Comments (1)

CrepeGoat avatar CrepeGoat commented on June 5, 2024

Hey @WillMcCall! I'm not a maintainer or anything, but I happened on this and think I can maybe help.

your immediate problem

Firstly, it looks like your example code is similar to the examples in this part of the tutorial. There it looks like the function name you want is symbol_layer, instead of symbol.

other problems

However, when I tried to run your code with ^my fix, I got another error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-09538d5bc6cd> in <cell line: 8>()
      6 
      7 fig = gmaps.figure()
----> 8 marker_layer = gmaps.symbol_layer(
      9     locations, fill_color="purple", stroke_color="purple",scale=5
     10 )

2 frames

[...]

/usr/local/lib/python3.10/dist-packages/gmaps/options.py in is_atomic(elem)
     38     return (
     39         isinstance(elem, string_types) or
---> 40         not isinstance(elem, collections.Iterable)
     41     )
     42 

AttributeError: module 'collections' has no attribute 'Iterable'

This looks like gmaps is misusing Python's builtin collections module. Specifically, Iterable used to be in collections but was moved to collections.abc way back in Python version ~3.3?, which has been in EOF for over a decade.

Looking further into it, the setup.py file here seems to suggest that this package supports Python version up to 3.6.

On top of that, this repo seems to not have seen any changes since 2019.

tl;dr: this gmaps package may be abandoned and out-of-date. If you want to use it, you unfortunately may have to do some maintenance yourself.

my recommendations

In general, I'd recommend asking these kinds of usage questions on Stack Overflow, instead of as an issue in the repo. You have a better chance of getting a decent answer (there are always SO users, but maintainers may disappear), and worst-case they'll tell you to message the package maintainers anyway.

Good luck with your efforts!

from gmaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.