NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.17k stars 13.45k forks source link

cdemu Fails to Run Due to ImportError #325191

Closed JoNilsson closed 1 month ago

JoNilsson commented 1 month ago

Describe the bug:

Attempting to run cdemu, but encounter an error which prevents successful run. when checking the status with command cdemu status results in an ImportError related to GLib. Below is the detailed traceback from the command.

Steps To Reproduce

  1. Try to run cdemu, does not run.
  2. Execute the command cdemu status in the terminal.

Output of command;

Traceback (most recent call last):
  File "/nix/store/ii25vcywqfbmkw3lzpr1fagj1ndxynwr-cdemu-client-3.2.5/bin/.cdemu-wrapped", line 33, in <module>
    from gi.repository import GLib
  File "/nix/store/40cddha2iiqzbqd6dpal3rlrgvb4p0yc-python3.11-pygobject-3.48.2/lib/python3.11/site-packages/gi/importer.py", line 133, in create_module
    raise ImportError('cannot import name %s, '
ImportError: cannot import name GLib, introspection typelib not found

Expected behavior

cdemu should build, install and run. The cdemu status command should execute without any errors, displaying the current status of cdemu.

Screenshots

n/a

Notify maintainers

Herwig Hochleitner aka @bendlas

Metadata

[nix-shell:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.30-rt30, NixOS, 24.05 (Uakari), 24.05.20240507.b211b39`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `""`
 - nixpkgs: `/nix/store/f0ssy3p6898x9k880l23mhd0fl6rvrb2-source`

bendlas commented 1 month ago
 - host os: `Linux 6.6.30-rt30, NixOS, 24.05 (Uakari), 24.05.20240507.b211b39`

I can't reproduce this issue on release-24.05 or unstable. It looks like you may be running an outdated version. Can you verify that your problem persists with the fixes from https://github.com/NixOS/nixpkgs/issues/311690, @JoNilsson?

JoNilsson commented 1 month ago
 - host os: `Linux 6.6.30-rt30, NixOS, 24.05 (Uakari), 24.05.20240507.b211b39`

I can't reproduce this issue on release-24.05 or unstable. It looks like you may be running an outdated version.

Excuse me, an outdated version of what? I'm running the most recent stable, and acquired cdemu from that channel.

The problem persists. This seems an issue with the package, not my system, or kernel.

image

bendlas commented 1 month ago
 - host os: `Linux 6.6.30-rt30, NixOS, 24.05 (Uakari), 24.05.20240507.b211b39`

I can't reproduce this issue on release-24.05 or unstable. It looks like you may be running an outdated version.

Excuse me, an outdated version of what? I'm running the most recent stable, and acquired cdemu from that channel.

Of nixpkgs. Are you really sure? I'm having doubts, given that:

IDK ... can you reproduce it in a fresh vm or something?

EDIT

You'll want to make sure that you are at least on https://github.com/NixOS/nixpkgs/commit/304f2767fab5ab26c0e7b3d17106d9a2cda73c65 from https://github.com/NixOS/nixpkgs/issues/311690 and https://github.com/NixOS/nixpkgs/pull/311959

You should be able to verify this by checking the version of you cdemu-daemon:

$ readlink -f $(which cdemu-daemon)
/nix/store/kf36zla942vx6qh861kzkw3w4kp5di8f-cdemu-daemon-3.2.6/bin/cdemu-daemon

It should be 3.2.6

bendlas commented 1 month ago

closing as a likely PEBKAC, please reopen if the problem is observed on a current revision of nixpkgs