Comments (18)
This is a limitation of the current tooling.
Ideally, we'd have cached downloads and install every dependency on every push. Unfortunately, modules with c extensions make this a bit impractical.
Luckily, I'm working on some tool that will fix this.
from heroku-buildpack-python.
any hack/tip which would allow me now to remove package piston?
if i don't remove it my app will never start and the only way i can think is to remove heroku app and create it again (not an option for this app).
maybe some way to reset virtualenv?
from heroku-buildpack-python.
The best thing to do at this time is flush the cache. You can ask support to do this for you.
from heroku-buildpack-python.
still waiting for support to reset virtualenv so i'm trying to find a way to fix this.
any way i can use a modified buildpack on an existing app?
any tips appreciated
from heroku-buildpack-python.
You can actually use the purge
branch of this repo to do that :)
from heroku-buildpack-python.
thanks for suggestion but the part i didn't understand is if i can apply a different buildpack next time i push changes w/o delete/create heroku app?
from heroku-buildpack-python.
@aljosa yes, you can do the following:
$ heroku config:add BUILDPACK_URL=git://github.com/heroku/heroku-buildpack-python.git
from heroku-buildpack-python.
this is still an issue for me and others it seems: http://stackoverflow.com/questions/14368027/how-can-i-flush-the-heroku-buildpack-cache-dir
i had to re-install the piston package from source for some unreleased fixes, but the old package still remains inside the site-packages.
from heroku-buildpack-python.
Specify a different runtime, and your cache will be purged.
https://devcenter.heroku.com/articles/python-runtimes#changing-runtimes
from heroku-buildpack-python.
ok, thank you, even if it would be nice to have an easier/quicker method, this works for me
from heroku-buildpack-python.
Indeed, it will be automatic one day, but some tools need to be written first ;)
from heroku-buildpack-python.
@kennethreitz Just saved mine and my customers life.
Looking foward for an easier way to do that on heroku.
from heroku-buildpack-python.
+1
from heroku-buildpack-python.
+1
from heroku-buildpack-python.
@kennethreitz Is modifying runtime.txt, deploying, reverting runtime.txt still the best method to accomplish purging the cached dependencies myself? I tried using the Heroku Repo plugin (https://github.com/heroku/heroku-repo) purge_cache command but it's not working as expected.
from heroku-buildpack-python.
Packages are now automatically uninstalled when removed from requirements.txt
from heroku-buildpack-python.
I have no versions in the requirements.txt
. How can I make sure that the latest packages will be installed on deploy to heroku?
PS. No versions freeze is on purpose. I know it's not the best practice. but I want my CI to catch any incompatibilities as quicly as it can and I don't want to keep to versions of requirements file.
from heroku-buildpack-python.
For anyone who stumbles here, as a workaround you can use post_compile
hook, eg.:
#!/usr/bin/env bash
# File path should be ./bin/post_compile
# https://gist.github.com/kylefox/7044491259b6b2586ca1
echo "UPGRADE_REQUIREMENTS: $UPGRADE_REQUIREMENTS"
if [[ "$UPGRADE_REQUIREMENTS" == "True" ]]; then
echo "====> Upgrading requirements"
pip install -r requirements.txt -U
fi
echo "====> Installed versions"
pip freeze
β¦or similar.
from heroku-buildpack-python.
Related Issues (20)
- PYPY36 and PYPY27 is not available for stack (heroku-22) HOT 3
- Python 3.10.5 buildpack run results in "error while loading shared libraries: libpython3.10.so.1.0" HOT 6
- 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.