alexrashed opened a new issue, #6567:
URL: https://github.com/apache/kyuubi/issues/6567

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   PyHive is still using the [long deprecated `test` 
command](https://github.com/pypa/setuptools/issues/1684) which was removed with 
`72.0.0` / https://github.com/pypa/setuptools/pull/4458.
   This means that any package using the `setuptools.commands.test` module 
cannot be installed anymore with `setuptools==72.0.0`:
   ```
   Collecting pyhive==0.7.0 (from -r requirements-typehint.txt (line 717))
     Downloading PyHive-0.7.0.tar.gz (46 kB)
        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.5/46.5 kB 160.8 MB/s eta 
0:00:00
     Installing build dependencies ... done
     Getting requirements to build wheel ... error
     error: subprocess-exited-with-error
     
     × Getting requirements to build wheel did not run successfully.
     │ exit code: 1
     ╰─> [20 lines of output]
         Traceback (most recent call last):
           File 
"/home/localstack/Repos/localstack-ext/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 353, in <module>
             main()
           File 
"/home/localstack/Repos/localstack-ext/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 335, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           File 
"/home/localstack/Repos/localstack-ext/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 118, in get_requires_for_build_wheel
             return hook(config_settings)
                    ^^^^^^^^^^^^^^^^^^^^^
           File 
"/tmp/pip-build-env-u4z1mnw7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",
 line 327, in get_requires_for_build_wheel
             return self._get_build_requires(config_settings, requirements=[])
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           File 
"/tmp/pip-build-env-u4z1mnw7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",
 line 297, in _get_build_requires
             self.run_setup()
           File 
"/tmp/pip-build-env-u4z1mnw7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",
 line 497, in run_setup
             super().run_setup(setup_script=setup_script)
           File 
"/tmp/pip-build-env-u4z1mnw7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",
 line 313, in run_setup
             exec(code, locals())
           File "<string>", line 4, in <module>
         ModuleNotFoundError: No module named 'setuptools.command.test'
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
   error: subprocess-exited-with-error
   ```
   
   This can easily be reproduced with the following snippet:
   ```
   pip install "setuptools==72.0.0"
   pip install --upgrade --no-cache-dir pyhive
   ```
   
   As far as I can tell, the test command in setuptools isn't even used anymore:
   
https://github.com/apache/kyuubi/blame/d9d2109070c5a4dbedf6fe0fd7e08b2c0bb6d751/.github/workflows/python.yml#L58-L61
   
   ### Affects Version(s)
   
   all versions?
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


-- 
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: notifications-unsubscr...@kyuubi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to