LluisRamon / relenium

Easy and powerful web scraping with Selenium
http://lluisramon.github.io/relenium/
33 stars 4 forks source link

Error creating new object #8

Open rpremraj opened 10 years ago

rpremraj commented 10 years ago

Hi --- using the example in the demo, I simply tried creating a new object and ran into the error below. Any suggestions on how to fix it?

Many thanks!

> library(relenium)
> library(XML)
> firefox <- firefoxClass$new()
Error in exceptionTable[, 1] : subscript out of bounds
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] XML_3.95-0.2   relenium_0.3.0 devtools_1.4.1 rJava_0.9-5   

loaded via a namespace (and not attached):
 [1] digest_0.6.4     evaluate_0.5.1   httr_0.2         memoise_0.1      parallel_3.0.2   RCurl_1.95-4.1  
 [7] seleniumJars_0.2 stringr_0.6.2    tools_3.0.2      whisker_0.3-2   
aleixrvr commented 10 years ago

Dear Rahul,

it seems a new version of selenium (the module that relenium is importing) is needed and we have to update it. We will do it briefly.

Sorry for the inconveniece

Aleix

On Sat, Jan 4, 2014 at 8:28 PM, Rahul Premraj notifications@github.comwrote:

Hi --- using the example in the demo, I simply tried creating a new object and ran into the error below. Any suggestions on how to fix it?

Many thanks!

library(relenium) library(XML) firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] XML_3.95-0.2 relenium_0.3.0 devtools_1.4.1 rJava_0.9-5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.1 httr_0.2 memoise_0.1 parallel_3.0.2 RCurl_1.95-4.1 [7] seleniumJars_0.2 stringr_0.6.2 tools_3.0.2 whisker_0.3-2

— Reply to this email directly or view it on GitHubhttps://github.com/LluisRamon/relenium/issues/8 .

Premature optimization is the root of all evil (Knuth, D.)

Aleix Ruiz de Villa Robert

rpremraj commented 10 years ago

No worries! I look fwd to testing (and using) it. Would you be so kind as to ping me once you have updated the package?

Thanks again for your efforts, Rahul

On Sunday, January 5, 2014, aleixrvr wrote:

Dear Rahul,

it seems a new version of selenium (the module that relenium is importing) is needed and we have to update it. We will do it briefly.

Sorry for the inconveniece

Aleix

On Sat, Jan 4, 2014 at 8:28 PM, Rahul Premraj <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

Hi --- using the example in the demo, I simply tried creating a new object and ran into the error below. Any suggestions on how to fix it?

Many thanks!

library(relenium) library(XML) firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] XML_3.95-0.2 relenium_0.3.0 devtools_1.4.1 rJava_0.9-5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.1 httr_0.2 memoise_0.1 parallel_3.0.2 RCurl_1.95-4.1 [7] seleniumJars_0.2 stringr_0.6.2 tools_3.0.2 whisker_0.3-2

— Reply to this email directly or view it on GitHub< https://github.com/LluisRamon/relenium/issues/8> .

Premature optimization is the root of all evil (Knuth, D.)

Aleix Ruiz de Villa Robert

— Reply to this email directly or view it on GitHubhttps://github.com/LluisRamon/relenium/issues/8#issuecomment-31592603 .

aleixrvr commented 10 years ago

Ok!

We will tell you.

Enviado desde mi iPhone

El 05/01/2014, a las 08:13, Rahul Premraj notifications@github.com escribió:

No worries! I look fwd to testing (and using) it. Would you be so kind as to ping me once you have updated the package?

Thanks again for your efforts, Rahul

On Sunday, January 5, 2014, aleixrvr wrote:

Dear Rahul,

it seems a new version of selenium (the module that relenium is importing) is needed and we have to update it. We will do it briefly.

Sorry for the inconveniece

Aleix

On Sat, Jan 4, 2014 at 8:28 PM, Rahul Premraj <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

Hi --- using the example in the demo, I simply tried creating a new object and ran into the error below. Any suggestions on how to fix it?

Many thanks!

library(relenium) library(XML) firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] XML_3.95-0.2 relenium_0.3.0 devtools_1.4.1 rJava_0.9-5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.1 httr_0.2 memoise_0.1 parallel_3.0.2 RCurl_1.95-4.1 [7] seleniumJars_0.2 stringr_0.6.2 tools_3.0.2 whisker_0.3-2

— Reply to this email directly or view it on GitHub< https://github.com/LluisRamon/relenium/issues/8> .

Premature optimization is the root of all evil (Knuth, D.)

Aleix Ruiz de Villa Robert

— Reply to this email directly or view it on GitHubhttps://github.com/LluisRamon/relenium/issues/8#issuecomment-31592603 .

— Reply to this email directly or view it on GitHub.

aleixrvr commented 10 years ago

Rahul,

seleniumJars is updated. It seems to work now.

For any comments/bugs/suggestions, please don't hesitate to contact us!

Thanks, Aleix

On Sun, Jan 5, 2014 at 11:52 AM, Aleix Ruiz De Villa aleixrvr@gmail.comwrote:

Ok!

We will tell you.

Enviado desde mi iPhone

