Hey that works!!

Thanks a lot !!

On Wed, May 21, 2008 at 3:16 PM, Anthony Tuininga <
[EMAIL PROTECTED]> wrote:

> Python 2.3 should work, I believe. Did you first run this?
>
> python setup.py build
> python setup.py install
>
> That will ensure that the module you are missing is built. :-)
>
> Anthony
>
> On Wed, May 21, 2008 at 12:28 PM, Alok Kumar <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > When I am trying with 4.0b1 version of cx_Freeze, seems it does not work
> > with python 2.3 (installed on the box.). Do I need higher version of
> python
> > to make it work?
> >
> > The following command ended up in import error as below.
> >  from cx_Freeze import main
> >   File "/home/akumar/cx_Freeze-4.0b1/cx_Freeze/__init__.py", line 7, in ?
> >     from freezer import *
> >   File "/home/akumar/cx_Freeze-4.0b1/cx_Freeze/freezer.py", line 19, in ?
> >     import cx_Freeze.util
> > ImportError: No module named util
> >
> >
> > python freeze -c myscript.py
> >
> > Regards
> > Alok
> >
> > On Wed, May 21, 2008 at 9:53 AM, Anthony Tuininga
> > <[EMAIL PROTECTED]> wrote:
> >>
> >> The older version of cx_Freeze does not work as well when using a
> >> shared library for Python. You can set the environment variable
> >> LD_LIBRARY_PATH to point to the location of your choice. When freezing
> >> I generally place all libraries that will not be found on a target
> >> machine in the same directory as the executable itself. You can set
> >> LD_LIBRARY_PATH yourself or you can use the ConsoleSetLibPath base
> >> executable with version 3 or you can simply use version 4 which does
> >> this automatically now. If you want something else you will have to
> >> set LD_LIBRARY_PATH yourself. Hope this helps.
> >>
> >> Anthony
> >>
> >> On Tue, May 20, 2008 at 6:07 PM, Alok Kumar <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > thanks for reply. When I moved the shared lib to /usr/lib/ it did not
> >> > resolve it. Do I need to set some environmental variable.
> >> > However it was looking for a set path /usr/lib/python2.4/lib-shared/..
> >> >
> >> > The box on which I applied cx_freeze it was picking up the libs from
> >> > this
> >> > path (i.e. math.so and so on available in python2.x/lib-shared/ path).
> I
> >> > am
> >> > not confortable keeping shared lib in this path.
> >> >
> >> > Is there any way I can move the shared lib to standard path i.e.
> >> > /usr/lib
> >> > etc.
> >> >
> >> > Regards
> >> > Alok
> >> >
> >> > On Tue, May 20, 2008 at 11:51 AM, Anthony Tuininga
> >> > <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> You can share the shared libraries just fine. I've done that myself
> >> >> quite a bit. BTW, the new version (4.0b1) also allows you to share
> the
> >> >> module code in a zip file which would reduce the footprint further if
> >> >> that is of interest to you.
> >> >>
> >> >> Anthony
> >> >>
> >> >> On Mon, May 19, 2008 at 2:02 PM, Alok Kumar <[EMAIL PROTECTED]>
> wrote:
> >> >> > Hi,
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> I am using 3.0.3 cx-freeze utility. I got an executable of my
> python
> >> >> >> script along with set of shared libraries.
> >> >> >>
> >> >> >> I need to use this executable on an embedded target. When I tried
> to
> >> >> >> put
> >> >> >> shared libraries on /usr/lib/ path, it did not work and looks like
> >> >> >> libraries
> >> >> >> needed to be in same folder.
> >> >> >>
> >> >> >> Which duplicates the shared libs, if I have another python
> >> >> >> executable.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Please suggest if we can put shared lib at common path and use it
> >> >> >> for
> >> >> >> couple of python executables.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Regards
> >> >> >>
> >> >> >> Alok
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> NOTICE: The information contained in this email and any document
> >> >> >> attached
> >> >> >> hereto is intended only for the named recipient(s). It is the
> >> >> >> property
> >> >> >> of
> >> >> >> Cernium Corporation and shall not be used, disclosed or reproduced
> >> >> >> without
> >> >> >> the express written consent of Cernium Corporation. If you are not
> >> >> >> the
> >> >> >> intended recipient (or the employee or agent responsible for
> >> >> >> delivering
> >> >> >> this
> >> >> >> message in confidence to the intended recipient(s)), you are
> hereby
> >> >> >> notified
> >> >> >> that you have received this transmittal in error, and any review,
> >> >> >> dissemination, distribution or copying of this transmittal or its
> >> >> >> attachments is strictly prohibited. If you have received this
> >> >> >> transmittal
> >> >> >> and/or attachments in error, please notify me immediately by reply
> >> >> >> email or
> >> >> >> telephone and immediately delete this message and all its
> >> >> >> attachments.
> >> >> >> Thank
> >> >> >> you.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Regards
> >> >> > Alok Kumar
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Regards
> >> >> > Alok Kumar
> >> >> >
> >> >> >
> >> >> >
> -------------------------------------------------------------------------
> >> >> > This SF.net email is sponsored by: Microsoft
> >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> >> > _______________________________________________
> >> >> > cx-freeze-users mailing list
> >> >> > [email protected]
> >> >> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> -------------------------------------------------------------------------
> >> >> This SF.net email is sponsored by: Microsoft
> >> >> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> >> _______________________________________________
> >> >> cx-freeze-users mailing list
> >> >> [email protected]
> >> >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> >> >
> >> >
> >> >
> >> > --
> >> > Regards
> >> > Alok Kumar
> >> >
> >> >
> -------------------------------------------------------------------------
> >> > This SF.net email is sponsored by: Microsoft
> >> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> > _______________________________________________
> >> > cx-freeze-users mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> >> >
> >> >
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> cx-freeze-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> >
> >
> >
> > --
> > Regards
> > Alok Kumar
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > cx-freeze-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>



-- 
Regards
Alok Kumar
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to