Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromedriver can’t find libdbus and crashes #139547

Closed
ivan-timokhin opened this issue Sep 26, 2021 · 2 comments · Fixed by #139723
Closed

Chromedriver can’t find libdbus and crashes #139547

ivan-timokhin opened this issue Sep 26, 2021 · 2 comments · Fixed by #139723
Labels
0.kind: bug Something is broken

Comments

@ivan-timokhin
Copy link
Contributor

Describe the bug

chromedriver --version crashes with the following message

/nix/store/akd5fl2a2xz4rvmhvs347w93yhj2gg1h-chromedriver-94.0.4606.41/bin/chromedriver: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: No such file or directory

(on master, nixpkgs-unstable, nixos-unstable and nixos-21.05)

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell --pure -p chromedriver --command 'chromedriver --version'

Expected behavior

Chromedriver should report its version.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

git bisect points towards commit 8d8b451 (so I guess new version added dependency on dbus)

Notify maintainers

@cillianderoiste @marsam @primeos

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.64, NixOS, 21.05.3216.ebf419e737b (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(root): `"nixos-21.05.3339.056a3c1fae3"`
 - channels(ivan): `"nixpkgs-unstable-21.11pre317666.1a56d76d718"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- chromedriver
# a list of nixos modules affected by the problem
module:
@ivan-timokhin ivan-timokhin added the 0.kind: bug Something is broken label Sep 26, 2021
@compactcode
Copy link

I also encountered this issue. I couldn't come up with a workaround so switched my nix-shell from unstable back to 21.05.

@ivan-timokhin
Copy link
Contributor Author

I also encountered this issue. I couldn't come up with a workaround so switched my nix-shell from unstable back to 21.05.

The workaround I’ve settled on is to manually set LD_LIBRARY_PATH, like this:

LD_LIBRARY_PATH="$(nix-build '<nixos>' -A dbus.lib --no-out-link)/lib" chromedriver --version

SuperSandro2000 added a commit that referenced this issue Sep 28, 2021
…#139723)

* chromedriver: add dbus to libraries

It is apparently required since version 94.

Fixes issue #139547

* chromedriver: remove extraneous LD_LIBRARY_PATH in wrapProgram

wrapProgram already prepends passed value to the specified environment
variable; no need to specify it explicitly.

* chromedriver: add a package test checking the reported version

* Update pkgs/development/tools/selenium/chromedriver/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
github-actions bot pushed a commit that referenced this issue Sep 29, 2021
It is apparently required since version 94.

Fixes issue #139547

(cherry picked from commit 433b2bc)
Artturin pushed a commit that referenced this issue Sep 29, 2021
… LD_LIBRARY_PATH wrapping (#139838)

* chromedriver: add dbus to libraries

It is apparently required since version 94.

Fixes issue #139547

(cherry picked from commit 433b2bc)

* chromedriver: remove extraneous LD_LIBRARY_PATH in wrapProgram

wrapProgram already prepends passed value to the specified environment
variable; no need to specify it explicitly.

(cherry picked from commit 38ddfe7)

* chromedriver: add a package test checking the reported version

(cherry picked from commit 1106f4b)

* Update pkgs/development/tools/selenium/chromedriver/default.nix

(cherry picked from commit 852612e)

Co-authored-by: Ivan Timokhin <nixpkgs@ivan.timokhin.name>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants