Giter Site home page Giter Site logo

installing MODIStsp about modistsp HOT 38 CLOSED

ropensci avatar ropensci commented on May 23, 2024
installing MODIStsp

from modistsp.

Comments (38)

mnosshi avatar mnosshi commented on May 23, 2024

After manually installing the dependencies using install.packages(c("bitops", "data.table", "gdalUtils", "gWidgets", "hash", "plyr", "raster", "RCurl", "rgdal", "rgeos", "xts", "XML", "xml2", "sp", "stringr", "httr", "RJSONIO","chron","iterators", "digest","pacman"))

I am still not able to install MODIStsp
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘RGtk2’
In addition: Warning message:
package ‘MODIStsp’ was built under R version 3.2.5
Error: package or namespace load failed for ‘MODIStsp’

Thanks,
MN

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Hi,

could you please tell us which version of "R" you are using ?

In the meantime, for starters, could you please try updating all your packaes:

update.packages()

then, install the development version of devtools:

install.packages(c("devtools"))
devtools::install_github("hadley/devtools")
library(devtools)

, install gWidgetsRGtk2:

install.packages("gWidgetsRGtk2")
library(gWidgetsRGtk2)

Upon loading the package, an error window will probably appear. Don't worry! This is just signaling that libatk-1.0-0.dll is missing from your system. This is due to the fact that library "GTK+" is not yet installed on your system and needs to be installed. To do so, press "OK". A new window dialog window will appear, asking if you want to install "GTK+". Select "Install GTK" and then "OK" . Windows will download and install the GTK+ library. When it finishes, the RSession will be restarted and you should be ready to go!1

In case RStudio doesn't automatically restart after installing GTK+ or continuously asks to install GTK+ again, kill it form "Task Manager" (or restart the R session from RStudio "Session" menu), reload RStudio and the try to reload gWidgetsRGtk2. If it loads correctly, you should be ready to go: you should be able to install MODIStsp via:

library(devtools)
install_github("lbusett/MODIStsp", ref = "master")

If it still fails, try downloading the GTK+ bundle from:

http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip (OR http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip if on Win32)

, unzip the archive on a folder of your choice (e.g., C:\Program Files\GTK+), then add the path to the "bin" subfolder (e.g., C:\Program Files\GTK+\bin\ to your system PATH environment variable.

Restart your system and try loading again gWidgetsRGtk2. If it loads properly, you should be able to install MODIStsp via:

library(devtools)
install_github("lbusett/MODIStsp", ref = "master")

HTH.

Lorenzo

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

First of all, I'd suggest you to also update your "R" version to the latest available.

Then, you could try to install RGtk2 (and any other packages that are not installed automatically) from source, using, for example:

install.packages("RGtk2", type = "source")

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Those are instructions for Ubuntu Linux, so i doubt they work for Mac out of the box. What exactly happens when you try to install RGtk2 from source?

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

I meant: what happens when you issue the command:

install.packages("RGtk2", type = "source")

can you share the error message ?
Lorenzo

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Did you manage to install xquartz and gtk+?

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Only thing that comes into mind is to try to downgrade to a previous version of "R" . You could try with 3.3.2

I don't work on mac, so I don't know what homebrew exactly is, but a simple google search gives you this:

https://brew.sh/

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

The problem is that until you manage to install gwidgetsrgtk 2, MODIStsp will never work...

Did you already try to install also gWidgets2RGtk2 from source using "R CMD build" on the tarball of the package ?

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Sorry, I had a typo: you need "gWidgetsRGtk2"

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

I'm sorry, but I cannot help you much on this, since I don't t work on Mac. Maybe you could try to contact the authors of those packages to see if they can help.

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

Marcy-S avatar Marcy-S commented on May 23, 2024

Hi - So I actually had a similar problem and followed this thread up until I successfully installed MODIStsp (see #83 (comment)).

While I can't fully remember all my steps, I had similar error messages pretty much your whole thread. I'm on Sierra 10.12.5 and have R 3.4.1 - with items like CairoDevice and gWidgetsRGtk2, I went directly to CRAN.R and downloaded the older binary "OS X Mavericks" and then used r to install them in R Studio - the lib.loc being where the tgz file downloads.

library("gWidgetsRGtk2", lib.loc="~/Library/R/3.4/library")

I think that is all I ended up doing
I hope this helps.

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

So, the trick was just using the old binaries form "mavericks " ?

from modistsp.

Marcy-S avatar Marcy-S commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

@Marcy-S Good, and thanks for the hints.

Concerning the speed of the download, I'd suggest you to activate the "use aria2c" option within MODIStsp, if you didn't do that already (see section 3.3 of the package vignette)
.

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

@mnosshi

I get..
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘.gwindow’ for signature
‘"guiWidgetsToolkitRGtk2"’

This is a new one.... Can you please try to:

  1. Close and restart RStudio

  2. Load just the gWidgetsRGtk2 library

    library("gWidgetsRGtk2")

and tell me if it loads properly ?

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

Could the problem be with library(gWidgetstcltk)
when I load that I get this error:

Loading required package: tcltk

Error: package or namespace load failed for ‘tcltk’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libfontconfig.1.dylib
Referenced from: /usr/local/lib/libtk8.6.dylib
Reason: Incompatible library version: libtk8.6.dylib requires version 11.0.0 or later, but libfontconfig.1.dylib provides version 10.0.0
Error: package ‘tcltk’ could not be loaded

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Yes. with that it should definitely work. I tried it right now on my machine.

Maybe try to remove the package, close and reopen rtstudio and install again.

çLet me know.

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

no. You don't need that. Why ?

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

mnosshi avatar mnosshi commented on May 23, 2024

from modistsp.

lbusett avatar lbusett commented on May 23, 2024

Hi. Glad that you managed in the end!

Concerning the possibility to use already downloaded hdfs, you can definitely do that. Put all the images on one folder, and set the parameters in the gui as for a normal processing. set the option regarding the folder where original modis hdfs should be store to the folder where you have your hdfs and start the processing. MODIStsp will detect the available hdfs and skip the download phase.

If you have problems, feel free to open another issue (I'm closing this now).

from modistsp.

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.