Hi, I am running ubuntu natty with python 2.7.] and rpy2. On my dev machine my code works. I have the below that adds arrays from a numpy matrix to create R arrays.
for k,v in enumerate(self.attribute_list): robjects.globalenv[v] = robjects.IntVector(self.training_data[:,k]) When I run the code in production I get the below error. Why is there no globalenv? Is it something to dod with how rpy2 and R was built? This us myt etup scripts for R and rpy2. sudo apt-get -y install --fix-missing r-base r-base-dev r-base-core python-rpy2 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/R/lib/ Traceback (most recent call last): File "bsBuildDecisonTree.py", line 308, in <module> rt = run_tree.runTree() File "bsBuildDecisonTree.py", line 159, in runTree robjects.globalenv[v] = robjects.IntVector(self.training_data[:,k]) AttributeError: 'module' object has no attribute 'globalenv' Thanks ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list