I have installed rpy2 on this machine in the past and had no problems, but now I am unable to get rpy2 properly installed either using pip or source. I'm running OSX 10.9.5 (Mavericks), and R version 3.1.1 (2014-07-10) -- "Sock it to Me" (Platform: x86_64-apple-darwin13.1.0 (64-bit)).
Both source and pip show similar errors. For example, when I try pip install https://bitbucket.org/lgautier/rpy2/get/version_2.5.x.tar.gz I get the following traceback: ------------------------------------------------- Traceback (most recent call last): File "<string>", line 17, in <module> File "/var/folders/7h/kxq84vrx6cq4mh8ycssjhzc4y2bpx0/T/pip-M_AK2m-build/setup.py", line 275, in <module> ri_ext = getRinterface_ext() File "/var/folders/7h/kxq84vrx6cq4mh8ycssjhzc4y2bpx0/T/pip-M_AK2m-build/setup.py", line 189, in getRinterface_ext ldf = shlex.split(' '.join(rexec.cmd_config('--ldflags'))) File "/var/folders/7h/kxq84vrx6cq4mh8ycssjhzc4y2bpx0/T/pip-M_AK2m-build/setup.py", line 135, in cmd_config output = output.strip() AttributeError: 'list' object has no attribute 'strip' ------------------------------------------------- (I used https://bitbucket.org/lgautier/rpy2/get/version_2.5.x.tar.gz because I was seeing a separate error before this, and while trying to find a solution to that one I saw the suggestion to use https://bitbucket.org/lgautier/rpy2/get/version_2.5.x.tar.gz. That eliminated the previous error but brought in the "strip" error.) On trying to install from source (rpy2 2.5.1) I get a similar error: ------------------------------------------------- ~/Downloads/rpy2-2.5.1 > python setup.py build install R version 3.1.1 (2014-07-10) -- "Sock it to Me" /Library/Frameworks/R.framework/Resources/bin/R CMD config --ldflags Traceback (most recent call last): File "setup.py", line 278, in <module> ri_ext = getRinterface_ext() File "setup.py", line 192, in getRinterface_ext ldf = shlex.split(' '.join(rexec.cmd_config('--ldflags'))) File "setup.py", line 135, in cmd_config output = output.strip() AttributeError: 'list' object has no attribute 'strip' ------------------------------------------------- I made a guess that the offending line should be output[0].strip() but then I got the following error: ------------------------------------------------- Traceback (most recent call last): File "setup.py", line 280, in <module> ri_ext = getRinterface_ext() File "setup.py", line 206, in getRinterface_ext include_dirs.extend(args.I) TypeError: 'NoneType' object is not iterable ------------------------------------------------- Suggestions welcome. Ian ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list