ydata-profiling icon indicating copy to clipboard operation
ydata-profiling copied to clipboard

Bug Report:cannot import name 'Buffer' from 'typing_extensions' (/usr/local/lib/python3.10/dist-packages/typing_extensions.py)

Open abebe0210 opened this issue 1 year ago • 6 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 on google colab.

I wondered if you could help me.

Expected Behaviour

install nomally

Data Description

Code that reproduces the bug

from ydata_profiling import ProfileReport

pandas-profiling version

v4.6.3

Dependencies

python==3.10.12
pandas==1.5.3
numpy==1.23.5

OS

google colab

Checklist

  • [X] There is not yet another bug report for this issue in the issue tracker
  • [X] The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
  • [X] The issue has not been resolved by the entries listed under Common Issues.

abebe0210 avatar Dec 18 '23 13:12 abebe0210

Same problem in Google Colab

sokolegg avatar Dec 26 '23 19:12 sokolegg

Same problem in Notebooks on Azure Synapse spark pools. See attached notebook .ipynb dump with output included. Notebook 1-ipynb.txt

ferzkopp avatar Jan 05 '24 23:01 ferzkopp

Hello,

typing_extensions.Buffer appears to have been added to Python 3.12.

Maybe you should try to update the package using: !pip install -U pandas-profiling

aquemy avatar Jan 08 '24 09:01 aquemy

Hello,

typing_extensions.Buffer appears to have been added to Python 3.12.

Maybe you should try to update the package using: !pip install -U pandas-profiling

Tried - and that didn't work either. Fails with

ImportError: cannot import name 'deprecated' from 'typing_extensions' (/home/trusted-service-user/cluster-env/env/lib/python3.10/site-packages/typing_extensions.py)

Both pandas-profiling and ydata-profiling are tagged with "Requires: Python >=3.7, <3.12" so one would expect it to work on 3.11 (or tagging needs to be updated).

ferzkopp avatar Jan 08 '24 16:01 ferzkopp

Same problem in Google Colab

Update: Managed to make it work. At the top of the Colab run this: import sys !{sys.executable} -m pip install -U ydata-profiling[notebook] !jupyter nbextension enable --py widgetsnbextension
Then, import it from ydata_profiling import ProfileReport

Afterwards, do whatever you want.
I just reliased that if you "pip install" or "import it" after other imports it raises this error with Buffer.

nikifori avatar Jan 15 '24 09:01 nikifori

This is still an issue and its showstopper.

g7crservice-sajid-f avatar Feb 09 '24 10:02 g7crservice-sajid-f