-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to install daphne: ModuleNotFoundError: No module named 'setuptools.command.test' #518
Comments
This issue caused by this update - https://setuptools.pypa.io/en/stable/history.html#v72-0-0 This is stack overflow comment about problem - https://stackoverflow.com/a/78806146 But I'm personally can't pin
|
This doesn't reproduce for my using
|
Same Issue here Collecting autobahn>=22.4.2 (from daphne==4.1.2->-r requirements.txt (line 26))
Downloading autobahn-23.6.2.tar.gz (480 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/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-x3urz8jf/overlay/lib/python3.9/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-x3urz8jf/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line [297](https://github.com/xxxxxxxxx/actions/runs/10143972122/job/28046487098#step:5:298), in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-x3urz8jf/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-x3urz8jf/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "<string>", line 32, 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
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Error: Process completed with exit code 1. |
No need for more duplicate posts. Thanks. Comments towards fixes welcome, but is it not the upstream autobahn issue that needs resolving? |
Updating to setuptools==72.1.0 solved this |
@carltongibson yes, that problem is on Autobahn also resolved the problem, but the updated version is not released yet (crossbario/autobahn-python#1644). |
Thanks @sterliakov 🎁 — I'll leave it open for the moment, just for visibility. |
I assume this have worked through now. Closing. |
setuptools have removed the command setuptools.command.test, which was deprecated in release 41.5.0 almost 5 years ago, but looks like daphne is still using it.
Stack Trace
My Environment
I am using Ubuntu 22.04.2 LTS, and trying to install latest daphne 4.1.2 via poetry in my dockerized setup.
The text was updated successfully, but these errors were encountered: