rpy breaks if a file called "None" is present
Ivo Timmermans
ivo at o2w.nl
Mon Feb 25 15:39:37 UTC 2008
Package: python-rpy
Version: 1.0~rc1-6
Severity: normal
> ipython
[...]
In [1]: import rpy
RHOME= /usr/lib64/R
RVERSION= 2.6.2
RVER= 2062
RUSER= None
---------------------------------------------------------------------------
<type 'exceptions.TypeError'> Traceback (most recent call last)
/home/ivo/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/rpy.py in <module>()
75 os.environ['RPY_RVERSION']=RVERSION
76 os.environ['RPY_RVER']=RVER
---> 77 os.environ['RPY_RUSER']=RUSER
78
79 # Push R_HOME into the environment for the R shared library/DLL to pick up
/home/ivo/os.py in __setitem__(self, key, item)
474 self.data = environ
475 def __setitem__(self, key, item):
--> 476 putenv(key, item)
477 self.data[key] = item
478 def update(self, dict=None, **kwargs):
<type 'exceptions.TypeError'>: putenv() argument 2 must be string, not None
The problem here is that there is a file called "None" in the current directory of ipython. rpy_tools's get_R_USER() function checks whether that file exists, and happily returns None if it does.
-- System Information:
Debian Release: lenny/sid
APT prefers gutsy-updates
APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-rpy depends on:
ii libc6 2.6.1-1ubuntu10 GNU C Library: Shared libraries
ii python 2.5.1-1ubuntu2 An interactive high-level object-o
ii python-central 0.5.15ubuntu2 register and build utility for Pyt
ii python-numeric 24.2-8 Numerical (matrix-oriented) Mathem
ii r-base-core 2.6.2-1gutsy0 GNU R core of statistical computin
python-rpy recommends no packages.
-- no debconf information
More information about the ubuntu-users
mailing list