I am trying to run a very simple script from within VSCode.
from PIL import Image
im = Image.open("test.png")
im.show()
Whenever I try to do this, I get the following error:
No Protocol Specified.
display: unable to open X server `' @ error/display.c/DisplayImageCommand/411
This works in my normal terminal, alacritty. I am running an Arch Linux X11 system with BSPWM as my window manager. Please help!
Fixed by changing "terminal.integrated.inheritEnv": true
in settings.json
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.