On 19 March 2007 at 11:19, Joseph Perla wrote:
| Hi everyone,
| 
| Just to let you know about a little bug.  On a fresh install of Ubuntu
| Feisty (7.04), I apt-get install python-rpy which installs all
| dependencies.  Whet I fire up Python and import rpy, I get this error:
| 
| RHOME= /usr/lib/R
| RVERSION= 2.4.1
| RVER= 2041
| RUSER= /home/joe
| Loading Rpy version 2041 ..
| Traceback (most recent call last):
|   File "<stdin>", line 1, in <module>
|   File "/usr/lib/python2.5/site-packages/rpy.py", line 112, in <module>

Try using python2.4, not python2.5.  Python 2.5 is not yet suppported by the
automated build of Python modules from Python module sources.

At least not on Debian. I am not entirely sure exactly what Ubuntu does to
the RPy and R packages I maintain for Debina ... as they never communicate
back. It *may* well be that they try to support Python 2.5 automatically; I
just don't know if include RPy.  On my Debian testing system, the directory

        /usr/lib/python2.5/site-packages  

is empty whereas 

        /usr/lib/python2.4/site-packages  

contains the on-install autobuilt files, incl rpy's.  What does Feisty have?

Dirk

|     exec("import _rpy%s as _rpy" % RVER)
|   File "<string>", line 1, in <module>
| ImportError: No module named _rpy2041
| 
| The rpy2041 module does not exist.  My solution is to google an rpm with the
| file inside, extract it, and place it in the approprate folder on my
| installation.  Everything works after that.  I do not, however, think this
| should be the default behaviour.
| 
| I believe this is may be the problem to which someone recently filed a bug
| report, for which you wanted a more detailed description.  I have not
| confirmed this missing file for other systems.
| 
| Thanks,
| j
| Hi everyone,<br><br>Just to let you know about a little bug.&nbsp; On a fresh 
install of Ubuntu Feisty (7.04), I apt-get install python-rpy which installs 
all dependencies.&nbsp; Whet I fire up Python and import rpy, I get this error:
| <br><br>RHOME= /usr/lib/R<br>RVERSION= 2.4.1<br>RVER= 2041<br>RUSER= 
/home/joe<br>Loading Rpy version 2041 ..<br>Traceback (most recent call 
last):<br>&nbsp; File &quot;&lt;stdin&gt;&quot;, line 1, in 
&lt;module&gt;<br>&nbsp; File 
&quot;/usr/lib/python2.5/site-packages/rpy.py&quot;, line 112, in &lt;module&gt;
| <br>&nbsp;&nbsp;&nbsp; exec(&quot;import _rpy%s as _rpy&quot; % 
RVER)<br>&nbsp; File &quot;&lt;string&gt;&quot;, line 1, in 
&lt;module&gt;<br>ImportError: No module named _rpy2041<br><br>The rpy2041 
module does not exist.&nbsp; My solution is to google an rpm with the file 
inside, extract it, and place it in the approprate folder on my 
installation.&nbsp; Everything works after that.&nbsp; I do not, however, think 
this should be the default behaviour.
| <br><br>I believe this is may be the problem to which someone recently filed 
a bug report, for which you wanted a more detailed description.&nbsp; I have 
not confirmed this missing file for other systems.<br><br>Thanks,<br>j<br>
| -------------------------------------------------------------------------
| Take Surveys. Earn Cash. Influence the Future of IT
| Join SourceForge.net's Techsay panel and you'll get the chance to share your
| opinions on IT & business topics through brief surveys-and earn cash
| 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
| rpy-list mailing list
| rpy-list@lists.sourceforge.net
| https://lists.sourceforge.net/lists/listinfo/rpy-list

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to