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

Getting "The filename, directory name, or volume label syntax is incorrect." trying to run Python commands #16656

Closed
gitmadness opened this issue Aug 10, 2021 · 7 comments

Comments

@gitmadness
Copy link

Issue Type: Bug

Updated Python and ADS and now Python commands like %pip install Kqlmagic fail with "The filename, directory name, or volume label syntax is incorrect.".

Azure Data Studio version: azuredatastudio 1.31.1 (65fb22c, 2021-07-28T21:03:21.018Z)
OS version: Windows_NT x64 10.0.22000

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.85GB (55.06GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
@Charles-Gagnon
Copy link
Contributor

@lucyzhang929 Could you check this out?

@lucyzhang929
Copy link
Contributor

Hi @gitmadness, I am able to repro and will look into the issue. In the meantime, could you try using the following to install Kqlmagic?

import sys
!{sys.executable} -m pip install Kqlmagic

@gitmadness
Copy link
Author

@lucyzhang929, the below command works

import sys
!{sys.executable} -m pip install Kqlmagic

@gitmadness
Copy link
Author

@lucyzhang929, just to clarify, do you plan to restore the original behavior or do I need to add "import sys..." everywhere?

@lucyzhang929
Copy link
Contributor

@gitmadness I will investigate the issue for our September release but in the meantime I would suggest using the code snippet above.

@gitmadness
Copy link
Author

gitmadness commented Aug 12, 2021 via email

@lucyzhang929
Copy link
Contributor

It looks like this is a known issue with IPython 7.26: ipython/ipython#13084. You can mitigate the issue by downgrading to 7.25.

To install IPython 7.25 in ADS, open the Manage Packages wizard,
Screen Shot 2021-08-12 at 8 03 27 AM

search for IPython and choose 7.25 in the package version dropdown. You may need to restart ADS after the installation is complete.
Screen Shot 2021-08-12 at 8 03 45 AM

I will close this issue for now. Feel free to re-open if you have any other questions!

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