Skip to content
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

Failed to load data #350

Open
juliowissing-iis opened this issue Dec 5, 2024 · 6 comments
Open

Failed to load data #350

juliowissing-iis opened this issue Dec 5, 2024 · 6 comments

Comments

@juliowissing-iis
Copy link

Environment data

  • VS Code version: 1.95.3
  • Data Wrangler Extension version (available under the Extensions sidebar): v1.14.0
  • Jupyter Extension version (available under the Extensions sidebar): No Jupyter
  • Python Extension version (available under the Extensions sidebar): v2024.20.0
  • OS (Windows | Mac | Linux distro) and version: MacOS 15.1.1 (24B91)
  • Pandas version: 2.2.3
  • Python and/or Anaconda version: Python 3.12.8, conda 24.9.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda

Expected behaviour

Display a DataFrame in DW.

Actual behaviour

It does not work in some debugging sessions. When I debug a Python script, it often does not display the DF but an error message. Restarting the debugger helps, but only sometimes.

Steps to reproduce:

As it seems random, it is hard to identify specific steps to reproduce. The error message is always the same, though.

Logs

Displayed error:
Empfangener falsch formatierter Inhalt: {"name": "KeyError", "message": "'a4df8bfd-287e-463b-bbd6-b323a756b44c'", "stack": " File "", line 56, in DW_DEBUG_WRAPPER\n"}

@pwang347
Copy link
Member

pwang347 commented Dec 6, 2024

Hi @juliowissing-iis, thanks for opening this issue! Could you please share what version of numpy you are using?
From #333 (comment) and #274 (comment) it seems like this issue can sometimes be resolved by using a different numpy version.

@juliowissing-iis
Copy link
Author

Hi @pwang347, Thank you for the quick reply. I am using numpy 2.1.3. I have also seen the comments you posted, but the issues persisted even with an older version. However, it is less frequent with numpy 1.26.4. Also, we have decided to move to numpy > 2.0 in our project, so using an older version isn't really an option for me.

@pwang347
Copy link
Member

Hi @juliowissing-iis, apologies for the late reply!

Could you please check if this VSIX fixes the issue for you?
https://github.com/pwang347/file-dump/blob/main/ms-toolsai-data-wrangler-insiders.vsix

Also wanted to know - does your environment have IPython installed? If so, could you please also share your IPython version? (and if it is not an issue, could you try upgrading it if the VSIX above did not help?)

Thanks!

@juliowissing-iis
Copy link
Author

Hi @pwang347,
No worries! I installed the VSIX file and haven't noticed the error anymore. If it reappears, I will update you. Also, I have no IPython installed.

Best wishes,
Julio

@shehrozeee
Copy link

used vsix linked above and still getting
Received malformed content: {"name": "KeyError", "message": "'2d132273-78e0-42b0-8127-253cd362943d'", "stack": "Traceback \u001b[1;36m(most recent call last)\u001b[0m:\n\u001b[1;36m File \u001b[1;32m:56\u001b[1;36m in \u001b[1;35m__DW_DEBUG_WRAPPER__\u001b[1;36m\n\u001b[1;31mKeyError\u001b[0m\u001b[1;31m:\u001b[0m '2d132273-78e0-42b0-8127-253cd362943d'\n"}

@pwang347
Copy link
Member

used vsix linked above and still getting Received malformed content: {"name": "KeyError", "message": "'2d132273-78e0-42b0-8127-253cd362943d'", "stack": "Traceback \u001b[1;36m(most recent call last)\u001b[0m:\n\u001b[1;36m File \u001b[1;32m:56\u001b[1;36m in \u001b[1;35m__DW_DEBUG_WRAPPER__\u001b[1;36m\n\u001b[1;31mKeyError\u001b[0m\u001b[1;31m:\u001b[0m '2d132273-78e0-42b0-8127-253cd362943d'\n"}

Got it, let's follow up in #364 in case it is a different issue (although the symptom looks the same so far)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants