[Qgis-user] Problems with scripts and multiple lines in editR and manageR
Henrik Lundqvist
h.lundqvist at gmail.com
Fri Feb 12 07:51:45 PST 2010
Hello all
I got a problem with manageR and editR which I have just started to use.
When I send multiple lines (using the console-button or ctrl-enter) from
editR to manageR I get into problems
Renshapefull <- read.shp("REN236_cut01.shp")
Renshape <- convert.to.simple(Renshapefull)
gives me the following error message
Error: unexpected symbol in
"Renshapefull <- read.shp("REN236_cut01.shp")
Renshape <- convert.to.simple(Renshapefull)Renshape"
Multiple lines such as the following work however fine:
pdf()
plot.NNCH(RenNNCH, percent = rev(seq(5, 100, by = 5)))
plot(RenNNCHarea)
dev.off()
And ALL multiple lines works fine if I copy and paste them from editR to
manageR
When I try to send the whole script from editR to manageR I get the
following python error message
Ett fel har inträffat vid Pythonexekvering:
Traceback (most recent call last):
File "/home/henrik/.qgis//python/plugins/manageR/manageR.py", line 1033,
in execute
MainWindow.Console.editor.entered()
File "/home/henrik/.qgis//python/plugins/manageR/manageR.py", line 1251,
in entered
if not self.checkBrackets(self.runningCommand):
File "/home/henrik/.qgis//python/plugins/manageR/manageR.py", line 1292,
in checkBrackets
s = str(command)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position
24: ordinal not in range(128)
Python version:
2.6.2 (release26-maint, Apr 19 2009, 02:15:38)
[GCC 4.3.3]
Python sökväg: ['/usr/share/qgis/python', '/home/henrik/.qgis//python',
'/home/henrik/.qgis//python/plugins', '/usr/share/qgis/python/plugins',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/var/lib/python-support/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/var/lib/python-support/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages',
'/usr/share/qgis/python/plugins/fTools/tools', '~/.qgis/python']
My set is as follows:
LinuxMint 7 (Ubuntu 9.04)
R 2.10.1-2jaunty0
QGIS 1.4.0 "Enceladus"
rpy2 2.0.8-1
fTools 0.5.10
manageR 0.8
Any help would be most appreciated
Cheers
/Henrik
___________________________
Henrik Lundqvist
h.lundqvist at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20100212/a5744ad6/attachment.html>
More information about the Qgis-user
mailing list