packaging python for install.

J

J

Hi everyone,


I have posted a question on this topic before and already received some
useful advice. I am basically trying to package python with
an App that embedds the interpretor. I am also including numarray (i.e.
I have a #include <numarray/arrayobject.h> in my C++ code). However it
looks like I have problems with numarray.

I have run the following:
where

setup.py contains

from distutils.core import setup
import py2exe

setup()

This produced the 'dist' directory including the library.zip file.
However there was also the following error message:
The following modules appear to be missing
['numarray._dotblas']

I renamed library.zip to python24.zip and changed the registry entry
PythonDir to c:\python24\dist... Then I started my app again. It seems
that native python (i.e. PyType_READY) worked fine, but a call to
numarray function PyArray_FromDimsAndData just crashes the App without
an error message.

I have also tried using

without success. Has anyone packaged numarray before... any advice ?


Cheers
Jochen
 
J

J

Hi


I found the solution to problem and I just want to document it for the
next guy. I
did not copy the content of the 'dist' directory created by Py2exe to
the folder containing my executable.

Changing HKEY_LOCAL_MACHINE\SOFTWARE\PythonCore\<version>. alone
did not work for me... maybe I should have found and changed PYTHONPATH
as
well :) Anyways, now I have a solution.

thx for all the help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top