sftp_client icon indicating copy to clipboard operation
sftp_client copied to clipboard

Cannot install inside of Livebook Desktop

Open samcdavid opened this issue 1 year ago • 0 comments

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?

samcdavid avatar Oct 25 '23 17:10 samcdavid