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

snowsql fails with missing libcrypto library #199622

Open
padhia opened this issue Nov 5, 2022 · 4 comments
Open

snowsql fails with missing libcrypto library #199622

padhia opened this issue Nov 5, 2022 · 4 comments

Comments

@padhia
Copy link

padhia commented Nov 5, 2022

Describe the bug

snowsql fails with an error that a dependency is missing

Steps To Reproduce

Steps to reproduce the behavior:

  1. allow unfree packages: export NIXPKGS_ALLOW_UNFREE=1
  2. run: nix run nixpkgs#snowsql --impure -- --accountname unknown --username alice <<<"select current_user()"
  3. supply any text when prompted to enter a password

Expected behavior

The command should either succeed when supplied with valid parameters or end with an error message to the effect that the parameters aren't valid.

Screenshots

The following error is not one of the expected error:

The library libcrypto could not be found
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.

Additional context

snowsql runs without the above error when binutils is also installed.

snowsql is likely written in Python using snowflake-connector-python which had a known bug as described in #176917 .

Additional reference: dbt-labs/dbt-core#3366 (comment)

Notify maintainers

@andehen

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 6.0.3, NixOS, 22.11 (Raccoon), 22.11.20221025.f994293`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(padhia): `"home-manager"`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@andehen
Copy link
Contributor

andehen commented Nov 7, 2022

Thanks for reporting this! I'll take a look at it when I have time.

@nathanruiz
Copy link
Contributor

Fixed by #217234

@padhia
Copy link
Author

padhia commented Mar 11, 2023

Unfortunately, this bug isn't fixed yet. I still get the same error:

~❯ export NIXPKGS_ALLOW_UNFREE=1                                                                                                                                                 ~took 13s ❯
~❯ nix run nixpkgs#snowsql --impure -- --accountname unknown --username alice <<<"select current_user()"                                                                                  ~❯
Password:
The library libcrypto could not be found
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!

@padhia
Copy link
Author

padhia commented May 26, 2023

If anyone else runs into this problem, I have this flake that seems to have fixed this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants