Comments (38)
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.
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.
from modistsp.
from modistsp.
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.
from modistsp.
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.
from modistsp.
I meant: what happens when you issue the command:
install.packages("RGtk2", type = "source")
can you share the error message ?
Lorenzo
from modistsp.
from modistsp.
from modistsp.
from modistsp.
from modistsp.
Did you manage to install xquartz and gtk+?
from modistsp.
from modistsp.
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:
from modistsp.
from modistsp.
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.
from modistsp.
Sorry, I had a typo: you need "gWidgetsRGtk2"
from modistsp.
from modistsp.
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.
from modistsp.
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.
So, the trick was just using the old binaries form "mavericks " ?
from modistsp.
from modistsp.
from modistsp.
@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.
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:
-
Close and restart RStudio
-
Load just the gWidgetsRGtk2 library
library("gWidgetsRGtk2")
and tell me if it loads properly ?
from modistsp.
from modistsp.
from modistsp.
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.
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.
from modistsp.
no. You don't need that. Why ?
from modistsp.
from modistsp.
from modistsp.
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)
- MODIStsp GUI issues HOT 6
- KNDVI (expression) - MODIStsp HOT 3
- bounding box does not work HOT 1
- Error in .local(.Object, ...) when trying to use MODIStsp_extract HOT 2
- M*D17A3H server change HOT 2
- Update products HOT 5
- Problems of processing MCD19A1 and MCD19A3 HOT 1
- Timeout HOT 1
- Timeout MODIS server error when downloading HOT 4
- Problem with GUI in GitHub version 2.0.6.9000 of MODIStsp HOT 2
- Connection refused HOT 2
- How to download the NDVI-MODIS product of the version 6.1 using the package MODIStsp v.2.0.6 HOT 2
- The package doesn't work on the new Spectral Indexes I added HOT 1
- [SOLVED] MODIStsp package is showing Username and password invalid even when the same credentials are working for NASA earth data search website HOT 20
- Missing dependency for pkgdown HOT 2
- Fix image location for pkgdown HOT 7
- Call for maintainer HOT 9
- Issues related to product version update in #238 HOT 23
- Spatial packages update HOT 2
- Error: http server seems to be down! Please try again later. Aborting! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modistsp.