[Osgeo4w-trac] [osgeo4w] #860: pyarrow 0.0.0-1 doesn't work and makes both geopandas and pandas not working as well
OSGeo4W
trac_osgeo4w at osgeo.org
Sat Dec 7 03:03:22 PST 2024
#860: pyarrow 0.0.0-1 doesn't work and makes both geopandas and pandas not
working as well
------------------------+---------------------------
Reporter: andreaerdna | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: normal | Component: Package
Version: | Keywords:
------------------------+---------------------------
Refs: https://github.com/qgis/QGIS/issues/59776#issuecomment-2524744848
with both arrow-cpp 17.0.0-1 and python3-pyarrow 0.0.0-1 installed
{{{#!python
import pyarrow as pa
days = pa.array([1, 12, 17, 23, 28], type=pa.int8())
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "pyarrow\\array.pxi", line 273, in pyarrow.lib.array
File "pyarrow\\array.pxi", line 55, in pyarrow.lib._is_array_like
File "pyarrow\\pandas-shim.pxi", line 124, in
pyarrow.lib._PandasAPIShim._have_pandas_internal
File "pyarrow\\pandas-shim.pxi", line 103, in
pyarrow.lib._PandasAPIShim._check_import
File "pyarrow\\pandas-shim.pxi", line 106, in
pyarrow.lib._PandasAPIShim._check_import
File "pyarrow\\pandas-shim.pxi", line 50, in
pyarrow.lib._PandasAPIShim._import_pandas
File "C:\OS022F~1\apps\Python312\Lib\site-packages\pandas\__init__.py",
line 26, in <module>
from pandas.compat import (
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\compat\__init__.py", line 27, in <module>
from pandas.compat.pyarrow import (
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\compat\pyarrow.py", line 10, in <module>
_palv = Version(Version(pa.__version__).base_version)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\util\version\__init__.py", line 341, in __init__
match = self._regex.search(version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
}}}
The presence of python3-pyarrow 0.0.0-1 installed, makes impossible to
import both geopandas and pandas:
{{{#!python
import geopandas as gpd
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\geopandas\__init__.py", line 3, in <module>
from geopandas.geoseries import GeoSeries
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\geopandas\geoseries.py", line 9, in <module>
import pandas as pd
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-packages\pandas\__init__.py",
line 26, in <module>
from pandas.compat import (
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\compat\__init__.py", line 27, in <module>
from pandas.compat.pyarrow import (
File "C:\OS022F~1/apps/qgis-dev/./python\qgis\utils.py", line 966, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\compat\pyarrow.py", line 10, in <module>
_palv = Version(Version(pa.__version__).base_version)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OS022F~1\apps\Python312\Lib\site-
packages\pandas\util\version\__init__.py", line 341, in __init__
match = self._regex.search(version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/860>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list