rpy breaks if a file called "None" is present
Derek Broughton
news at pointerstop.ca
Tue Feb 26 14:44:41 UTC 2008
Ivo Timmermans wrote:
> /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.
Surely that's not a bug in rpy I would have thought python would _always_
have a problem with files named "None". If "None" was actually part of the
ipython package, I'd think that's where the error lies.
--
derek
More information about the ubuntu-users
mailing list