-
Notifications
You must be signed in to change notification settings - Fork 10
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
Image reports error ModuleNotFoundError: No module named '_bz2'
when importing pandas
#549
Comments
Hi @yuhuishi-convect - sorry about this. I'm not surprised to hear this because we aren't compiling the current version of I think we should support Pandas, so we'll prioritize getting this fixed. |
This should be resolved with: paketo-buildpacks/cpython#476 |
I've validated that this is fixed in CPython Buildpack v1.7.3. We'll publish a new version of Python this week with the updated component buildpack |
This should be fixed in Python Buildpack v2.6.0. I'm going to close this, but please feel free to re-open if you continue to encounter this issue on v2.6.0 |
Thanks for fixing that @robdimsdale |
Expected Behavior
pandas is imported without error.
Current Behavior
Error message
Possible Solution
Use version 2.4 of the buildpack instead of 2.5
This looks like a problem with 2.5. I can build the image with 2.4 w/o such an issue.
Steps to Reproduce
pack build time_series_forecasting -b gcr.io/paketo-buildpacks/python:2.5 --builder docker.io/paketobuildpacks/builder:base
docker run --rm --entrypoint launcher time_series_forecasting poetry run python -c 'import pandas'
Motivations
The text was updated successfully, but these errors were encountered: