Hi Jared, Simon and all Edu PyMOL users, I don't think Python 3.x is involved here, the interpreter does know about "reduce". However, inside list comprehension syntax, "reduce" is not known anymore (?). Edu MacPyMOL is linked against Python 2.5, which on OS X 10.10 is actually symlinked to Python 2.6.
So far Schrödinger had no plans to update the Edu builds. They "just worked" and provided enough functionality for educational purposes. Unfortunately, this is not true anymore for OS X 10.10. That being said, we don't want to provide software that doesn't work, and we also are committed to provide free and easy (precompiled) PyMOL access to people in education. We are now working on an updated Edu build, testing and approval in progress. Cheers, Thomas On 17 Feb 2015, at 09:43, Sampson, Jared <[email protected]> wrote: > 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 <[email protected]> > 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[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 -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. ------------------------------------------------------------------------------ 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 ([email protected]) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/[email protected]
