Closed drewrisinger closed 4 years ago
Thanks. Is Qt on WSL2 able to use the GUI without a X server?
I'll get back to you on that. Still testing it. Mostly just using it to test/compile Nix packages locally.
Also forgot to mention, but this is the tracking issue on Nixpkgs for these sorts of errors: https://github.com/NixOS/nixpkgs/issues/65399
Ok, after a little bit of hackery/annoying workarounds: I have ARTIQ running on Nix on WSL2 (Windows Subsystem for Linux), with GUI dashboard shown via X11 on Windows host. So no @sbourdeauducq re w/o X server.
Basic steps (a few from memory, might have missed minor details):
wsl.exe --list --verbose
, should show version==2.xterm
in WSL (install xterm
if needed via sudo apt install xterm
)
d. If firewall rules aren't working (I tried for a while and couldn't get them working), then follow instructions here: https://github.com/cascadium/wsl-windows-toolbar-launcher#firewall-rules. If still not working, disable Windows Firewall for the WSL network adapter ONLY (usual warnings about disabling firewalls apply here). Follow powershell instructions at end of previous link section.artiq_master
(other arguments as necessary)
c. Shell 2: artiq_dashboard
. ARTIQ dashboard should launch on Windows desktop in a few seconds.@drewrisinger Thanks for the info!
Bug Report
One-Line Summary
ARTIQ GUI apps on Nix should be wrapped with
wrapQtAppsHook
.Issue Details
ARTIQ GUI apps have the following errors when run from command-line on WSL (Ubuntu on Win 2004, using Nix). I would report in https://git.m-labs.hk, but registering accounts are locked there. From Nix, you need to wrap the binaries with
wrapQtAppsHook
: https://nixos.org/nixpkgs/manual/#sec-language-qtNOTE: I tried this on Ubuntu 18.04 (native), and didn't have this same error message.
Steps to Reproduce
test-artiq-qt.nix
:pkgs.mkShell { buildInputs = [ (pkgs.python3.withPackages(ps: [artiq-full.artiq])) ]; }
WARNING:dashboard:quamash.QEventLoop:Event callback failed: [WinError 1225] The remote computer refused the network connection [... traceback ...]
Message on Ubuntu 18.04 (Native):
Resolution
Modify this file: https://git.m-labs.hk/M-Labs/nix-scripts/src/commit/cc00cfc1a8bf16b6a7e25b2c8a1187b45c8efb3b/artiq-fast/pkgs/artiq.nix
Should add something like:
Your System