Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-02-18 Thread Giovanni Manghi
Hi,

 Just a small note in case you encounter the same problem with
 installation as I did today on colleagues machine:
 
 You need to have C:\Program Files\R\R-2.10.1\bin\ in PATH enviroment
 in Windows (XP in my case). Otherwise the HR plugin popups up error
 message saying that 'ade4' package was not found by R.


this is boring but at least common also to other software packages under
windows (postgresql for exemple).

The really annoying thing is that under Vista/Seven R libraries are
installed in one (user profile) folder but then the plugin(s) look into
another one.

cheers

-- Giovanni --

___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov


Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-02-17 Thread Václav Řehák
Dne 1. února 2011 14:34 Václav Řehák rehak...@gmail.com napsal(a):
 2011/1/31 Giovanni Manghi giovanni.man...@gmail.com:

 * the plugin (?) looks for R libraries in a folder different from the
 one where R installs them (at least under Seven, and I guess Vista.
 Don't know under XP).

 tested also XP: there are no problems with the location of the R
 libraries in this OS.

 It works for me with R 2.10.1, QGIS 1.6.0 and plugin 2.1.7.

Just a small note in case you encounter the same problem with
installation as I did today on colleagues machine:

You need to have C:\Program Files\R\R-2.10.1\bin\ in PATH enviroment
in Windows (XP in my case). Otherwise the HR plugin popups up error
message saying that 'ade4' package was not found by R.

Vaclav
___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov


Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-01-31 Thread Giovanni Manghi
Hi Anne,


  and suppose that downgrading to R 2.9 is the
 current workaround for Windows.


the latest version of the plugin now works also under Windows with R 
2.12 (tested with 2.11.1).

The two major issues under windows are then:

* the plugin doesn't work with R = 2.12 (rpy2 problem)

* the plugin (?) looks for R libraries in a folder different from the
one where R installs them (at least under Seven, and I guess Vista.
Don't know under XP).

cheers

-- Giovanni --

___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov


Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-01-31 Thread Giovanni Manghi

 * the plugin (?) looks for R libraries in a folder different from the
 one where R installs them (at least under Seven, and I guess Vista.
 Don't know under XP).

tested also XP: there are no problems with the location of the R
libraries in this OS.


cheers

-- Giovanni --

___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov


Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-01-25 Thread Giovanni Manghi
Hi Addy,

yes, in R 2.12 the location of the executables files has changed, this
makes the HR plugin not working. I'm not a python/R guy, but probably
the library that have to catch up is rpy2(?).

In any case there are still unsloved problems in the plugin (Anne, do
you confirm?): using an older version of R (2.9.2 is what I observed) is
the workaround at the moment.

Cheers

-- Giovanni --


On Tue, 2011-01-25 at 12:29 +0100, Addy de Jongh wrote:
 Dear Giovanni,
 
 I have found the problem. I used the newest R (-2.12.1), and in this the 
 R.exe and R.dll have been put in a separate I386 folder in the BIN folder. I 
 have now removed the newest version of R and replaced it by R-2.10.0, which 
 has no I386 folder in its BIN.
 
 Obviously the code in the Home Range Plugin is looking for the R.dll in the 
 BIN folder, but not in the I386 folder inside the BIN in the newest R version.
 
 So for new users like me, there should be a notification/warning on 
 http://www.qgis.org/wiki/HomeRange_plugin#State_of_the_art NOT to use a newer 
 version of R than 2.10.0 in windows (I am using windows 7 ultimate).
 
 Now I am looking forward to really use the plugin for Home Range Analysis of 
 our otter data. Thanks for making this open source software available!
 
 Best wishes,
 Addy de Jongh,
 director Dutch Otterstation Foundation,
 Dutch Representative IUCN/SSC Otter Specialist Group
 
 -Oorspronkelijk bericht-
 Van: Addy de Jongh [mailto:addy...@xs4all.nl] 
 Verzonden: 24 January 2011 22:34
 Aan: 'giovanni.man...@gmail.com'
 Onderwerp: problem loading Hore Range plugin for QGIS
 
 Dear Giovanni,
 
 How are you? Remember me? Friend of Lorenzo. I noticed you came a long way 
 with the open source GIS developments. Nice.
 
 For our VHF and GPS tracking work the HomeRange plugin for QGIS looks very 
 promising to me (http://www.qgis.org/wiki/HomeRange_plugin#State_of_the_art). 
 I have tried to install it following correctly the installation requirements 
 on my windows 7 PC.
 
 It is however a pity that I get all the time the error messages shown in the 
 attachments. I have set R_HOME manually to the ~\BIN\I386 folder, but also to 
 the root of these C:\Progra~1\R\R-2.12.1. Neither of these settings works.
 
 Therefore I like to ask you if you have any idea, what might be wrong here.
 
 Your help is much appreciated.
 
 Best wishes,
 Addy de Jongh,
 Dutch Otterstation Foundation,
 Netherlands
 
  


___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov


Re: [AniMov] I found the problem! :) FW: problem loading Hore Range plugin for QGIS

2011-01-25 Thread Addy de Jongh
Hi,

It has become clear to me that the latest windows binaries for the following
R packages

* package adehabitat and its dependencies
* package rgdal and its dependencies
* package gpclib

have been build under R version 2.12.1. Therefore they will not work with
older R versions
(e.g. because of that ade4 could not be attached). I noticed after
downloading these packages that in their lib folder there
are also a i386 and a x64 folder in which their dll is situated. That makes
sense, because the latest
version of R also has in its bin folder this choice for the 32 or 64 bit
Windows versions to use i386 or x64.

I tried to copy the dll for each package to its lib folder (one folder level
higher) to make it available for my present version of R.
For the first packages this seemed to work, but after I did it for all I got
the following
warnings in R and consequently I was not able in QGIS to get my home range
analysis output.

Warning messages:
1: package 'adehabitat' was built under R version 2.12.1 
2: package 'gpclib' was built under R version 2.12.1 
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in registerS3method(Info[i, 1], Info[i, 2], Info[i, 3], env) : 
  trying to get slot methods from an object of a basic class (NULL) with
no slots
In addition: Warning message:
package 'rgdal' was built under R version 2.12.1 
Error: package/namespace load failed for 'rgdal'
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in registerS3method(Info[i, 1], Info[i, 2], Info[i, 3], env) : 
  trying to get slot methods from an object of a basic class (NULL) with
no slots
In addition: Warning message:
package 'rgdal' was built under R version 2.12.1 
Error: package/namespace load failed for 'rgdal'

I think the way to get it to work is to use the old binary packages for
adehabitat (incl. ade4),
rgdal (incl. sp) and gpclib, which have worked for the previous version of R
(= version 2.10.0).

But where can these old windows binary packages be downloaded? For those of
you still working with an older version of R and a working Home Range
plugin, please zip your R packages (and dependencies) and make them
available for download.

Otherwise I guess somewhere in the code of the plugin there should be other
paths pointing to the i386 and x64 folders to get it working with the latest
R version for windows.

I hope this all made sense.

Best wishes,
Addy

-Oorspronkelijk bericht-
Van: animov-boun...@faunalia.it [mailto:animov-boun...@faunalia.it] Namens
Paolo Cavallini
Verzonden: 25 January 2011 20:12
Aan: Animal Movement
Onderwerp: Re: [AniMov] I found the problem! :) FW: problem loading Hore
Range plugin for QGIS

Il giorno mar, 25/01/2011 alle 15.00 +0100, Anne Ghisla ha scritto:

 yes, the library that creates the problem is rpy2. Sadly, there is no
 support on Windows for rpy2 starting from version 2.1
 http://rpy.sourceforge.net/rpy2/doc-2.1/html/overview.html#installation

Too bad! I do not like to build on sand. Any reasonable alternative?
All the best.
-- 
http://www.faunalia.it/pc

___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov

___
AniMov mailing list
AniMov@faunalia.it
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov