-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build fails with error ModuleNotFoundError: No module named 'setuptools' #491
Comments
Thanks for the report! That's a bit strange, though this PR which replaces setuptools with hatchling will take care of that :) |
Please don't use it in prod yet though, I'm fixing some GitHub actions stuff in the same PR, and added a dummy DB revision for this which you of course would not want to apply on your newdle instance. However, for testing it's fine, or you can just use the first commit in that PR. |
The PR should be fine now. Please let me know if it works for you and I'll merge it. |
I slightly changed the Makefile to start with venv And I was just about to report the problem. I did not test the PR yet.
|
Dear Tomas, I tried to build Newdle using your PR and I found another small issue. When using Python 3.12 the build steps should be: @@ -143,7 +143,8 @@ build: i18n
@printf " \033[38;5;154mBUILD\033[0m \033[38;5;176mBuilding production package\033[0m\n"
@rm -rf newdle/client/build build
@source ${VENV}/bin/activate && cd newdle/client && npm run build
- @python setup.py bdist_wheel -q
+ @python -m pip install build uv
+ @python -m build --installer uv -o dist otherwise python would complain that build and uv packages are not installed. With this small fix, the build runs smoothly. HTH. Regards, Marco |
Did you run |
Hi I triead your pull ##492 request and it fails with the same problem as original Makefile. I'm running docker builds with:
Adding "@source ${VENV}/bin/activate && " imports VENV variables and then python will allow you to build it just fine. |
Yes, the log of my build shows: => [builder 2/6] ADD . /build/ |
Error when VENV is not sourced (docker building)
|
Ah, totally forgot that |
Should be fixed in the PR branch now |
Hi all,
I'm facing the following build issue: when trying to run a "docker build ." or even a simple "make build/make docker-run" I always end up with this error:
I also tried to force the installation of setuptools in the corresponding section of the Makefile:
but with no results. It looks like the Python venv hasn't got the setuptools module, which in theory has been already installed here:
Could someone please help me solve this issue? I'd like to upgrade my production instance with the latest flask-multipass, but I'm stuck with the build process.
Thanks in advance for your support.
Regards,
Marco
The text was updated successfully, but these errors were encountered: