!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

406 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)94 Servers

Load older messages


SenderMessageTime
1 Feb 2024
@ashvith:matrix.org@ashvith:matrix.org Would this be a right place to ask about GTK issues on foreign distro? I am not able to run Setzer on Guix System - here's the issue I've created on Github. 09:05:04
@ashvith:matrix.org@ashvith:matrix.orgInterestingly, this app works only when I run it as root, but then, I cannot access the fonts I want to use.09:05:55
@ashvith:matrix.org@ashvith:matrix.orgI suspect that this could be either some issue related to PyGObject or WebKit.09:09:06
@jtojnar:matrix.orgJan Tojnar
In reply to @ashvith:matrix.org
Would this be a right place to ask about GTK issues on foreign distro? I am not able to run Setzer on Guix System - here's the issue I've created on Github.
Sounds like environment inconsistency. Please clarify where is setzer coming from and what the dev environment is.
13:16:54
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
Sounds like environment inconsistency. Please clarify where is setzer coming from and what the dev environment is.

I'm using Nix flakes to access the application. My configuration looks something like this:

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
  outputs = inputs@{ flake-parts, ... }:
  flake-parts.lib.mkFlake { inherit inputs; } {
   systems = [
     "x86_64-linux" "x86_64-darwin"
     "aarch64-linux" "aarch64-darwin"
    ];
    perSystem = { config, self', inputs', pkgs, system, ... }: {
      devShells.default = with pkgs; mkShell {
        buildInputs = [
          nodejs_20 setzer
          nodePackages.pnpm
          (pkgs.texlive.combine {
            inherit (pkgs.texlive)
            scheme-small enumitem nopageno
            pbox tokcycle censor multirow
            subfiles adjustbox ccicons
            chronosys colophon titlesec;
          })
        ];
      }; 
    };
  };
}

This was working fine on a Nix system, which is no longer accessible, as my main laptop is broken, but it won't work properly on a Guix system that I am currently using.

13:19:59
@ashvith:matrix.org@ashvith:matrix.org Here's how it used to work: I would run nix develop, and then access the setzer app from there. 13:20:44
@jtojnar:matrix.orgJan TojnarThat looks fine. Maybe the environment contamination comes from ambient environment then. 13:25:45
@jtojnar:matrix.orgJan TojnarOr it is some other issue. 13:26:01
@ashvith:matrix.org@ashvith:matrix.org * Here's how it used to work: I would run nix develop, and then access the setzer app from the CLI. 13:26:33
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
That looks fine. Maybe the environment contamination comes from ambient environment then.
Interestingly, gnome-latex seems to work fine. When I try adding python310Packages.pygobject3 to build input, the problem shifts to cairo having issues.
13:29:03
@ashvith:matrix.org@ashvith:matrix.org

Here's the log:

$ setzer 

(process:29915): Gtk-WARNING **: 19:00:13.081: Locale not supported by C library.
	Using the fallback 'C' locale.
Fontconfig error: Cannot load default config file: No such file: (null)
Traceback (most recent call last):
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/bin/..setzer-wrapped-wrapped", line 28, in <module>
    from setzer.workspace.workspace import Workspace
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/workspace/workspace.py", line 26, in <module>
    import setzer.document.preview.preview as preview
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/document/preview/preview.py", line 31, in <module>
    import setzer.document.preview.preview_presenter as preview_presenter
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/document/preview/preview_presenter.py", line 21, in <module>
    import cairo
  File "/nix/store/m69f7w3q03ihr9a34ajbm872k2na5xr8-python3.10-pycairo-1.24.0/lib/python3.10/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
    ^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'cairo._cairo'
13:30:46
@ashvith:matrix.org@ashvith:matrix.org However, adding python310Packages.pycairo to build input did not fix this issue. 13:31:31
@ashvith:matrix.org@ashvith:matrix.org * However, adding python310Packages.pycairo to build input did not fix this issue. Setzer only works on root, but all the fonts are unavailable. 13:32:40
@jtojnar:matrix.orgJan TojnarLooking at the error some more, it indeed appears to be contamination. It tries to load libs from guix store13:32:47
@abmantis:abcosta.com@abmantis:abcosta.com left the room.23:35:35
2 Feb 2024
@shivayspec:matrix.orgSpecx joined the room.07:11:02
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
Looking at the error some more, it indeed appears to be contamination. It tries to load libs from guix store
Looks like the store was installing itself in the home directory and not the root location at /nix/var/nix/profiles/per-user/.
07:46:42
@ashvith:matrix.org@ashvith:matrix.orgI'm still not able to make it work properly because I messed up the Guix profile now.07:47:09
@tanja-6584:matrix.orgTanja (Old; I'm now @tanja:catgirl.cloud) joined the room.17:48:06
3 Feb 2024
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
Looking at the error some more, it indeed appears to be contamination. It tries to load libs from guix store
Looks like this was the reason all along. Well, I tried adding libcxx to flakes, but it still does not fix this issue?
03:11:12
@sandppatel:matrix.orgsandptel joined the room.06:04:43
@jtojnar:matrix.orgJan Tojnar Ashvith: adding it to the shell will not override more forceful environment variables. Look at env if there are LD_LIBRARY_PATH or something 10:41:26
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
Ashvith: adding it to the shell will not override more forceful environment variables. Look at env if there are LD_LIBRARY_PATH or something
I've tried that using shellHooks, but Guix stores are given priority. I think PATH had a bunch of Nix and Guix paths mixed, which is probably messing this up.
12:53:54
@jtojnar:matrix.orgJan Tojnar Ashvith: well, even if it is given priority, you should be able to unset those variables in shellHook 14:01:47
4 Feb 2024
@bjth:matrix.orgbjth changed their profile picture.11:31:11
@chocolatestrawberry:matrix.org@chocolatestrawberry:matrix.org left the room.19:46:25
5 Feb 2024
@ThorHop:matrix.org@ThorHop:matrix.org removed their profile picture.22:44:21
@ThorHop:matrix.org@ThorHop:matrix.org removed their display name IdeallyYes.22:46:03
@ThorHop:matrix.org@ThorHop:matrix.org left the room.22:46:51
6 Feb 2024
@galaxy-nova:matrix.org@galaxy-nova:matrix.org left the room.00:51:08

Show newer messages


Back to Room ListRoom Version: 6