jwass / mplleaflet

Easily convert matplotlib plots from Python into interactive Leaflet web maps.
BSD 3-Clause "New" or "Revised" License
521 stars 76 forks source link

error : linux Fedora 29 with functools_lru_cache #63

Open catafest opened 5 years ago

catafest commented 5 years ago

error with I uninstall and install it , but I got same error:

[mythcat@desk ~]$ python
Python 2.7.15 (default, Oct 15 2018, 15:26:09) 
[GCC 8.2.1 20180801 (Red Hat 8.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mplleaflet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mythcat/.local/lib/python2.7/site-packages/mplleaflet/__init__.py", line 3, in <module>
    from mplleaflet._display import (
  File "/home/mythcat/.local/lib/python2.7/site-packages/mplleaflet/_display.py", line 10, in <module>
    import matplotlib.pyplot as plt
  File "/home/mythcat/.local/lib/python2.7/site-packages/matplotlib/__init__.py", line 130, in <module>
    from matplotlib.rcsetup import defaultParams, validate_backend, cycler
  File "/home/mythcat/.local/lib/python2.7/site-packages/matplotlib/rcsetup.py", line 29, in <module>
    from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
  File "/home/mythcat/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module>
    from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache
>>> 
[4]+  Stopped                 python
[mythcat@desk ~]$ pip install backports.functools_lru_cache --user
Requirement already satisfied: backports.functools_lru_cache in ./.local/lib/python2.7/site-packages (1.5)