fcichos / pyoptools

Automatically exported from code.google.com/p/pyoptools
Other
0 stars 0 forks source link

Installing on Enthought OSX #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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