Gavin,
For installing rpy2 on ubuntu 8.04 I followed
http://rpy.sourceforge.net/rpy2/doc/html/overview.html#installation:
"To install from a downloaded source archive <rpy_package> do in a shell:
tar -xzf <rpy_package>.tar.gz
cd <rpy_package>
python setup.py install
"
and the rpy2 installation worked fine.
Nevertheless, manageR complained about QXmlStreamReader, as described here:
http://n2.nabble.com/Error-at-starting-manageR-tt2956781.html
Workaround sugested by Carson while he finds a final fix:
I'm still working on this, but I don't know what is causing this
error. Technically, the QXmlStreamReader is part QtCore, so I don't
really know why this isn't working...
For now, if you simply change the auto_completion variable in your
config.ini file located in your manageR directory from commands.xml to
Auto, manageR will skip the xml parsing step, and simply read the
autocommands from your default R environment (i.e. the auto complete
suggestions will be based on the packages you have set to
automatically load when R is loaded (base, graphics, stats, etc.).
Also remember you need libqt4-xml:
$ sudo apt-get install libqt4-xml
Agus
Gavin Fleming wrote:
I’m running Ubuntu 8.04 and to get the ManageR plugin to work I used
easy_install to install rpy2 as apt-get could not find python-rpy2.
Now when I try to run ManageR I get this error: RRuntimeError: Error
in eval(expr, envir, enclos) : could not find function "lsf.str"
---
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/gavinf/.qgis//python/plugins/manageR/manageR.py", line 50,
in run
d = manageRDialog.manageR( self.iface, self.version )
File "/home/gavinf/.qgis//python/plugins/manageR/manageRDialog.py",
line 69, in __init__
completer = CommandCompletion( self.wgt_console,
self.getDefaultCommands(), delay, self.label )
File "/home/gavinf/.qgis//python/plugins/manageR/manageRDialog.py",
line 483, in getDefaultCommands
info = robjects.r('lsf.str("package:' + package + '" )')
File "build/bdist.linux-i686/egg/rpy2/robjects/__init__.py", line 535,
in __call__
File "build/bdist.linux-i686/egg/rpy2/robjects/__init__.py", line 422,
in __call__
RRuntimeError: Error in eval(expr, envir, enclos) : could not find
function "lsf.str"
Python version:
2.5.2 (r252:60911, Jul 31 2008, 17:44:49)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Python path:['/usr/share/qgis/python',
'/home/gavinf/.qgis//python/plugins/symbology_ng',
'/home/gavinf/.qgis//python/plugins/symbology_ng',
'/home/gavinf/.qgis//python/plugins',
'/usr/share/qgis/python/plugins',
'/usr/lib/python2.5/site-packages/rpy2-2.0.4-py2.5-linux-i686.egg',
'/usr/lib/python2.5/site-packages', '/home/gavinf',
'/home/gavinf/software/OpenOPC-1.1.6/src', '/usr/lib/python25.zip',
'/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/var/lib/python-support/python2.5',
'/var/lib/python-support/python2.5/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/home/gavinf/.qgis/python/plugins/fTools/tools']
Any tips?
thanks
Gavin
------------------------------------------------------------------------
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
begin:vcard
fn:Agustin Lobo
n:Lobo;Agustin
org:Institut de Ciencies de la Terra "Jaume Almera" CSIC
adr:;;Lluis Sole Sabris s/n;Barcelona;;08028;Spain
email;internet:[email protected]
url:http://www.ija.csic.es/gt/obster
version:2.1
end:vcard
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user