-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: add ‹/usr/local› to ‹PYTHONPATH› #109
fix: add ‹/usr/local› to ‹PYTHONPATH› #109
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 1m 53s |
With regards to the change that occured in between 3.4.1 and 3.5.0 releases of Fedora Messaging, it is not possible to import consumer callback from ‹/usr/local/› installed Python module, which is the default for global installation of packages via pip. Given the fact that there needs to be hardcoded Python version in the path, I hate this solution. When trying out ‹--callback-file›, I've been hit with the same import issue, as Celery is installed via pip too, cause it hasn't been released to EPEL9 even after a year of requesting this via RHBZ#2032543. Trying out the “hack”¹ from similar project resulted in failure too, as the current working directory isn't included in the path either. So much for the ecosystem and easy to use… ¹ https://gitlab.com/CentOS/Integration/gitlab-webhooks/-/merge_requests/1/diffs?commit_id=1bc3b2f8c2598dd6a24c70f149b3cc683eaf37b1 Related to fedora-infra/fedora-messaging#364 Signed-off-by: Matej Focko <[email protected]>
ea34090
to
db1b9f5
Compare
Co-authored-by: Laura Barcziová <[email protected]> Co-authored-by: Nikola Forrò <[email protected]> Signed-off-by: Matej Focko <[email protected]>
db1b9f5
to
addcd47
Compare
Maybe we could change the pip installation path (possibly with |
Build succeeded. ✔️ pre-commit SUCCESS in 1m 55s |
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 1m 49s |
d6f474d
into
packit:main
With regards to the change that occured in between 3.4.1 and 3.5.0 releases of Fedora Messaging, it is not possible to import consumer callback from ‹/usr/local/› installed Python module, which is the default for global installation of packages via pip.
Given the fact that there needs to be hardcoded Python version in the path, I hate this solution.
When trying out ‹--callback-file›, I've been hit with the same import issue, as Celery is installed via pip too, cause it hasn't been released to EPEL9 even after a year of requesting this via RHBZ#2032543.
Trying out the “hack”¹ from similar project resulted in failure too, as the current working directory isn't included in the path either.
So much for the ecosystem and easy to use…
¹ https://gitlab.com/CentOS/Integration/gitlab-webhooks/-/merge_requests/1/diffs?commit_id=1bc3b2f8c2598dd6a24c70f149b3cc683eaf37b1
Related to fedora-infra/fedora-messaging#364