[AniMov] [SOLVED] Re: HomeRange plugin - installation problem - rpy2 and R --enable-R-shlib

Mathieu Ouellette ouellette.mathieu at gmail.com
Sat Jan 16 06:47:09 CET 2010


Hello Anne,

I installed the 2.1.4 version of the home range plugin. I don't get any
error message but after a few tries with different estimators I get nothing.
There is no file that is created in the outpout folder and no layer is added
when the "Add result layer(s) to the project" box is checked.

Maybe I'm doing something wrong?

Thanks again for your help,

Mathieu

2010/1/8 Anne Ghisla <a.ghisla at gmail.com>

> My deepest apologies, it was a missing import statement in the code. Now
> fixed in 2.1.4, will upload it on the repo asap.
>
> all the best,
> Anne
>
>
> On Fri, 2010-01-08 at 15:00 +0100, Anne Ghisla wrote:
> > On Thu, 2010-01-07 at 11:54 -0500, Mathieu Ouellette wrote:
> > > Hello,
> >
> > > I used the Advanced install to make sure that rpy2 was installed. I
> > > double-checked like you suggested and the rpy folder is indeed there.
> >
> > Hi Mathieu
> >
> > rpy or rpy2? the plugin requests the latter. You can also check if the
> > problem affects QGIS by typing in the Python console:
> >
> > import rpy2
> > import rpy2.robjects as robjects
> >
> > and report any error message.
> >
> > You can also install manageR plugin and see if it complains too about
> > rpy2.
> >
> > I tested the plugin this morning on a fresh install of QGIS 1.4 via
> > OSGeo4w, R 2.10.1 and related packages, and there is a problem in
> > loading ade4.
> > There is a requirement on rpy2 webpage:
> >
> > "R-2.10, compiled with the option --enable-R-shlib"
> >
> > I'm not sure if it is always the case for packaged R, and if it is the
> > source of the problem. But as it is a frequent bug, I'm going to compile
> > R myself on my Windows box and tell if it is the solution.
> >
> > hope this helps,
> > Anne
> >
> > > Thank you again,
> > >
> > >
> > > Mathieu
> > >
> > > 2010/1/7 Anne Ghisla <a.ghisla at gmail.com>
> > >         On Wed, 2010-01-06 at 23:45 -0500, Mathieu Ouellette wrote:
> > >         > Hello Anne and Giovanni,
> > >
> > >         > Thank you very much for your help. I finally used the osge4w
> > >         > installer, downloaded the two other R packages and add the
> > >         path to R.
> > >         >
> > >         > However, when I try to use the Home Range plugin, I get the
> > >         following
> > >         > error message.
> > >
> > >
> > >         Still, rpy2 is likely missing. I forgot to say to use Advanced
> > >         install,
> > >         and select python-rpy2. It will bring its dependencies
> > >         automatically.
> > >
> > >         To double-check, you can look for rpy2 folder into
> > >         C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages
> > >
> > >
> > >         if it's missing, and you asked the OSGeo4W installer to
> > >         install rpy2,
> > >         it's a bug...
> > >
> > >         bien à vous,
> > >         Anne
> > >
> > >
> > >         >
> > >         > Thank you,
> > >         >
> > >         >
> > >         > Mathieu
> > >         >
> > >         >
> > >         > Error message:
> > >         >
> > >         >
> > >         > Une erreur est apparue lors de l'exécution du code python :
> > >         '
> > >         >
> > >         >
> > >         > Traceback (most recent call last):
> > >         >   File "C:/Documents and Settings/Luc
> > >         Ouellette/.qgis//python/plugins
> > >         > \HomeRange_plugin\HRplugin_dialog.py", line 72, in
> > >         >     QObject.connect(self.buttonBox, SIGNAL("accepted()"),
> > >         lambda
> > >         > mth=mth: self.run(mth))
> > >         >   File "C:/Documents and Settings/Luc
> > >         Ouellette/.qgis//python/plugins
> > >         > \HomeRange_plugin\HRplugin_dialog.py", line 174, in run
> > >         >     if not robjects.r.require(i)[0]:
> > >         > NameError: global name 'robjects' is not defined
> > >         >
> > >         >
> > >         > Version de Python :
> > >         > 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> > >         (Intel)]
> > >         >
> > >         >
> > >         > Chemin vers Python :['C:/OSGeo4W/apps/qgis/./python',
> > >         'C:/Documents
> > >         > and Settings/Luc Ouellette/.qgis//python/plugins',
> > >         > 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\OSGeo4W\\apps\
> > >         \gdal-16\
> > >         > \pymod', 'C:\\', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\
> > >         \OSGeo4W\
> > >         > \apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib',
> > >         'C:\
> > >         > \OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps
> > >         \\Python25
> > >         > \\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W
> > >         \\apps\
> > >         > \Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\
> > >         \site-packages', 'C:\
> > >         > \OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\
> > >         \OSGeo4W\
> > >         > \apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\
> > >         \OSGeo4W\\apps\
> > >         > \Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\
> > >         \apps\
> > >         > \Python25\\lib\\site-packages\\wx-2.8-msw-unicode']
> > >         >
> > >
> > >
> > >         > _______________________________________________
> > >         > AniMov mailing list
> > >         > AniMov at faunalia.it
> > >         > http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> > >
> > >
> > >
> > >         _______________________________________________
> > >         AniMov mailing list
> > >         AniMov at faunalia.it
> > >         http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> > >
> > >
> > >
> > > _______________________________________________
> > > AniMov mailing list
> > > AniMov at faunalia.it
> > > http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
> >
>
>
> _______________________________________________
> AniMov mailing list
> AniMov at faunalia.it
> http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
>
>
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.faunalia.it/pipermail/animov/attachments/20100116/20d282dc/attachment.htm>


More information about the AniMov mailing list