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

'curl' call had nonzero exit status when trying to install dssrip #28

Open
Pra713 opened this issue May 5, 2023 · 2 comments
Open

'curl' call had nonzero exit status when trying to install dssrip #28

Pra713 opened this issue May 5, 2023 · 2 comments

Comments

@Pra713
Copy link

Pra713 commented May 5, 2023

Here is the full message I get when I try to install dssrip (I've made what I think is the most relevant errors bold):

Downloading GitHub repo eheisman/dssrip@main
✔ checking for file 'C:\Users\pb\AppData\Local\Temp\1\RtmpSWNvFC\remotes35b07559730a\eheisman-dssrip-97c7d77/DESCRIPTION' (348ms)
─ preparing 'dssrip':
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'dssrip_0.4.tar.gz'

Installing package into ‘C:/Users/pb/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)

  • installing source package 'dssrip' ...
    ** using staged installation
    ** R
    ** demo
    ** byte-compile and prepare package for lazy loading
    Warning messages:
    1: package 'rJava' was built under R version 4.2.3
    2: package 'xts' was built under R version 4.2.3
    3: package 'zoo' was built under R version 4.2.3
    4: package 'stringr' was built under R version 4.2.3
    5: package 'plyr' was built under R version 4.2.3
    6: package 'broom' was built under R version 4.2.3
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    Warning: package 'rJava' was built under R version 4.2.3
    Warning: package 'xts' was built under R version 4.2.3
    Warning: package 'zoo' was built under R version 4.2.3
    Warning: package 'stringr' was built under R version 4.2.3
    Warning: package 'plyr' was built under R version 4.2.3
    Warning: package 'broom' was built under R version 4.2.3
    [1] "C:\projects\dssrip\monolith\jar\hec-monolith-3.0.0-rc9.jar"
    [1] "https://www.hec.usace.army.mil/nexus/repository/maven-public/mil/army/usace/hec/hec-monolith/3.0.0-rc9/hec-monolith-3.0.0-rc9.jar"
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to open the file
    Warning: C:\projects\dssrip\monolith\jar\hec-monolith-3.0.0-rc9.jar: No such
    Warning: file or directory
    0 9.9M 0 14002 0 0 29326 0 0:05:56 --:--:-- 0:05:56 29415
    curl: (23) Failure writing output to destination
    Error: package or namespace load failed for 'dssrip':
    .onLoad failed in loadNamespace() for 'dssrip', details:
    call: download.file(remoteLocation, absoluteDestination, method = "curl")
    error: 'curl' call had nonzero exit status
    Error: loading failed
    Execution halted
    ERROR: loading failed
  • removing 'C:/Users/pb/AppData/Local/R/win-library/4.2/dssrip'
    Warning message:
    In i.p(...) :
    installation of package ‘C:/Users/pb/AppData/Local/Temp/1/RtmpSWNvFC/file35b06193e7c/dssrip_0.4.tar.gz’ had non-zero exit status
@eheisman
Copy link
Owner

eheisman commented May 8, 2023

@Pra713 - I keep thinking I fixed this issue, so my apologies that you are running into it.

It is trying to download the java dependencies to a folder called "C:\projects\dssrip\monolith\jar", that likely doesn't exist on your machine.

Make sure that "C:\projects\dssrip\monolith\jar" and "C:\projects\dssrip\monolith\lib" both exist on your computer and it should resolve this problem.

This is the same issue as #27

@Pra713
Copy link
Author

Pra713 commented May 9, 2023

@Pra713 - I keep thinking I fixed this issue, so my apologies that you are running into it.

It is trying to download the java dependencies to a folder called "C:\projects\dssrip\monolith\jar", that likely doesn't exist on your machine.

Make sure that "C:\projects\dssrip\monolith\jar" and "C:\projects\dssrip\monolith\lib" both exist on your computer and it should resolve this problem.

This is the same issue as #27

Thanks! That worked. I was able to install dssrip. But now, when I try to load the package, I get this error. I don't know if this is relevant, but I left out all the messages before this error, with the last message being: "Loading required package: broom". Everything looks good up until this error.

Error: package or namespace load failed for ‘dssrip’:
.onLoad failed in loadNamespace() for 'dssrip', details:
call: file(con, "r")
error: cannot open the connection
In addition: Warning messages:
1: package ‘xts’ was built under R version 4.2.3
2: package ‘plyr’ was built under R version 4.2.3
3: package ‘broom’ was built under R version 4.2.3
4: In file(con, "r") :
cannot open file './config/jar_config.json': No such file or directory

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

2 participants