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

Error while running MLED #20

Open
Abisoyesam opened this issue Aug 5, 2024 · 24 comments
Open

Error while running MLED #20

Abisoyesam opened this issue Aug 5, 2024 · 24 comments

Comments

@Abisoyesam
Copy link

I keep getting the error below whenever I run the MLED_hourly.R file. Meanwhile, I use the new version of R and RStudio. Could you tell me how I fix it?

image

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 5, 2024

Thanks for posting here. Please try running the following, and then re-run the MLED_hourly.R file:

install.packages("devtools")
library(devtools)
devtools::install_github("Pakillo/rgis")

Please let me know.

@AbisoyeAkinloye
Copy link

I tried to use my Ubuntu machine for M-LED, here is the error I got. Kindly help.

Screenshot from 2024-08-05 13-50-39

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 5, 2024

Which version of R are you using? In general, I reccommend installing R 4.2.3, as the model is currently developed and tested under this version.

@Abisoyesam
Copy link
Author

I use R 4.4.1. I will downgrade the version and install the recommended R4.2.3. Does the RStudio version matter also?

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 5, 2024

I think the RStudio version makes little difference, however I fully agree that it is a good idea to downgrade as there seem to be some package incompatiblity with your current R version. Please keep me posted, thanks!

@Abisoyesam
Copy link
Author

I have already downloaded the recommended R version. What version of RStudio would you recommend?

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 5, 2024

RStudio
2023.03.0 Build 386

@Abisoyesam
Copy link
Author

The packages are currently being installed as I execute code lines 25 to 75. The installation is in progress.

So, for my Ubuntu machine, the R version is 4.1.2. There is a need to upgrade it to R 4.2.3, even though the errors are different?

@Abisoyesam
Copy link
Author

Here is the error once I run line 25 - 75 MLED_hourly.R. I have downgraded R and RStudio to the recommended version.

image

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 5, 2024

Try to restart your R session and re-run the command. Do you also have access to a Windows OS machine?

@Abisoyesam
Copy link
Author

@Abisoyesam and @AbisoyeAkinloye is the same person with different computers (Windows & Ubuntu). I have completely switched to Windows and below is the error I keep encountering even after i downgraded the R and RStudio on my Windows OS machine.

image

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 6, 2024

That is really frustrating, I am sorry to hear.

Please try the following install.packages("future") and let me know about the outcome

@Abisoyesam
Copy link
Author

install.packages("future")

future failed to install.

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 7, 2024

Try devtools::install_github("HenrikBengtsson/future")

@Abisoyesam
Copy link
Author

image

And once I click No from the prompt, I get the below error.

image

Should I try clicking Yes?

@SumayaM84
Copy link

SumayaM84 commented Aug 9, 2024

Good day Im having the same challenges as Abisoyesam to run R
Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'future'

  • removing 'C:/Users/sumay/AppData/Local/R/win-library/4.2/future'

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 9, 2024

image

And once I click No from the prompt, I get the below error.

image

Should I try clicking Yes?

Yes!

@giacfalk
Copy link
Collaborator

giacfalk commented Aug 9, 2024

@SumayaM84: could you please try the following:


install.packages("devtools")
library(devtools)
devtools::install_github("HenrikBengtsson/future")

@Abisoyesam
Copy link
Author

image
And once I click No from the prompt, I get the below error.
image
Should I try clicking Yes?

Yes!

image

How do I resolve this, please? I'd appreciate your swift response so as to meet up with the module task. Thank you.

@SumayaM84
Copy link

SumayaM84 commented Aug 13, 2024

I was able to resolve the issues and errors I was getting regarding rgal, rgis, future packages and their dependencies.
Should you be having similar issues you may want to have the following as your setup

My environment

After running rtools and or downloading R-4.2.3 Go to Tools >>> Global Options >>> R Sessions/R Versions - Ensure you see this version or click change to select this version if you have two versions running of R

After downloading rgdal remember the location you have downloaded it to then in RStudio, go to Tools >>> Install Packages >>> Select Install from Package Archive File (.zip; .tar.gz)

The above setup did resolve the earlier issues I reported and subsequently the same issues you seem to be having.

@Abisoyesam
Copy link
Author

I was able to resolve the issues and errors I was getting regarding rgal, rgis, future packages and their dependencies. Should you be having similar issues you may want to have the following as your setup

My environment

After running rtools and or downloading R-4.2.3 Go to Tools >>> Global Options >>> R Sessions/R Versions - Ensure you see this version or click change to select this version if you have two versions running of R

After downloading rgdal remember the location you have downloaded it to then in RStudio, go to Tools >>> Install Packages >>> Select Install from Package Archive File (.zip; .tar.gz)

The above setup did resolve the earlier issues I reported and subsequently the same issues you seem to be having.

Thank you! It works...

@Abisoyesam
Copy link
Author

I don't know if you encountered this as well.

image

whereas I could find the file in the local file.

image

@SumayaM84
Copy link

I don't know if you encountered this as well.

image

whereas I could find the file in the local file.

image

I have unfortunately not experienced this challenge.

@giacfalk
Copy link
Collaborator

I don't know if you encountered this as well.

image

whereas I could find the file in the local file.

image

Please check that you inserted correctly the path to your mled_database folder! It is always the issue in cases of "file not found" errors! @Abisoyesam

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

4 participants