oturns / geosnap

The Geospatial Neighborhood Analysis Package
https://oturns.github.io/geosnap-guide
BSD 3-Clause "New" or "Revised" License
247 stars 32 forks source link

pin matplotlib to 3.3.4 in env and tests #302

Closed AnGWar26 closed 3 years ago

AnGWar26 commented 3 years ago

300

AnGWar26 commented 3 years ago

@knaaptime I couldn't figure out why just pinning matplotlib to 3.3.4 wasn't working so I went to go work on something else.

Now I'm getting this same error in the tests for tobler on my commit for integrating smaup. https://github.com/pysal/tobler/pull/139/checks?check_run_id=2396129278

File "D:\a\geosnap\geosnap\geosnap\tests\_dl_data.py", line 4, in <module>
    from geosnap.io import store_census
  File "d:\a\geosnap\geosnap\geosnap\__init__.py", line 29, in <module>
    from . import analyze
  File "d:\a\geosnap\geosnap\geosnap\analyze\__init__.py", line 1, in <module>
    from .analytics import cluster, regionalize, ModelResults, predict_labels
  File "d:\a\geosnap\geosnap\geosnap\analyze\analytics.py", line 2, in <module>
    import esda
  File "C:\Miniconda3\envs\test\lib\site-packages\esda\__init__.py", line 7, in <module>
    from . import adbscan
  File "C:\Miniconda3\envs\test\lib\site-packages\esda\adbscan.py", line 10, in <module>
    from libpysal.cg.alpha_shapes import alpha_shape_auto
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\__init__.py", line 28, in <module>
    from . import io
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\io\__init__.py", line 3, in <module>
    from .iohandlers import *
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\io\iohandlers\__init__.py", line 4, in <module>
    from . import gwt
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\io\iohandlers\gwt.py", line 3, in <module>
    from ...weights.weights import W
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\weights\__init__.py", line 2, in <module>
    from .distance import *
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\weights\distance.py", line 7, in <module>
    from .util import (
  File "C:\Miniconda3\envs\test\lib\site-packages\libpysal\weights\util.py", line 19, in <module>
    import geopandas as gpd
  File "C:\Miniconda3\envs\test\lib\site-packages\geopandas\__init__.py", line 1, in <module>
    from geopandas._config import options  # noqa
  File "C:\Miniconda3\envs\test\lib\site-packages\geopandas\_config.py", line 126, in <module>
    default_value=_default_use_pygeos(),
  File "C:\Miniconda3\envs\test\lib\site-packages\geopandas\_config.py", line 112, in _default_use_pygeos
    import geopandas._compat as compat
  File "C:\Miniconda3\envs\test\lib\site-packages\geopandas\_compat.py", line 202, in <module>
    import rtree  # noqa
  File "C:\Miniconda3\envs\test\lib\site-packages\rtree\__init__.py", line 9, in <module>
    from .index import Rtree, Index  # noqa
  File "C:\Miniconda3\envs\test\lib\site-packages\rtree\index.py", line 6, in <module>
    from . import core
  File "C:\Miniconda3\envs\test\lib\site-packages\rtree\core.py", line 75, in <module>
    rt = finder.load()
  File "C:\Miniconda3\envs\test\lib\site-packages\rtree\finder.py", line 67, in load
    raise OSError("could not find or load {}".format(lib_name))
OSError: could not find or load spatialindex_c-64.dll

And the one in tobler:

tobler\tests\test_area_join.py:1: in <module>
    import geopandas as gpd
C:\Miniconda3\envs\test\lib\site-packages\geopandas\__init__.py:1: in <module>
    from geopandas._config import options  # noqa
C:\Miniconda3\envs\test\lib\site-packages\geopandas\_config.py:126: in <module>
    default_value=_default_use_pygeos(),
C:\Miniconda3\envs\test\lib\site-packages\geopandas\_config.py:112: in _default_use_pygeos
    import geopandas._compat as compat
C:\Miniconda3\envs\test\lib\site-packages\geopandas\_compat.py:202: in <module>
    import rtree  # noqa
C:\Miniconda3\envs\test\lib\site-packages\rtree\__init__.py:9: in <module>
    from .index import Rtree, Index  # noqa
C:\Miniconda3\envs\test\lib\site-packages\rtree\index.py:6: in <module>
    from . import core
C:\Miniconda3\envs\test\lib\site-packages\rtree\core.py:75: in <module>
    rt = finder.load()
C:\Miniconda3\envs\test\lib\site-packages\rtree\finder.py:67: in load
    raise OSError("could not find or load {}".format(lib_name))
E   OSError: could not find or load spatialindex_c-64.dll

I still don't know what's causing it, just thought I'd give you an update on this with my findings, as it's clearly not isolated to this commit.

knaaptime commented 3 years ago

its a packaging issue on windows at the moment because of rtree/geopandas