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

Python: Add missing setuptools dependency to branca #76543

Merged
merged 1 commit into from Dec 26, 2019

Conversation

mpickering
Copy link
Contributor

cc @FRidh

Without this dependency then any library which uses branca fails with the following kind of error:

Traceback (most recent call last):
  File "/home/matt/map-scraper/funflow-example/store/item-c8b3cf4dd29bb13fed4f6c9ca79271a8bb747d66ae39e57fe1791e025ff8eca9/create-leaflet.py", line 5, in <module>
    import folium
  File "/nix/store/mbajvnm6hx0pgm9cs7zhdlrh0nm235nq-python3-3.7.4-env/lib/python3.7/site-packages/folium/__init__.py", line 5, in <module>
    import branca
  File "/nix/store/mbajvnm6hx0pgm9cs7zhdlrh0nm235nq-python3-3.7.4-env/lib/python3.7/site-packages/branca/__init__.py", line 5, in <module>
    import branca.colormap as colormap
  File "/nix/store/mbajvnm6hx0pgm9cs7zhdlrh0nm235nq-python3-3.7.4-env/lib/python3.7/site-packages/branca/colormap.py", line 14, in <module>
    from branca.element import ENV, Figure, JavascriptLink, MacroElement
  File "/nix/store/mbajvnm6hx0pgm9cs7zhdlrh0nm235nq-python3-3.7.4-env/lib/python3.7/site-packages/branca/element.py", line 20, in <module>
    from .utilities import _camelify, _parse_size, none_max, none_min
  File "/nix/store/mbajvnm6hx0pgm9cs7zhdlrh0nm235nq-python3-3.7.4-env/lib/python3.7/site-packages/branca/utilities.py", line 20, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants