[Numpy-discussion] numpy and py2exe

Charles R Harris charlesr.harris at gmail.com
Thu Aug 28 17:43:47 EDT 2008


On Thu, Aug 28, 2008 at 11:50 AM, Charles R Harris <
charlesr.harris at gmail.com> wrote:

>
>
> On Thu, Aug 28, 2008 at 11:36 AM, Christopher Barker <
> Chris.Barker at noaa.gov> wrote:
>
>> Hi all,
>>
>> An issue just came up with numpy and py2exe on the wxPython list. A
>> solution has been found, but I thought I'd post here, so that it could
>> be on the numpy developers' radar when considering the structure of
>> numpy for the future:
>>
>> > I'm compile a wxPython script using GUI2Exe, and am getting the
>> > following when running the produced exe:
>> >
>> > $ ./dist/svm.exe
>> > Traceback (most recent call last):
>> >   File "svm.py", line 28, in <module>
>> >     import graphic_svm_data
>> >   File "graphic_svm_data.pyo", line 29, in <module>
>> >   File "floatcanvas\NavCanvas.pyo", line 7, in <module>
>> >   File "floatcanvas\FloatCanvas.pyo", line 7, in <module>
>> >   File "numpy\__init__.pyo", line 93, in <module>
>> >   File "numpy\add_newdocs.pyo", line 9, in <module>
>> >   File "numpy\lib\__init__.pyo", line 19, in <module>
>> >   File "numpy\lib\financial.pyo", line 78, in <module>
>> > TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
>>
>> > I tried to add numpy.lib.financial to the Excludes and Ignores list, but
>> am still getting this error.
>> >
>> > Googling found that this problem is a known bug:
>> http://article.gmane.org/gmane.comp.python.py2exe/2920
>>
>> The solution was to:
>
>
> <snip>
>
> This needs to be fixed in trunk, please open a ticket. There have been
> several other fixes for -OO recently and I don't think we are done with them
> yet.
>

I thought I had seen this before and indeed it has been reported. However,
financial has been changed and this particular error should no longer be a
problem.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080828/0e9f23b9/attachment.html>


More information about the NumPy-Discussion mailing list