Coder Social home page Coder Social logo

wf_request problem about ecmwfr HOT 15 CLOSED

bluegreen-labs avatar bluegreen-labs commented on August 27, 2024
wf_request problem

from ecmwfr.

Comments (15)

eliocamp avatar eliocamp commented on August 27, 2024

@vegvarizs, There's a small but in the current version when your system doesn't support keyrings. See here: #46
You can try installing [this](https://github.com/khufkens/ecmwfr/pull/47] pull request version with

remotes::install_github("khufkens/ecmwfr", ref = remotes::github_pull(47))

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

Thanks, I have installed it, but the same problem prevails. The libsodium is also installed on my Ubuntu. Still experiencing.

from ecmwfr.

khufkens avatar khufkens commented on August 27, 2024

Have you used keyring package in another context so the environmental variables are mixed up?

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

Yes! Should I remove it and reinstall ecmwfr?

from ecmwfr.

khufkens avatar khufkens commented on August 27, 2024

Just try, but be sure to reinstall keyring as well.

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

Done: the warning messages about the backend environment disappeared, but the message:

Error in FUN(X[[i]], ...) : argument is missing, with no default
Calls: sourceWithProgress ... eval -> eval -> wf_request -> which -> vapply -> FUN
Execution halted

is still there.
I am using this request:
wf_request(request = request, user = uid, transfer = TRUE, job_name = "vzs.test", path = ".")

from ecmwfr.

khufkens avatar khufkens commented on August 27, 2024

Drop the . from the job name and use an explicit path name. Then try again. I don't think this is an authentication error.

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

from ecmwfr.

khufkens avatar khufkens commented on August 27, 2024

Could you run the example code as listed in the documents for me and provide all the code as you run it. (see https://khufkens.github.io/ecmwfr/articles/cds_vignette.html)

Also provide the system you use both in terms of software and hardware. With just a vague error message and no knowledge of what you run I can't do much but guess toward the problem.

# Specify the data set
request <- list("dataset"        = "reanalysis-era5-pressure-levels",
                "product_type"   = "reanalysis",
                "variable"       = "temperature",
                "pressure_level" = "850",
                "year"           = "2000",
                "month"          = "04",
                "day"            = "04",
                "time"           = "00:00",
                "area"           = "70/-20/30/60",
                "format"         = "netcdf",
                "target"         = "era5-demo.nc")

# Start downloading the data, the path of the file
# will be returned as a variable (ncfile)
ncfile <- wf_request(user = "2088", # <-- your USER ID HERE
                      request = request,   
                      transfer = TRUE,  
                      path = "~",
                      verbose = FALSE)

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

from ecmwfr.

khufkens avatar khufkens commented on August 27, 2024

You run a rather old version of R, lots changed between 3.4 and 3.6.

I would upgrade and try again. This seems like a likely cause as my unit tests (using the code above) come out clean on 3.6. Previously they ran on 3.4 but since a little while it is 3.6 by default.

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

from ecmwfr.

eliocamp avatar eliocamp commented on August 27, 2024

I installed R 3.4.4 and using the CRAN version of the package I didn't get any error. But I can reproduce using the development version. I'll look into it.

from ecmwfr.

eliocamp avatar eliocamp commented on August 27, 2024

There! It was a trailing comma in one function call. It seems that R 3.4.4 treats it as expecting another argument while R 3.6 doesn't.

from ecmwfr.

vegvarizs avatar vegvarizs commented on August 27, 2024

from ecmwfr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.