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

Cannot install inside of Livebook Desktop #30

Open
samcdavid opened this issue Oct 25, 2023 · 0 comments
Open

Cannot install inside of Livebook Desktop #30

samcdavid opened this issue Oct 25, 2023 · 0 comments

Comments

@samcdavid
Copy link

When trying to install in Livebook desktop on Mac with the following command:

Mix.install(
  [
    {:sftp_client, "~> 1.4"}
  ],
  force: true
)

The following error is received:

== Compilation error in file lib/sftp_client/ssh_xfer_attr.ex ==
** (RuntimeError) error parsing file /Applications/Livebook.app/Contents/Resources/rel/vendor/otp/lib/ssh-5.0.1/src/ssh_xfer.hrl, got: {:error, :enoent}
    (elixir 1.15.7) lib/record/extractor.ex:84: Record.Extractor.read_file/2
    (elixir 1.15.7) lib/record/extractor.ex:50: Record.Extractor.extract_record/2
    lib/sftp_client/ssh_xfer_attr.ex:8: (module)
could not compile dependency :sftp_client, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile sftp_client --force", update it with "mix deps.update sftp_client" or clean it with "mix deps.clean sftp_client"

In diving deeper on this, it is because the vendor OTP that is installed with Livebook desktop does not include the src folder for ssh-5.0.1. Is this something that can be changed in a future version?

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

No branches or pull requests

1 participant