El 05/01/2014, a las 08:13, Rahul Premraj notifications@github.com escribió:

No worries! I look fwd to testing (and using) it. Would you be so kind as to ping me once you have updated the package?

Thanks again for your efforts, Rahul

On Sunday, January 5, 2014, aleixrvr wrote:

Dear Rahul,

it seems a new version of selenium (the module that relenium is importing) is needed and we have to update it. We will do it briefly.

Sorry for the inconveniece

Aleix

On Sat, Jan 4, 2014 at 8:28 PM, Rahul Premraj <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

Hi --- using the example in the demo, I simply tried creating a new object and ran into the error below. Any suggestions on how to fix it?

Many thanks!

library(relenium) library(XML) firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] XML_3.95-0.2 relenium_0.3.0 devtools_1.4.1 rJava_0.9-5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.1 httr_0.2 memoise_0.1 parallel_3.0.2 RCurl_1.95-4.1 [7] seleniumJars_0.2 stringr_0.6.2 tools_3.0.2 whisker_0.3-2

— Reply to this email directly or view it on GitHub< https://github.com/LluisRamon/relenium/issues/8> .

Premature optimization is the root of all evil (Knuth, D.)

Aleix Ruiz de Villa Robert

— Reply to this email directly or view it on GitHub< https://github.com/LluisRamon/relenium/issues/8#issuecomment-31592603> .

— Reply to this email directly or view it on GitHubhttps://github.com/LluisRamon/relenium/issues/8#issuecomment-31598239 .

Premature optimization is the root of all evil (Knuth, D.)

Aleix Ruiz de Villa Robert

rpremraj commented 10 years ago

Hi folks,

Unfortunately, the issue persists...

> library(relenium)
> library(XML)
> firefox <- firefoxClass$new()
Error in exceptionTable[, 1] : subscript out of bounds
> 
> traceback()
8: lapply(X = X, FUN = FUN, ...)
7: sapply(exceptionTable[, 1], function(excpName) {
       grepl(excpName, javaWarMes)
   })
6: .self$tryExc(.jnew("org.openqa.selenium.firefox.FirefoxDriver"))
5: .Object$initialize(...)
4: initialize(value, ...)
3: initialize(value, ...)
2: methods::new(def, ...)
1: firefoxClass$new()
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] XML_3.95-0.2   relenium_0.3.0

loaded via a namespace (and not attached):
[1] rJava_0.9-6        seleniumJars_0.3.0 tools_3.0.2  
rpremraj commented 10 years ago

Please disregard the above post... the package works charmingly on my machine now :-)

Many thanks! Rahul

aleixrvr commented 10 years ago

Great!

Enviado desde mi iPhone

El 05/01/2014, a las 23:50, Rahul Premraj notifications@github.com escribió:

Please disregard the above post... the package works charmingly on my machine now :-)

Many thanks!

Rahul — Reply to this email directly or view it on GitHub.

randy3k commented 10 years ago

Hi @rpremraj, what have you done to solve this problem? I have the same problem that you had.

> firefox <- firefoxClass$new()
Error in exceptionTable[, 1] : subscript out of bounds
> traceback()
8: lapply(X = X, FUN = FUN, ...)
7: sapply(exceptionTable[, 1], function(excpName) {
       grepl(excpName, javaWarMes)
     ...
6: .self$tryExc(.jnew("org.openqa.selenium.firefox.FirefoxDriver"))
5: .Object$initialize(...)
4: initialize(value, ...)
3: initialize(value, ...)
2: methods::new(def, ...)
1: firefoxClass$new()

BTW, I am on OSX 10.9, R 3.1.0.

aleixrvr commented 10 years ago

Randy,

I think we have to update selenium. It worked last time. We will do it in brief.

Aleix

On Tue, Apr 22, 2014 at 8:05 AM, Randy Lai notifications@github.com wrote:

Hi @rpremraj https://github.com/rpremraj, what have you done to solve this problem? I have the same problem with you had.

firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds traceback() 8: lapply(X = X, FUN = FUN, ...) 7: sapply(exceptionTable[, 1], function(excpName) { grepl(excpName, javaWarMes) ... 6: .self$tryExc(.jnew("org.openqa.selenium.firefox.FirefoxDriver")) 5: .Object$initialize(...) 4: initialize(value, ...) 3: initialize(value, ...) 2: methods::new(def, ...) 1: firefoxClass$new()

Reply to this email directly or view it on GitHubhttps://github.com/LluisRamon/relenium/issues/8#issuecomment-41006692 .

Aleix Ruiz de Villa Robert

LluisRamon commented 10 years ago

Hi Randy,

I didn't notice about your issue because it was a closed issue. Sorry.

I have updated seleniumJars with the current selenium version 2.41.

Can you try it again with the updated version?

rpremraj commented 10 years ago

Hi Randy,

I cannot explain why, but I re-installed Firefox on my Mac and the package worked just fine. Perhaps you could give this a shot.

Cheers, Rahul

FernandoFelipe commented 10 years ago

the last week, this problem back.

firefox <- firefoxClass$new() Error in exceptionTable[, 1] : subscript out of bounds