Installation of Python and wxPython

Hi All,

My application is using Python but the calls to Python functions are made through wxPython (i.e. wxPython is used as a wrapper).

Issue is that if Python and wxPython are not installed on my machine and I try to run my application, it gives an error saying that corresponding Python Dlls are not found. My question is as follows:
Is it possible to use Python and wxPython without installing them? If yes, how ?

Awaiting your feedback.

Thanks and Regards,
Romilla

Yes, it is posible to use them, py2exe is a module designed to pack python and all the required libraries so you can obtain a distributable version of your script. The _application_ will have someting like over 3 Mb due to these libraries.
see
http://py2exe.sourceforge.net/
for more info

···

On Tue, 2 Mar 2004 18:43:22 +0530, Romilla <romilla@jopasana.com> wrote:

Hi All,

My application is using Python but the calls to Python functions are made through wxPython (i.e. wxPython is used as a wrapper).

Issue is that if Python and wxPython are not installed on my machine and I try to run my application, it gives an error saying that corresponding Python Dlls are not found. My question is as follows:
Is it possible to use Python and wxPython without installing them? If yes, how ?

--
Peter Damoc
Hacker Wannabe
Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH)

Hi,

I tried to use PY2EXE but it converts *.py files to corresponding *.exe. But
that is not my requirement.

Following is my requirement explained in detail.

What I wish to achieve is my applications reads PY files (Python files) and
performs some operations based on that.
Since Python files are being read by my application, I need to install
Python and wxPython on my machine.
However I want my application to run without installing Python and wxPython.
Is it possible?

Please let me know if I am missing some point in using PY2EXE. Can you
please give some more
information regarding this?

Waiting for your feedback ASAP,

Regards,
Romilla

···

----- Original Message -----
From: "Peter Damoc" <pdamoc@gmx.net>
To: <wxPython-dev@lists.wxwindows.org>
Sent: Tuesday, March 02, 2004 7:10 PM
Subject: Re: [wxPython-dev] Installation of Python and wxPython

On Tue, 2 Mar 2004 18:43:22 +0530, Romilla <romilla@jopasana.com> wrote:

> Hi All,
>
> My application is using Python but the calls to Python functions are
> made through wxPython (i.e. wxPython is used as a wrapper).
>
> Issue is that if Python and wxPython are not installed on my machine and
> I try to run my application, it gives an error saying that corresponding
> Python Dlls are not found. My question is as follows:
> Is it possible to use Python and wxPython without installing them? If
> yes, how ?

Yes, it is posible to use them, py2exe is a module designed to pack python
and all the required libraries so you can obtain a distributable version
of your script. The _application_ will have someting like over 3 Mb due to
these libraries.
see
http://py2exe.sourceforge.net/
for more info
--
Peter Damoc
Hacker Wannabe
Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH)

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-dev-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-dev-help@lists.wxwindows.org

Romilla wrote:

Hi,

I tried to use PY2EXE but it converts *.py files to corresponding *.exe. But
that is not my requirement.

Following is my requirement explained in detail.

What I wish to achieve is my applications reads PY files (Python files) and
performs some operations based on that.
Since Python files are being read by my application, I need to install
Python and wxPython on my machine.
However I want my application to run without installing Python and wxPython.
Is it possible?

Is your application written in Python or in C++?

If in Python then you can still use py2exe on your application and have it dynamically load code at runtime from other python files as needed. See the Python docs for things like eval(), exec() and __import__.

If your app is in C/C++ and you are wanting to embed Python and wxPython within that then there is a sample in wxPython/samples/embedding that you should look at. In this case you would link your app with the Python DLL and would need to include any of the system or wxpython .py and .pyd files that are needed, but you would not have to do separate installs of Python and wxPython. If your app is also using wxWidgets then you need to ensure that both your app and wxPython are using the same wx DLL. For further questions about this I suggest that you ask on the wxPython-users list as there are people there who have done this before.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!