Error in method(obj, ...) R3.4.0 RSTUDIO 1.0.143

1,195 views
Skip to first unread message

Ramón Granados-Peña

unread,
May 15, 2017, 7:57:01 AM5/15/17
to rattle-users
platform       x86_64-pc-linux-gnu        
arch           x86_64                     
os             linux-gnu                  
system         x86_64, linux-gnu          
status                                    
major          3                          
minor          4.0                        
year           2017                       
month          04                         
day            21                         
svn rev        72570                      
language       R                          
version.string R version 3.4.0 (2017-04-21)
nickname       You Stupid Darkness

I got this message when i try to run Rattle()

> library(rattle)
Rattle: A free graphical interface for data mining with R.
Versión 4.1.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Escriba 'rattle()' para agitar, sacudir y  rotar sus datos.
> rattle()
Error in method(obj, ...) : Nombre de elemento raíz no válido: «requires»

> rattleInfo()
Rattle: version 4.1.0 CRAN 4.1.0
R: version 3.4.0 (2017-04-21)

Sysname: Linux
Release: 4.8.0-51-generic
Version: #54~16.04.1-Ubuntu SMP Wed Apr 26 16:00:28 UTC 2017
Nodename: user
Machine: x86_64
Login: unknown
User: user
Effective_user: user

Installed Dependencies
arules: version 1.5-2
arulesViz: version 1.2-1
bitops: version 1.0-6
cluster: version 2.0.6
colorspace: version 1.3-2
descr: version 1.1.3
doBy: version 4.5-15
dplyr: version 0.5.0
ellipse: version 0.3-8
foreign: version 0.8-68
fpc: version 2.1-10
gdata: version 2.17.0
ggdendro: version 0.1-20
ggplot2: version 2.2.1
gplots: version 3.0.1
gridExtra: version 2.2.1
gtools: version 3.5.0
hmeasure: version 1.0
kernlab: version 0.9-25
Matrix: version 1.2-10
nnet: version 7.3-12
odfWeave: version 0.8.4
plyr: version 1.8.4
pmml: version 1.5.2
RColorBrewer: version 1.1-2
readxl: version 1.0.0
reshape: version 0.8.6
RGtk2Extras: version 0.6.1
rpart: version 4.1-11
SnowballC: version 0.5.1
stringr: version 1.2.0
survival: version 2.41-3
verification: version 1.42
wskm: version 1.4.28
XML: version 3.98-1.7

That was 39 packages.

Graham Williams

unread,
May 15, 2017, 8:23:56 AM5/15/17
to rattle-users
Thanks for the report. Could you try

 > install.packages("rattle", repos="http://rattle.togaware.com")

and see if that fixes the issue. Thanks.

Regards,
Graham

--
You received this message because you are subscribed to the Google Groups "rattle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users+unsubscribe@googlegroups.com.
To post to this group, send email to rattle...@googlegroups.com.
Visit this group at https://groups.google.com/group/rattle-users.
For more options, visit https://groups.google.com/d/optout.

Graham Williams

unread,
May 16, 2017, 7:51:12 AM5/16/17
to rattle-users
I have received a few of these now.

I am not yet able to replicate the problem.

If anyone knows the cause or can recall what changed on their system prior to the issue arising, please share. Thanks.

The English version of the error is

Error in method(obj, ...) : Invalid root element: 'requires'

It would be useful to know if it is different with the latest version of Rattle:


 > install.packages("rattle", repos="http://rattle.togaware.com")

Thanks.


On Monday, May 15, 2017 at 8:23:56 PM UTC+8, Graham Williams wrote:
Thanks for the report. Could you try

 > install.packages("rattle", repos="http://rattle.togaware.com")

and see if that fixes the issue. Thanks.

Regards,
Graham

Michael Chimney

unread,
May 16, 2017, 10:00:27 PM5/16/17
to rattle...@googlegroups.com

Graham - I get the same error message running the latest versions of R and rattle installed from CRAN.  I was unable to install rattle directly from togaware.com

 

--

You received this message because you are subscribed to the Google Groups "rattle-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users...@googlegroups.com.

image003.jpg

陳政威

unread,
May 17, 2017, 2:19:15 AM5/17/17
to rattle-users
Hi Graham
I got this error too......
there is my rattle information

Thank you very much!
--------------------------------------------------------------------------------------------------------------------
R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

> library(rattle)
Rattle: A free graphical interface for data mining with R.
Version 5.0.10 Copyright (c) 2006-2017 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
> rattle()
Error in method(obj, ...) : ?⊥???辣嚗€equires??> rattleInfo()
Rattle: version 5.0.10 CRAN 4.1.0
R: version 3.4.0 (2017-04-21)

Sysname: Windows
Release: >= 8 x64
Version: build 9200
Nodename: WESTEN-X556UB
Machine: x86-64
Login: Westen Chen
User: Westen Chen
Effective_user: Westen Chen

Installed Dependencies
biclust: version 1.2.0
bitops: version 1.0-6
cluster: version 2.0.6
colorspace: version 1.3-2
dplyr: version 0.5.0
e1071: version 1.6-8
ellipse: version 0.3-8
foreign: version 0.8-67 upgrade available 0.8-68
gdata: version 2.17.0
gplots: version 3.0.1
gridExtra: version 2.2.1
gtools: version 3.5.0
Matrix: version 1.2-9 upgrade available 1.2-10
nnet: version 7.3-12
plyr: version 1.8.4
RColorBrewer: version 1.1-2
readxl: version 1.0.0
reshape: version 0.8.6
ROCR: version 1.0-7
RODBC: version 1.3-15
rpart: version 4.1-11
rpart.plot: version 2.1.2
stringr: version 1.2.0
survival: version 2.41-3
timeDate: version 3012.100
tm: version 0.7-1

That was 27 packages.

Update the packages with either of the following commands:

  > install.packages(c("foreign", "Matrix"))

  > install.packages(rattleInfo())

Alternatively update all installed packages:

  > update.packages()

>  

Gumma Ibrahim

unread,
May 17, 2017, 2:19:15 AM5/17/17
to rattle-users
I have the same problem. I have been using Rattle for the last three weeks, and it was working fine. The problem happened yesterday after I updated some packages. I cannot recall which packages ..

I am running Rattle on R v.3.4 (64 bit) - Windows 10

Regards,

Gumma

Ramón Granados-Peña

unread,
May 17, 2017, 2:19:15 AM5/17/17
to rattle-users
I solved

Maybe no the best way, but works!


1) libgtk2.0-dev libxml2-dev (Directly from packages.ubuntu.com/)
2) R-CRAN (Directly from https://cran.r-project.org/bin/linux/ubuntu/xenial/)
3) Install.packages("rattle", dependencies=TRUE)
4) Rattle run!!
4) Some packages gave me "error" and there were solved individually


Graham Williams

unread,
May 17, 2017, 2:38:56 AM5/17/17
to rattle-users
Thanks for the update Ramón.

Given this is occurring on both Windows and Linux (and maybe Mac?) I suspect an R package (CRAN) issue.

I'll continue to investigate and welcome anyone responding with insight.


Regards,
Graham

--
You received this message because you are subscribed to the Google Groups "rattle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users+unsubscribe@googlegroups.com.

Yogesh Lalwani

unread,
May 17, 2017, 5:46:34 PM5/17/17
to rattle-users
Just did what Ramon said...still getting the error.

Running Windows 7

Installed R 3.4
Latest RStudio
Installed Rattle an hour ago
Updated all dependencies for Rattle

Here is the error...
> library(rattle)
Rattle: A free graphical interface for data mining with R.
Version 4.1.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
> rattle()
Error in method(obj, ...) : Invalid root element: 'requires'

Here is the RattleInfo
Installed Dependencies
ada: version 2.0-5
amap: version 0.8-14
arules: version 1.5-2
arulesViz: version 1.2-1
biclust: version 1.2.0
bitops: version 1.0-6
cairoDevice: version 2.24
cba: version 0.2-19
cluster: version 2.0.6
colorspace: version 1.3-2
corrplot: version 0.77
descr: version 1.1.3
doBy: version 4.5-15
dplyr: version 0.5.0
e1071: version 1.6-8
ellipse: version 0.3-8
fBasics: version 3011.87
foreign: version 0.8-67 upgrade available 0.8-68
fpc: version 2.1-10
gdata: version 2.17.0
ggdendro: version 0.1-20
ggplot2: version 2.2.1
gplots: version 3.0.1
gridExtra: version 2.2.1
gtools: version 3.5.0
gWidgetsRGtk2: version 0.0-83
hmeasure: version 1.0
Hmisc: version 4.0-3
kernlab: version 0.9-25
Matrix: version 1.2-9 upgrade available 1.2-10
mice: version 2.30
nnet: version 7.3-12
odfWeave: version 0.8.4
party: version 1.2-3
playwith: version 0.9-54
plyr: version 1.8.4
pmml: version 1.5.2
psych: version 1.7.5
randomForest: version 4.6-12
RColorBrewer: version 1.1-2
readxl: version 1.0.0
reshape: version 0.8.6
rggobi: version 2.1.21
RGtk2Extras: version 0.6.1
ROCR: version 1.0-7
RODBC: version 1.3-15
rpart: version 4.1-11
rpart.plot: version 2.1.2
SnowballC: version 0.5.1
stringr: version 1.2.0
survival: version 2.41-3
timeDate: version 3012.100
tm: version 0.7-1
verification: version 1.42
wskm: version 1.4.28
XML: version 3.98-1.7

