Comments (6)
That checks out! Thanks for the explanation and all the work on the Python buildpack 👍
from heroku-buildpack-python.
@djm Hi!
The Python 3.10.5 release on Heroku was the first for Heroku-{18,20} that has the Python binary built using the shared library. (For Heroku-22, the change was first introduced in Python 3.10.4.). The Heroku changelog site entry for that release links to the buildpack changelog which has some more details about those changes.
My guess would be that perhaps some environment variables are set (either on the app, or via earlier faulty buildpacks) that are interfering with the python
binary's ability to locate the shared library. For example, LD_LIBRARY_PATH
or similar.
Could you open a support ticket at https://help.heroku.com, making sure to grant access to your app, and then link to it here, so I can take a closer look?
from heroku-buildpack-python.
Spot on! PYTHONPATH
, PATH
, LD_LIBRARY_PATH
& LIBRARY_PATH
were all set which was a surprise to me having never done that myself. We've moved all environments back to relying on Heroku for those values.
Thanks very much Ed; I'll close this and hopefully it'll be helpful to someone else.
from heroku-buildpack-python.
@djm No problem! Thank you for confirming they were the cause.
I don't suppose you have the values they were set to, so I can try and see where they came from / if there is a way I can detect this case (vs valid usages of them)? To find historic env var values you can use heroku releases:info NNN
where NNN
will be the release version like v123
etc.
from heroku-buildpack-python.
Absolutely, but please take them with a pinch of salt; this particular app has been on Heroku since 2012!
LD_LIBRARY_PATH: /app/.heroku/vendor/lib
LIBRARY_PATH: /app/.heroku/vendor/lib
PATH: /app/.heroku/venv/bin:/bin:/usr/local/bin:/usr/bin
PYTHONPATH: /app/
from heroku-buildpack-python.
Thank you - that was helpful - I tracked those down to here:
https://github.com/heroku/heroku-buildpack-python/blob/v11/bin/release#L10-L18
In the very early days of this buildpack, it used to set some default env vars on newly created apps as part of their first build. I'll have a think about the best way to catch these cases to avoid other old apps being affected in the future.
from heroku-buildpack-python.
Related Issues (20)
- PYPY36 and PYPY27 is not available for stack (heroku-22) HOT 3
- Support the PDM package manager HOT 7
- Add warning when using `tensorflow` rather than `tensorflow-cpu`
- Simple Django project deploys successfully on v218, fails on v219 and following HOT 2
- Possible out-of-date setuptools /wheel versions HOT 4
- upgrade to stack heroku-22 using python version 3.6.7. is it possible? HOT 2
- Problem trying to deploy in heroku-22 anyjson setup command: use_2to3 is invalid. HOT 2
- Heroku problem with redis conection HOT 1
- pipenv cache is skipped when it should not be HOT 3
- Error running locally built image with pack: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding HOT 4
- Can I change the python source? HOT 1
- `Requested runtime 'python-3.X.Y' is not available for this stack` due to hitting curl connection timeouts on Dokku HOT 3
- Add support for config vars in Pip requirements files HOT 4
- Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, HOT 4
- Python buildpack fails to deploy without first purging cache HOT 3
- Streamlit application w Anaconda requirements to be deployed w Heroku HOT 2
- Pipenv install is skipped in cases where it's not safe to do so
- Source repos for editable Pipenv VCS installs are not cached between builds
- Heroku deployment is incompatible with VCS-based versioning using `setuptools-scm` and friends HOT 4
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 heroku-buildpack-python.