[Qgis-developer] Error with manageR (and python console)

Agustin Lobo alobolistas at gmail.com
Tue Oct 20 08:56:17 EDT 2009


Hi!

I've just installed R (2.8.1), python-dev, rpy2 (through easy-install)
and manageR (qgis 1.3.0) on ubuntu 9.04 jaunty and get this
error after issuing any wrong command in the manageR console, i.e.:
> a = 1?
Error: unexpected end of input in "a = 1?"

and a window opens with:

An error has occured while executing Python code:

Traceback (most recent call last):
   File "build/bdist.linux-i686/egg/rpy2/rinterface/__init__.py", line
108, in consoleFlush
     sys.stdout.flush()
AttributeError: QgisOutputCatcher instance has no attribute 'flush'

Python version:
2.6.2 (release26-maint, Apr 19 2009, 02:11:59)

I get the same error if I run the rpy2 test mentioned in
http://rpy.sourceforge.net/rpy2/doc/html/overview.html#installation
in the qgis python console

import rpy2.tests
import unittest

# the verbosity level can be increased if needed
tr = unittest.TextTestRunner(verbosity = 1)
suite = rpy2.tests.suite()
tr.run(suite)


Any idea on how to fix this?
Apparently, the rpy2 installation went ok.

Agus


More information about the Qgis-developer mailing list