gablooge commented on issue #37803:
URL: https://github.com/apache/arrow/issues/37803#issuecomment-1728982300

   Still got the similar issue in ubuntu runner image with any previous 
setuptools_scm versions
   
   ```
   Collecting pyarrow==12.0.0
     Downloading pyarrow-12.0.0.tar.gz (1.0 MB)
        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 16.9 MB/s eta 
0:00:00
     Installing build dependencies: started
     Installing build dependencies: still running...
     Installing build dependencies: still running...
     Installing build dependencies: still running...
     Installing build dependencies: still running...
     Installing build dependencies: still running...
     Installing build dependencies: finished with status 'done'
     Getting requirements to build wheel: started
     Getting requirements to build wheel: finished with status 'done'
     Preparing metadata (pyproject.toml): started
     Preparing metadata (pyproject.toml): finished with status 'error'
     error: subprocess-exited-with-error
     
     × Preparing metadata (pyproject.toml) did not run successfully.
     │ exit code: 1
     ╰─> [54 lines of output]
         <string>:34: DeprecationWarning: pkg_resources is deprecated as an 
API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
         ERROR setuptools_scm._integration.setuptools pyproject.toml does not 
contain a tool.setuptools_scm section
         Traceback (most recent call last):
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 53, in read_pyproject
             section = defn.get("tool", {})[tool_name]
         KeyError: 'setuptools_scm'
         
         The above exception was the direct cause of the following exception:
         
         Traceback (most recent call last):
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/setuptools.py",
 line 121, in infer_version
             config = _config.Configuration.from_file(dist_name=dist_name)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_config.py",
 line 128, in from_file
             pyproject_data = _read_pyproject(name, _load_toml=_load_toml)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 55, in read_pyproject
             raise LookupError(f"{name} does not contain a tool.{tool_name} 
section") from e
         LookupError: pyproject.toml does not contain a tool.setuptools_scm 
section
         Traceback (most recent call last):
           File 
"/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py",
 line 351, in <module>
             main()
           File 
"/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py",
 line 333, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
   
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/build_meta.py",
 line 396, in prepare_metadata_for_build_wheel
             self.run_setup()
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/build_meta.py",
 line 507, in run_setup
             super(_BuildMetaLegacyBackend, 
self).run_setup(setup_script=setup_script)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/build_meta.py",
 line 341, in run_setup
             exec(code, locals())
           File "<string>", line 474, in <module>
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/__init__.py",
 line 103, in setup
             return distutils.core.setup(**attrs)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py",
 line 147, in setup
             _setup_distribution = dist = klass(attrs)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/dist.py",
 line 303, in __init__
             _Distribution.__init__(self, dist_attrs)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py",
 line 283, in __init__
             self.finalize_options()
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/dist.py",
 line 680, in finalize_options
             ep(self)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools/dist.py",
 line 700, in _finalize_setup_keywords
             ep.load()(self, ep.name, value)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/setuptools.py",
 line 102, in version_keyword
             _assign_version(dist, config)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/setuptools.py",
 line [54]
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_get_version_impl.py",
 line 94, in _get_version
             write_version_files(config, version=version_string, 
scm_version=parsed_version)
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_get_version_impl.py",
 line 63, in write_version_files
             dump_version(
           File 
"/tmp/pip-build-env-fxetnlzh/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/dump_version.py",
 line 36, in dump_version
             assert not write_to.is_absolute(), f"{write_to=}"
         AssertionError: 
write_to=PosixPath('/tmp/pip-install-sjvcm0ie/pyarrow_12854cb8e10342[55]
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
   error: metadata-generation-failed
   × Encountered error while generating package metadata.
   ╰─> See above for output.
   note: This is an issue with the package mentioned above, not pip.
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to