On 05/06/14 23:36, Colin Ross wrote:
I am attempting to run the following in python:
|from scipyimport interpolate|
This list is for those learning the core Python language and its
standard library.
Support for scipy is probably best gained from the scipy forum
The MacPython list may also be able to help with MacOS specific queries.
But there are some Mac/Scipy users here so I'll leave it to them to
chime in if they can help.
I receive this error message:
|Traceback (most recent call last):
File "<stdin>", line1, in <module>
File
"/Library/Python/2.7/site-packages/scipy-0.11.0.dev_0496569_20111005-py2.7-macosx-10.7-x86_64.egg/scipy/interpolate/__init__.py",
line156, in <module>
from ndgriddataimport *
File
"/Library/Python/2.7/site-packages/scipy-0.11.0.dev_0496569_20111005-py2.7-macosx-10.7-x86_64.egg/scipy/interpolate/ndgriddata.py",
line9, in <module>
from interpndimport LinearNDInterpolator, NDInterpolatorBase, \
File "numpy.pxd", line172, in init
interpnd(scipy/interpolate/interpnd.c:7696)
ValueError: numpy.ndarray has the wrong size, try recompiling|
I am currently running Mac OS X Lion 10.7.5 and Python 2.7.1. with
MacPorts installed.
I am attempting to run the code on a different computer than it was
created on. After doing some reading my understanding is that this error
may be a result of the ABI not being forward compatible. To try and
solve the issue I updated my MacPorts and then ran ($ sudo port upgrade
outdated) to upgrade the installed ports. However, the same error
continues to appear when I try and run the code.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor