[Numpy-discussion] ValueError: setting an array element with a sequence.
Tue Sep 16 13:58:34 CDT 2008
Charles R Harris <charlesr.harris <at> gmail.com> writes:
> On Tue, Sep 16, 2008 at 9:05 AM, Lisa Delgado <LisaAnnDelgado <at> gmail.com>
> 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 now
> having problems running my program. I get the following error.
> Traceback (most recent call last):
> File "/Users/Lisa/Documents/Dissertation work/PythonPrograms/NashEq.py", line
> 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.Chuck
> Numpy-discussion mailing list
> Numpy-discussion <at> scipy.org
buyeragents is a list.
I made no changes to the program from when it was working on numpy 1.1.0 to now
with numpy 1.0.4.
PS - This is my own program for computing Nash equilibria.
More information about the Numpy-discussion