cihologramas / pyoptools

Python tools for optical design
GNU General Public License v3.0
137 stars 46 forks source link

Installing on Enthought OSX #9

Closed GoogleCodeExporter closed 7 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to install in OS X 10.7

Here is what I did:
- Install gcc using https://github.com/kennethreitz/osx-gcc-installer
- cd to the pyoptools, when typing python setup.py install I get an error in 
line 80:
print string.join(l, '\n')

change this to simply: print l

choose one

this should compile and install the files in the user lib space. In my case:
/Users/carlos/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pyoptools

when typing from pyoptools.all import *

I get an error in zernike.py

change the following line:
from scipy import factorial, arange, comb as binomial
to:
from scipy import arange
from scipy.misc import factorial, comb as binomial

In principle I could use the math definitions but scipy is faster

Now I need to install OSMesa

Original issue reported on code.google.com by carlos.t...@gmail.com on 5 Oct 2013 at 9:54

ramezquitao commented 7 years ago

This is too old, and don't really know the status of this issue. Will close