You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jwimberl (via GitHub)" <gi...@apache.org> on 2023/05/15 13:44:26 UTC
[GitHub] [arrow] jwimberl opened a new issue, #35591: Pip install error for pyarrow 6.0.1 on Python 3.6.8 due to setuptools_scm transitive dependency
jwimberl opened a new issue, #35591:
URL: https://github.com/apache/arrow/issues/35591
### Describe the bug, including details regarding any error messages, version, and platform.
On a CentOS 7 machine using Python 3.6.8, I am trying to install pyarrow via pip. Pip is correctly detecting that version 6.0.1, the last supporting Python 3.6.x, should be installed, but during the setup and installation is running into an error because a Python 3.7.x+ feature (__future__ annotations) is getting invoked:
```
$ python3 --version
Python 3.6.8
$ pip3 --version
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
$ pip3 install pyarrow --no-cache-dir
Collecting pyarrow
Downloading https://files.pythonhosted.org/packages/38/c6/97a4133eea642155e7a73cb946d889cadc461a1e6b93f5627af9fdd7b3f3/pyarrow-6.0.1.tar.gz (770kB)
100% |████████████████████████████████| 778kB 66.8MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ikemk80w/pyarrow/setup.py", line 632, in <module>
url='https://arrow.apache.org/'
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 370, in __init__
k: v for k, v in attrs.items()
File "/usr/lib64/python3.6/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/tmp/pip-build-ikemk80w/pyarrow/.eggs/setuptools_scm-7.1.0-py3.6.egg/setuptools_scm/__init__.py", line 5
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined
```
I think this is is a transitive dependency issue like that described in #28450 involving the version of setuptools_scm -- I used pip3 to install setuptools_scm, which installed version 6.4.2, and then installing pyarrow succeeded. The box didn't have a version of setuptools_scm installed prior to this.
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org