-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects #11891
Comments
Hi, Thanks for the report. For example, how I can reproduce this error on my Ubuntu 22.04 dev laptop... but any linux or Windows OS is good enough Thanks |
Hi there, Thats problem, I am not sure how I got twisted-iocpsupport on my requirements.txt. Reading Stack it looks like this is typical when deploying on Heroku. This happened when trying to deploy a websocket. I am using Windows. There was a dependency between "Twisted" and "twisted-iocpsupport". I removed "twisted-iocpsupport" from the requirements.txt file and things seem to have work perfectly fine. |
Ok. For example which Python version do you use ? cheers |
When @PhilMele replies with their configuration, we should kick off a build to get some wheels for their (python version/windows version/architecture) matrix so that this just works for them, but we should also make the next version of Twisted just not have this issue at all for more casual users, as stipulated in #11893. |
hi all, sorry I took a bit of time to reply. python version - Python 3.10.4 The problem only occurs when deploying on Heroku. It works fine on my laptop. Does this answer your question? (thank you for the replies by the way!) Let me know if you want me to test something. |
Thanks for this info. I think this means the Python we care about is the environment Heroku is running in, which is presumably Linux. twisted-iocpsupport doesn't work on linux, and it would not make sense to install it there. So the question is really, how did it get into your requirements.txt that is getting processed on heroku? I do not think that is a problem Twisted can fix :). |
I guess he is trying to run a realtime application using django. Using pip freeze > requirements.txt captures all your installations and their dependencies in the requirements.txt file. Deleting twisted-iocpsupport in your requirements.txt file will do the trick. But, remember, do not make your project to run on Hope I did help out |
I was pushing some code to Heroku and came across the following error message:
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects
Apprently this is due to the use of my requirements.txt file.
I saw somewhere on Stackover it would be good to report this to you. So here is the report :)
Using Django and Heroku.
The text was updated successfully, but these errors were encountered: