Hi Simon -
It looks like your default Python is now 3.x rather than 2.x. The built-in
function reduce() was moved to functools.reduce() as of version 3.0. You can
confirm whether this is the case via “python --version” on the command line.
One solution might be to make 2.7 the default again, perhaps via symlink to
/usr/bin/python2.7 or adjusting your $PATH, although honestly I'm not sure
about which Python is actually used by the precompiled Edu binaries. Maybe
others can chime in on that.
Hope that helps.
Cheers,
Jared
--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/
On Feb 16, 2015, at 8:24 AM, Simon Fortier
<simon.fortie...@umontreal.ca<mailto:simon.fortie...@umontreal.ca>> wrote:
Hi,
I'm trying to select specific chains with the following command, which used to
work.
select xxxx, /3J3A//D
However, under Yosemite 10.10.2 (latest update), I keep receiving the following
error msg and can't select chains anymore...very annoying...any ideas?
Traceback (most recent call last):
File "/Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/parser.py",
line 254, in parse
self.result=apply(layer.kw<http://layer.kw/>[0],layer.args,layer.kw_args)
File
"/Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/selecting.py", line
103, in select
selection = selector.process(selection)
File
"/Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/selector.py", line
113, in process
st = reduce(lambda x,y:x+"&"+y,lst)
AttributeError: 'module' object has no attribute 'reduce'
Thanks
--
Simon Fortier
Ph.D Candidate
Institute of Research in Immunology and Cancer
Université de Montréal
------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
------------------------------------------------------------------------------
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=190641631&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net