Comments (4)
@david-caro Thank you for the great bug report + testcase, that helped a lot with my being able to reproduce.
This looks like a potential bug in uWSGI (or at least a limitation of it), since it's not honouring Python's detection of stdlib location, and instead is using the original build time location of Python, before it was relocated. For example, if you run docker run --rm -it --entrypoint launcher wm-lol python -m sysconfig
, you will see that the "Paths:" section right at the top has all the correct locations.
I'm planning on reporting this upstream to uWSGI, as well as having the Python CNB set PYTHONHOME
as a workaround in the meantime (which may end up needing to be set long term, given there will be apps in the wild using old uWSGI versions that never get the fix, even if uWSGI do fix this).
from buildpacks-python.
I've reported this upstream to the uWSGI project here:
unbit/uwsgi#2525
from buildpacks-python.
This is more of a workaround than a fix, but I'm curious if using https://pypi.org/project/pyuwsgi/ resolves the issue.
from buildpacks-python.
I just noticed the GCP Python CNB sets PYTHONHOME
because of uWSGI too:
https://github.com/GoogleCloudPlatform/buildpacks/blob/99553d0a2051834324d621f20ad5355453f675a1/cmd/python/runtime/main.go#L93-L96
from buildpacks-python.
Related Issues (18)
- Support the Pipenv package manager
- Support disabling automatic Django static asset generation
- Add documentation
- Support for `pre_compile` and `post_compile` steps HOT 20
- Decide whether to continue buildpack NLTK support
- Finish review on initial implementation HOT 3
- Automatically configure the Gunicorn web server
- Automatically run Django's `collectstatic` command
- Support config vars in Pip requirements files
- Support the `.python-version` file
- Support the `PIP_EXTRA_INDEX_URL` env var for specifying an additional package index URL
- Support passing arbitrary env vars to build backends (such as setuptools)
- Support the Poetry package manager HOT 2
- Use retries/timeouts to improve reliabilty of downloads from S3
- Validate the SHA256 checksum of Python binaries
- Outdated Python version warnings
- Automatic Python patch version updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildpacks-python.