Opened 5 years ago
Closed 17 months ago
#58718 closed defect (fixed)
py37-geopandas: Does not run
Reported by: | mf2k (Frank Schima) | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | py-fiona py-geopandas |
Description
py-geopandas does not seem to be working.
$ ipython Python 3.7.4 (default, Jul 11 2019, 01:08:00) Type 'copyright', 'credits' or 'license' for more information IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help. In [1]: import geopandas --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-fc7d1d298f0c> in <module> ----> 1 import geopandas /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geopandas/__init__.py in <module> 3 from geopandas.geodataframe import points_from_xy 4 ----> 5 from geopandas.io.file import read_file 6 from geopandas.io.sql import read_postgis 7 from geopandas.tools import sjoin /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geopandas/io/file.py in <module> 2 from distutils.version import LooseVersion 3 ----> 4 import fiona 5 import numpy as np 6 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fiona/__init__.py in <module> 81 os.environ["PATH"] = os.environ["PATH"] + ";" + libdir 82 ---> 83 from fiona.collection import BytesCollection, Collection 84 from fiona.drvsupport import supported_drivers 85 from fiona.env import ensure_env_with_credentials, Env /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fiona/collection.py in <module> 7 8 from fiona import compat, vfs ----> 9 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator 10 from fiona.ogrext import Session, WritingSession 11 from fiona.ogrext import buffer_to_virtual_file, remove_virtual_file, GEOMETRY_TYPES ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Symbol not found: _GEOSArea Referenced from: /opt/local/lib/libspatialite.7.dylib Expected in: flat namespace in /opt/local/lib/libspatialite.7.dylib
Change History (6)
comment:1 Changed 5 years ago by mf2k (Frank Schima)
Summary: | py37-geopandas: Does run → py37-geopandas: Does not run |
---|
comment:2 Changed 5 years ago by stromnov (Andrey Stromnov)
comment:3 Changed 5 years ago by mf2k (Frank Schima)
I tried that and it still does not work for me.
But something strange is going on. If I import fiona first and then import geopandas, it works!
comment:4 Changed 5 years ago by mf2k (Frank Schima)
Port: | py-fiona added |
---|
comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:6 Changed 17 months ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This appears to work now.
Note: See
TracTickets for help on using
tickets.
So, actually it's a problem with py-fiona. Works well after rebuilding and reinstalling py-fiona from sources, but I'm not sure if it just enough to bump py-fiona port revision to completely solve this problem.