Open albop opened 3 years ago
If even blender --python
exits with this error in the normal terminal, I don't know what I can do about it unfortunately...
That might be a bug in Blender, because you can reproduce it without vscode.
Sorry, maybe I wasn't super clear. It does work from a system terminal but not from vscode's terminal which is used by your extension. The error message makes me think complicated (for me) X11/wayland access right. I"m trying several combinations (server, video driver) to see whether I can provide better information.
Small update:
DISPLAY
property is not set up properly within the integrated terminal. I have a workaround for my machine: I've added to settings.json
"terminal.integrated.env.linux": {
"DISPLAY": ":0"
}
and then blender launches just fine. I assume it is not the right way to fix it though. Some graphical applications seem to start just fine from the integrated-terminal, some don't.
I'm on Ubuntu 20.04 in the default wayland session, with Blender 2.82 installed via apt (same result with a snap), and vscode-insiders 1.50 . When running command "Blender Start", I get
Pasting the command in a regular system terminal does launch Blender.
On the other hand pasting the command "blender --python" in the vscode terminal already raises the same error "Unable to open a display"