That was 57 packages.

Update the packages with either of the following commands:

  > install.packages(c("foreign", "Matrix"))

  > install.packages(rattleInfo())

Alternatively update all installed packages:

  > update.packages()

Regards,
Graham

To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users...@googlegroups.com.

Zhang Liyuan

unread,
May 17, 2017, 5:46:34 PM5/17/17
to rattle-users
Hello,

I met the same problem installing Rattle on R 3.4.0 in Windows 64. It shows: "Error in method(obj, ...) : Invalid root element: 'requires'".
I installed all the dependencies required by Rattle in CRANS today.

Liyuan

Ramón Granados-Peña

unread,
May 17, 2017, 5:46:34 PM5/17/17
to rattle-users
i had to install all dependencies, using 1) "install.packages("rattle", dep=TRUE), then update rattle 2) install.packages("rattle", repos="http://rattle.togaware.com") 3) check if you have all dependencies, e..g : RGtk2 ONLY works with R (≥ 3.4.0) i have to install independently "install.packages("RGtk2", dep=TRUE)

陳政威

unread,
May 17, 2017, 5:46:44 PM5/17/17
to rattle-users
I sorry, I don't have any idea about Ramon said @@
What can I do on windows??? @@ 

David Winsemius

unread,
May 17, 2017, 6:20:35 PM5/17/17
to rattle...@googlegroups.com

> On May 17, 2017, at 8:37 AM, 陳政威 <wayn...@gmail.com> wrote:
>
> I sorry, I don't have any idea about Ramon said @@
> What can I do on windows??? @@

Is there any possibility this is related to the fact that the togaware website is not responding?

I'm getting timeouts repeatedly.

--

David Winsemius
Alameda, CA, USA

Brion

unread,
May 19, 2017, 9:29:17 AM5/19/17
to rattle-users
Hi,

Any news on the issue?
So far I've tried lots of different combinations of R and Rattle version. Nothing really worked.

Thanks.

Gumma Ibrahim

unread,
May 21, 2017, 4:53:28 PM5/21/17
to rattle-users
Hi all,

I tried the solution on this group: http://stackoverflow.com/questions/43974093/rattle-installation-error-invalid-root-element  and it worked for me:

rattle( useGtkBuilder = TRUE)

Thomas Tiahrt

unread,
May 21, 2017, 4:53:28 PM5/21/17
to rattle-users
Hello Dr. Williams: Last Sunday morning I installed R-3.4.0 on my Windows 10 laptop and then attempted to install Rattle. I used the Iowa State mirror and it failed with the message Error in method(obj, ...) : Invalid root element: 'requires' (same as posted on this board). I uninstalled R and re-installed using the 2nd Texas mirror, which I think was a Revolution Analytics mirror. The second installation worked. On Thursday, one of my students posted this on our class discussion board: My Rattle worked fine this morning. I then made the fatal mistake of updating. Others could not get Rattle to work at all, and the 2nd Texas mirror was not on the list of CRAN sites yesterday. 

I replicated the problem with an R-3.4.0 installation on a Windows 7 desktop machine, and then went back to R-3.3.3 and down to R-3.2.5, installed each including Rattle. R-3.2.5 worked. (3.3.3, 3.3.2 and 3.3.1 all failed.) But I had 3.2.5 on that machine before. My students are not able to install R-3.2.5 and get it to work.

So it appears that a change recent enough so that I could still get a working copy on Sunday, but not yesterday, is the cause of the problem.

> I am not yet able to replicate the problem.

I suspect that if you install R-3.4.0 on a machine that has not had R before, and use the sequence:
install.packages("rattle")
library(rattle)
rattle()

That then you will see the error message.

One of my students tried the sequence that worked for Ramón Granados-Peña on her Windows 10 machine, but that failed with an Error: unexpected string constant message. Thanks for your help on this.

Brion

unread,
May 21, 2017, 4:53:28 PM5/21/17
to rattle-users
Hi,

