cannot import name 'Buffer' from 'typing_extensions' (/usr/local/lib/python3.10/dist-packages/typing_extensions.py)
Balogunhabeeb14 opened this issue · comments
Current Behaviour
I get this error:
cannot import name 'Buffer' from 'typing_extensions' (/usr/local/lib/python3.10/dist-packages/typing_extensions.py)
when I try importing from ydata_profiling import ProfileReport
Expected Behaviour
I should get a Report as shown on the https://docs.profiling.ydata.ai/4.6/
Data Description
it is the public diabetes.csv public available dataset
Code that reproduces the bug
from ydata_profiling import ProfileReport
pandas-profiling version
pandas-profiling==3.6.6
Dependencies
numpy==1.23.5
pandas==1.5.3
OS
Macos
Checklist
- There is not yet another bug report for this issue in the issue tracker
- The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
- The issue has not been resolved by the entries listed under Common Issues.
Hi, you've probably gotten a solution by now. Nonetheless, I fixed a similar issue by updating my Python from version 3.10 to version 3.12 as the 'Buffer' extension is available on the latest version. Everything worked after that. 😁
Hi @Balogunhabeeb14 ,
can you please share the details of the environment that you are using? Based on the error it seems that one your packages is not following the version requirements to run ydata-profiling.
Also I deeply recommend that you install it through pip install ydata-profiling==4.6.2
as that is the latest version. You are currently installing a version that is no longer supported.
Hi @KhethiweDlamini ,
thank you for your suggestion, have in mind that ydata-profiling distribution is not available for python 3.12. Not sure how have you installed the package, but it is not officially supported due to conflicts.
Many thanks for the suggestions @KhethiweDlamini I tried changing the version of python, however that didn't work.
@fabclmnt to answer your question, It was on google colab, though I don't think that should be a problem.
Anyways, this recent version which you shared worked just now.
Thank you. I will close the issue now.