microsoft / vscode-data-wrangler

Other
439 stars 20 forks source link

Error with Python and Jupyter extension #332

Open sowiroar opened 2 weeks ago

sowiroar commented 2 weeks ago

Type: Bug

When i use Data wrangler always i found the message: This feature depends on the Jupyter and Python extensions for Visual Studio Code. Would you like to install both extensions? but i have already install python and jupyter, so i dont know why always thats happens

Extension version: 1.12.1 VS Code version: Code 1.95.1 (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 x 2688)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.65GB (5.25GB free)| |Process Argv|--crash-reporter-id 35dddea6-8352-4701-a485-4b1d6eb475bd| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 01bff139:31013167 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 cf971741:31144450 iacca1:31171482 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31170013 ```
pwang347 commented 2 weeks ago

Hi @sowiroar, thank you for opening this issue! This sounds like it may be related to this https://github.com/microsoft/vscode-data-wrangler/issues/129#issuecomment-1922177014. We also have a warning message for this in pre-release 1.13.1, if you'd like to use that to fix the issue for you.

Let me know if this resolves the problem, thanks!

sungengyi commented 2 days ago

Hi @pwang347 I have the same issue as #129. I tried your fix but it did not work for me. Image This is my VSCode version: Image

I'm running my notebook on a remote server. My friend running on the same server does not have the same issue using Mac.

pwang347 commented 2 days ago

Hi @sungengyi, thanks for the message! Could you try removing the setting completely? There are only two configurations that work here, 1) the setting is empty or 2) all extensions that Data Wrangler depends on have the same affinity number (1), and Data Wrangler extension is also in the config.

Please let me know if this works.

sungengyi commented 1 day ago

Hi @pwang347 I didn't have the "extensions.experimental.affinity" entity. It was added to my setting.json after looking at #129. I opened my settings.json by searching in preferences. I did not execute "Jupyter: Run in Dedicated Extension Host", though. I tried in the top bar where I select my Jupiter kernel, but no matching results are returned. I'm new to VSCode, where to execute the command? And where is the config file you mention?

pwang347 commented 1 day ago

Hi @sungengyi! To run a command you can open the palette with Ctrl+Shift+P (or Cmd+Shift+P on Mac), and then you can type the text below to find the command to open the user settings: Image

To be clear, this issue happens when the Jupyter/Python extensions are running in a different process than the Data Wrangler extension and one way this can happen is from the setting above. If you do not recall making any config or environment changes that can cause this, I would also recommend trying to uninstall Python, Jupyter and Data Wrangler and reinstall them.

If nothing above helps, could you please also share the steps you are taking when you encounter this issue? For example:

  1. Checked Jupyter extension is installed
  2. Checked Python extension is installed
  3. Open Parquet file with Data Wrangler
  4. Click "Connect using local Python interpreter"
  5. Message appears to install Python and Jupyter extensions
  6. Clicking install fails

Could you also share the version of the Python, Jupyter and Data Wrangler extensions?

Thanks!