I've actually managed to solve the issue. According to the info I found on the internet issues is related to RGkt2.
I downloaded and installed previous version of RGtk2 (https://cran.r-project.org/bin/windows/contrib/3.3/RGtk2_2.20.31.zip).
I also downloaded and installed Rattle 5.0.10 (http://rattle.togaware.com/bin/windows/contrib/3.3/rattle_5.0.10.zip).
After that Rattle works perfectly fine !

Vangelis Sakkopoulos

unread,
May 21, 2017, 4:53:28 PM5/21/17
to rattle-users

Dear colleagues,


the following steps work on windows 8.1 32-bit/x64 & 10 x64 :


using R 3.4 x64 (or 32-bit)

install RStudio Desktop 1.0.143

download locally https://cran.r-project.org/bin/windows/contrib/3.3/RGtk2_2.20.31.zip 

In the Rstudio do:

install.packages("c:/downloads/RGtk2_2.20.31.zip", repos = NULL, type = "win.binary")

library(RGtk2)

install.packages("rattle", dep=TRUE)
library("rattle")

rattle()

(this installs rattle version 4.1)



Alternatively 

Install R 3.3.3 https://mran.microsoft.com/download/   (only x64)  (I didn't manage to use 3.3.2 or 3.3.3 R directly)

install RStudio 1.0.143

donwload locally: https://cran.r-project.org/bin/windows/contrib/3.3/RGtk2_2.20.31.zip 

within Rstudio 

install.packages("c:/downloads/RGtk2_2.20.31.zip", repos = NULL, type = "win.binary")

library(RGtk2)

(a window popup gtk+ you agree YES INSTALL) // ignore any failure messages

install.packages("rattle", repos = "http://rattle.togaware.com", type = "source")
library("rattle")

rattle()


this will install rattle version 5.0.10


enjoy


Best

Vangelis

陳政威

unread,
May 21, 2017, 4:53:28 PM5/21/17
to rattle-users
Something Incredible that I can't install rattle from the official website for other computer which is install R & Rstudio first time.
What is going on????? @o@

Gumma Ibrahim

unread,
May 22, 2017, 8:34:34 AM5/22/17
to rattle-users
Hi Vangelis,

I followed your procedure ... it works.
I had to delete the RGtk2 folder for the installation to work.

Many thanks.

Gumma

Graham Williams

unread,
May 22, 2017, 8:50:32 AM5/22/17
to rattle-users
No this is unrelated to togaware timing out - that's a separate issue!

Regards,
Graham

--
You received this message because you are subscribed to the Google Groups "rattle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users+unsubscribe@googlegroups.com.

Graham Williams

unread,
May 22, 2017, 8:55:45 AM5/22/17
to rattle-users
The issue arises with RGtk2 version 2.20.33. The work-around is to install RGtk2 version 2.20.31 until the problem is debugged with 2.20.33.

Thanks to everyone for your information and assistance in tracking this down.

I've update the information in the Troubleshooting page on rattle.togaware.com (http://rattle.togaware.com/rattle-install-troubleshooting.html)

Regards,
Graham

Yogesh Lalwani

unread,
May 22, 2017, 7:28:15 PM5/22/17
to rattle...@googlegroups.com
This worked...thanks everyone.

--
You received this message because you are subscribed to a topic in the Google Groups "rattle-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rattle-users/VRnqiXD6nRA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rattle-users+unsubscribe@googlegroups.com.

陳政威

unread,
May 23, 2017, 2:08:22 AM5/23/17
to rattle-users
Thank you all!!!

Ramón Granados-Peña於 2017年5月15日星期一 UTC+8下午7時57分01秒寫道:

肖雪

unread,
May 23, 2017, 7:34:05 PM5/23/17
to rattle-users
Hi, Dr. Williams. I am having issues in installing rattle and uploading data into it. 

At the very beginning, I tried like this and it didn't work. 
> library(rattle)
> rattle()
Error in method(obj, ...) 

Then I changed the code and this time it worked.
>library(rattle)
> rattle(a1,b1,TRUE)
Error in `[[.GObject`(x, member) : 
  Cannot find 'retval' for classes GdkPixbuf, GObject, RGtkObject

However, I couldn't upload any data file in the rattle because the button were grey out .
I'm not sure this is caused by the incorrect installation of rattle or other reasons. 
 Anything I could do to solve this? 
Many  thanks.

Xue

在 2017年5月16日星期二 UTC+8下午7:51:12,Graham Williams写道:
Reply all
Reply to author
Forward
0 new messages