Submitted by giniu on Wed, 10/27/2010 - 11:07
Posted in
Hello, today I decided to get the svn version and see if I can start looking at those layout issues I'm having on Linux. Unfortunatelly I wasn't able to run redr, even though some time ago it worked. I downloaded fresh copy, created version.txt and runned canvas and I got:
Traceback (most recent call last):
File "canvas/red-RCanvas.pyw", line 18, in
import orngTabs, orngDoc, orngDlgs
File "/home/giniu/dev/r-orange-read-only/canvas/orngTabs.py", line 9, in
import orngDoc, redRExceptionHandling, orngRegistry
File "/home/giniu/dev/r-orange-read-only/canvas/orngDoc.py", line 11, in
from orngDlgs import *
File "/home/giniu/dev/r-orange-read-only/canvas/orngDlgs.py", line 9, in
import RSession
File "/home/giniu/dev/r-orange-read-only/canvas/RSession.py", line 28, in
import rpy3.robjects as rpy
File "/home/giniu/dev/r-orange-read-only/canvas/rpy3/robjects/__init__.py", line 12, in
import rpy3.rinterface as rinterface
File "/home/giniu/dev/r-orange-read-only/canvas/rpy3/rinterface/__init__.py", line 66, in
from rpy3.rinterface.rinterface import *
ImportError: No module named rinterface
File "canvas/red-RCanvas.pyw", line 18, in
import orngTabs, orngDoc, orngDlgs
File "/home/giniu/dev/r-orange-read-only/canvas/orngTabs.py", line 9, in
import orngDoc, redRExceptionHandling, orngRegistry
File "/home/giniu/dev/r-orange-read-only/canvas/orngDoc.py", line 11, in
from orngDlgs import *
File "/home/giniu/dev/r-orange-read-only/canvas/orngDlgs.py", line 9, in
import RSession
File "/home/giniu/dev/r-orange-read-only/canvas/RSession.py", line 28, in
import rpy3.robjects as rpy
File "/home/giniu/dev/r-orange-read-only/canvas/rpy3/robjects/__init__.py", line 12, in
import rpy3.rinterface as rinterface
File "/home/giniu/dev/r-orange-read-only/canvas/rpy3/rinterface/__init__.py", line 66, in
from rpy3.rinterface.rinterface import *
ImportError: No module named rinterface
Did I missed something? Or maybe it is known issue in svn version as something is being worked on?
We have only been testing on
We have only been testing on windows machines. The rpy3 code basically the rpy2 code. But the version we have committed on the svn is compiled for windows.
Maybe thats why you are seeing this error.
try downloading the rpy2 code http://rpy.sourceforge.net/. Make sure this rpy2 code in your python sys.path.
In the canvas/RSession.py file
change the line:
import rpy3.robjects as rpy
to:
import rpy2.robjects as rpy
Kyle has also created some c libraries to speed up conversion from R to python in redrrpy.
All of this is very unstable right now. So it may be better for you to download the 1.80 branch and try working on the layout using that code.
Sorry for the scattered answer. But we have a lot of changes going on in trunk and we have spend little or no time in linux so far.
Anup