[Numpy-discussion] ValueError: setting an array element with a sequence.
Charles R Harris
Tue Sep 16 11:05:03 CDT 2008
On Tue, Sep 16, 2008 at 9:05 AM, Lisa Delgado <LisaAnnDelgado@gmail.com>wrote:
> I had previously run a program successfully when using numpy 1.1.0. I just
> downloaded the Enthought Python Distribution, which has numpy 1.0.4 and am
> having problems running my program. I get the following error.
> Traceback (most recent call last):
> File "/Users/Lisa/Documents/Dissertation work/PythonPrograms/NashEq.py",
> 57, in <module>
> EffortCosts[i,j] = buyeragents[i][j]
> ValueError: setting an array element with a sequence.
What type is buyeragents? Numpy 1.1.0 fixes a number of bugs in 1.0.4 and
you may have been bitten by that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion