> One quick thing that may solve the problem is to first check that when you call python from the terminal, that it says the Python interpreter is from the EPD. It should say something like "Python 2.7.3 [EPD 7.2.2 ….". If not, then your python is not setup properly to use EPD from the command line.(On the mac, installing EPD sets the EPD Python to default, but if I remember correctly it does not do this on linux for compatibility reasons.)
Yes, running Python correctly reports the EPD version on my mac and in
Ubuntu (both are running EPD 7.2-2).
>
> If it checks out, go into the downloaded qutip-1.1.3 folder and cd to:
>
> qutip/cyQ/
>
> and from the terminal run:
>
> python setup.py build_ext --inplace
>
> and then try to install again. Essentially, you are rebuilding the c-code files from their Cython source. If the error still occurs, then I think Distutils is linking to the wrong Python header files.
This did not seem to change anything. I suspect that the issue comes
from the sudo'ed python not being the EPD version. At first, I ran
"sudo python setup.py install" and then couldn't import qutip. To fix
that problem, I used the full path to EPD python in the sudo command.
While this correctly installs to the EPD python path, it may not be
compiling to the right python headers etc.
My solution today was to simply install the necessary packages to the
system python in ubuntu (also 64-bit python 2.7). With apt-get this is
easy (I only needed to add scipy and pyside, the rest I already had).
I'm happy to keep trying things to make EPD work for the sake of
helping others and resolving this issue, but my experience suggests
that in ubuntu, it is simple enough to install the required packages
and then install qutip.
-Andy
PS - To fix an error calling the "factorial" function, I had to
explicitly import that from scipy.misc in orbital.py, states.py, and
wigner.py. I discovered that in the demos but didn't file a bug report
since it's a quick fix (let me know if I should).