Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Freezing python files into executables

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


girishvs at gmail

Nov 3, 2009, 11:15 AM

Post #1 of 11 (512 views)
Permalink
Freezing python files into executables

Hello,
I have been using freeze.py on 32 bit linux distributions without a
problem. But recently I tried to do the same on RHEL5 x86_64 and ran
into some issues.

1) When I ran the script, I got
Error: needed directory /usr/lib/python2.4/config not found

2) Then I "yum install python-devel" which installed python-devel.i386
and python-devel.x86_64. Then when I tried freezing, it worked but
make barfed up a bunch of errors during ld like

/usr/bin/ld: warning: i386 architecture of input file
`/usr/lib/python2.4/config/libpython2.4.a(rangeobject.o)' is
incompatible with i386:x86-64 output

and

/usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function
`posix_getcwd':
(.text+0x53a1): undefined reference to `PyEval_RestoreThread'

3) I tried uninstalling python-devel.i386 (retaining only the x86_64)
and freeze fails with the same error message as in 1

Any help with this is greatly appreciated.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list


rami.chowdhury at gmail

Nov 3, 2009, 11:21 AM

Post #2 of 11 (495 views)
Permalink
Re: Freezing python files into executables [In reply to]

On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
<girishvs [at] gmail> wrote:

> Hello,
> I have been using freeze.py on 32 bit linux distributions without a
> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
> into some issues.
>
> 1) When I ran the script, I got
> Error: needed directory /usr/lib/python2.4/config not found
>

I don't know anything about freeze.py but on 64-bit Red Hat distros (RHEL,
Fedora, etc) it should be /usr/lib64/python2.4/config :-)


--
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" --
Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
--
http://mail.python.org/mailman/listinfo/python-list


girishvs at gmail

Nov 3, 2009, 11:25 AM

Post #3 of 11 (499 views)
Permalink
Re: Freezing python files into executables [In reply to]

Hi Rami,
Thanks for pointing this out. I did see that point - but apart from
installing python-devel (which has created and populated
/usr/lib64/python2.4/...) I am not sure what I should do - is there
some setting in python where I can ask it to look at lib64 instead of
lib?
Thanks.

On Tue, Nov 3, 2009 at 11:21 AM, Rami Chowdhury
<rami.chowdhury [at] gmail> wrote:
> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
> <girishvs [at] gmail> wrote:
>
>> Hello,
>> I have been using freeze.py on 32 bit linux distributions without a
>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>> into some issues.
>>
>> 1) When I ran the script, I got
>> Error: needed directory /usr/lib/python2.4/config not found
>>
>
> I don't know anything about freeze.py but on 64-bit Red Hat distros (RHEL,
> Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>
>
> --
> Rami Chowdhury
> "Never attribute to malice that which can be attributed to stupidity" --
> Hanlon's Razor
> 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
>
--
http://mail.python.org/mailman/listinfo/python-list


mal at egenix

Nov 3, 2009, 11:32 AM

Post #4 of 11 (494 views)
Permalink
Re: Freezing python files into executables [In reply to]

Rami Chowdhury wrote:
> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
> <girishvs [at] gmail> wrote:
>
>> Hello,
>> I have been using freeze.py on 32 bit linux distributions without a
>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>> into some issues.
>>
>> 1) When I ran the script, I got
>> Error: needed directory /usr/lib/python2.4/config not found
>>
>
> I don't know anything about freeze.py but on 64-bit Red Hat distros
> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)

This sounds a lot like a missing Python devel RPM.

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Nov 03 2009)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
--
http://mail.python.org/mailman/listinfo/python-list


girishvs at gmail

Nov 3, 2009, 11:35 AM

Post #5 of 11 (495 views)
Permalink
Re: Freezing python files into executables [In reply to]

Hey Marc-Andre,
Ummm - I have installed python-devel.x86_64 and checked that the
/usr/lib64/python2.4/ is populated - anything else I can/shuld do to
check/ensure the the devel rpm is installed?
Thanks.

On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal [at] egenix> wrote:
> Rami Chowdhury wrote:
>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>> <girishvs [at] gmail> wrote:
>>
>>> Hello,
>>> I have been using freeze.py on 32 bit linux distributions without a
>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>> into some issues.
>>>
>>> 1) When I ran the script, I got
>>> Error: needed directory /usr/lib/python2.4/config not found
>>>
>>
>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>
> This sounds a lot like a missing Python devel RPM.
>
> --
> Marc-Andre Lemburg
> eGenix.com
>
> Professional Python Services directly from the Source  (#1, Nov 03 2009)
>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>
>
>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>           Registered at Amtsgericht Duesseldorf: HRB 46611
>               http://www.egenix.com/company/contact/
>
--
http://mail.python.org/mailman/listinfo/python-list


mal at egenix

Nov 3, 2009, 11:47 AM

Post #6 of 11 (497 views)
Permalink
Re: Freezing python files into executables [In reply to]

Girish Venkatasubramanian wrote:
> Hey Marc-Andre,
> Ummm - I have installed python-devel.x86_64 and checked that the
> /usr/lib64/python2.4/ is populated - anything else I can/shuld do to
> check/ensure the the devel rpm is installed?

If you have the config/ sub-dir in there, things should be
fine.

However, it's possible that you need to tweek the freeze.py
script a little, since RedHat chose to split the Python
installation on x64 in two parts and they may have missed
patching freeze.py as well:

The platform independent parts are in /usr/lib, whereas the
platform dependent parts are in /usr/lib64.

Python normally doesn't support this. It only has a
prefix and an exec_prefix, but those only allow to do
things like prefix=/usr and exec_prefix=/usr64, not
changing the lib/ part in /usr/lib/.

> Thanks.
>
> On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>> Rami Chowdhury wrote:
>>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>>> <girishvs [at] gmail> wrote:
>>>
>>>> Hello,
>>>> I have been using freeze.py on 32 bit linux distributions without a
>>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>>> into some issues.
>>>>
>>>> 1) When I ran the script, I got
>>>> Error: needed directory /usr/lib/python2.4/config not found
>>>>
>>>
>>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>>
>> This sounds a lot like a missing Python devel RPM.
>>
>> --
>> Marc-Andre Lemburg
>> eGenix.com
>>
>> Professional Python Services directly from the Source (#1, Nov 03 2009)
>>>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
>> ________________________________________________________________________
>>
>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>
>>
>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>> Registered at Amtsgericht Duesseldorf: HRB 46611
>> http://www.egenix.com/company/contact/
>>

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Nov 03 2009)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
--
http://mail.python.org/mailman/listinfo/python-list


girishvs at gmail

Nov 3, 2009, 11:57 AM

Post #7 of 11 (497 views)
Permalink
Re: Freezing python files into executables [In reply to]

I checked and ls /usr/lib64/python2.4/config/ returns
config.c config.c.in install-sh libpython2.4.a Makefile makesetup
python.o Setup Setup.config Setup.local

so I am guessing the python-devel installation went off OK, from what you say.

I looked at the freeze.py code and I see your point. But for tweaking,
I would need to know what modules should get included from lib64
instead of lib and hardcode them ....
Maybe tinkering around with the makefile which is produced by freeze
is a better way to go?

But since I need to freeze this python code by today, can you suggest
any other tool to do this?

Thanks.

On Tue, Nov 3, 2009 at 11:47 AM, M.-A. Lemburg <mal [at] egenix> wrote:
> Girish Venkatasubramanian wrote:
>> Hey Marc-Andre,
>> Ummm - I have installed python-devel.x86_64 and checked that the
>> /usr/lib64/python2.4/ is populated - anything else I can/shuld do to
>> check/ensure the the devel rpm is installed?
>
> If you have the config/ sub-dir in there, things should be
> fine.
>
> However, it's possible that you need to tweek the freeze.py
> script a little, since RedHat chose to split the Python
> installation on x64 in two parts and they may have missed
> patching freeze.py as well:
>
> The platform independent parts are in /usr/lib, whereas the
> platform dependent parts are in /usr/lib64.
>
> Python normally doesn't support this. It only has a
> prefix and an exec_prefix, but those only allow to do
> things like prefix=/usr and exec_prefix=/usr64, not
> changing the lib/ part in /usr/lib/.
>
>> Thanks.
>>
>> On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>>> Rami Chowdhury wrote:
>>>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>>>> <girishvs [at] gmail> wrote:
>>>>
>>>>> Hello,
>>>>> I have been using freeze.py on 32 bit linux distributions without a
>>>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>>>> into some issues.
>>>>>
>>>>> 1) When I ran the script, I got
>>>>> Error: needed directory /usr/lib/python2.4/config not found
>>>>>
>>>>
>>>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>>>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>>>
>>> This sounds a lot like a missing Python devel RPM.
>>>
>>> --
>>> Marc-Andre Lemburg
>>> eGenix.com
>>>
>>> Professional Python Services directly from the Source  (#1, Nov 03 2009)
>>>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>>> ________________________________________________________________________
>>>
>>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>>
>>>
>>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>>               http://www.egenix.com/company/contact/
>>>
>
> --
> Marc-Andre Lemburg
> eGenix.com
>
> Professional Python Services directly from the Source  (#1, Nov 03 2009)
>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>
>
>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>           Registered at Amtsgericht Duesseldorf: HRB 46611
>               http://www.egenix.com/company/contact/
>
--
http://mail.python.org/mailman/listinfo/python-list


rami.chowdhury at gmail

Nov 3, 2009, 12:31 PM

Post #8 of 11 (485 views)
Permalink
Re: Freezing python files into executables [In reply to]

On Tue, 03 Nov 2009 11:57:17 -0800, Girish Venkatasubramanian
<girishvs [at] gmail> wrote:

> I checked and ls /usr/lib64/python2.4/config/ returns
> config.c config.c.in install-sh libpython2.4.a Makefile makesetup
> python.o Setup Setup.config Setup.local
>
> so I am guessing the python-devel installation went off OK, from what
> you say.
>
> I looked at the freeze.py code and I see your point. But for tweaking,
> I would need to know what modules should get included from lib64
> instead of lib and hardcode them ....
> Maybe tinkering around with the makefile which is produced by freeze
> is a better way to go?
>
> But since I need to freeze this python code by today, can you suggest
> any other tool to do this?
>

I believe /usr/lib64 on a 64-bit RHEL will contain everything you need ;
can you try just changing the directory freeze.py looks at to 'lib64', and
see if the freeze works?

>
> On Tue, Nov 3, 2009 at 11:47 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>> Girish Venkatasubramanian wrote:
>>> Hey Marc-Andre,
>>> Ummm - I have installed python-devel.x86_64 and checked that the
>>> /usr/lib64/python2.4/ is populated - anything else I can/shuld do to
>>> check/ensure the the devel rpm is installed?
>>
>> If you have the config/ sub-dir in there, things should be
>> fine.
>>
>> However, it's possible that you need to tweek the freeze.py
>> script a little, since RedHat chose to split the Python
>> installation on x64 in two parts and they may have missed
>> patching freeze.py as well:
>>
>> The platform independent parts are in /usr/lib, whereas the
>> platform dependent parts are in /usr/lib64.
>>
>> Python normally doesn't support this. It only has a
>> prefix and an exec_prefix, but those only allow to do
>> things like prefix=/usr and exec_prefix=/usr64, not
>> changing the lib/ part in /usr/lib/.
>>
>>> Thanks.
>>>
>>> On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>>>> Rami Chowdhury wrote:
>>>>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>>>>> <girishvs [at] gmail> wrote:
>>>>>
>>>>>> Hello,
>>>>>> I have been using freeze.py on 32 bit linux distributions without a
>>>>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>>>>> into some issues.
>>>>>>
>>>>>> 1) When I ran the script, I got
>>>>>> Error: needed directory /usr/lib/python2.4/config not found
>>>>>>
>>>>>
>>>>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>>>>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>>>>
>>>> This sounds a lot like a missing Python devel RPM.
>>>>
>>>> --
>>>> Marc-Andre Lemburg
>>>> eGenix.com
>>>>
>>>> Professional Python Services directly from the Source  (#1, Nov 03
>>>> 2009)
>>>>>>> Python/Zope Consulting and Support ...      
>>>>>>>  http://www.egenix.com/
>>>>>>> mxODBC.Zope.Database.Adapter ...            
>>>>>>> http://zope.egenix.com/
>>>>>>> mxODBC, mxDateTime, mxTextTools ...      
>>>>>>>  http://python.egenix.com/
>>>> ________________________________________________________________________
>>>>
>>>> ::: Try our new mxODBC.Connect Python Database Interface for free !
>>>> ::::
>>>>
>>>>
>>>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>>>               http://www.egenix.com/company/contact/
>>>>
>>
>> --
>> Marc-Andre Lemburg
>> eGenix.com
>>
>> Professional Python Services directly from the Source  (#1, Nov 03 2009)
>>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>> ________________________________________________________________________
>>
>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>
>>
>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>               http://www.egenix.com/company/contact/
>>



--
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" --
Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
--
http://mail.python.org/mailman/listinfo/python-list


girishvs at gmail

Nov 3, 2009, 1:23 PM

Post #9 of 11 (483 views)
Permalink
Re: Freezing python files into executables [In reply to]

Will try that.

Meanwhile I went ahead and used cx_freeze and that seems to work OK.

Thanks for your help Rami and Marc-Andre.

On Tue, Nov 3, 2009 at 12:31 PM, Rami Chowdhury
<rami.chowdhury [at] gmail> wrote:
> On Tue, 03 Nov 2009 11:57:17 -0800, Girish Venkatasubramanian
> <girishvs [at] gmail> wrote:
>
>> I checked and ls /usr/lib64/python2.4/config/ returns
>> config.c config.c.in install-sh libpython2.4.a Makefile makesetup
>> python.o Setup Setup.config Setup.local
>>
>> so I am guessing the python-devel installation went off OK, from what you
>> say.
>>
>> I looked at the freeze.py code and I see your point. But for tweaking,
>> I would need to know what modules should get included from lib64
>> instead of lib and hardcode them ....
>> Maybe tinkering around with the makefile which is produced by freeze
>> is a better way to go?
>>
>> But since I need to freeze this python code by today, can you suggest
>> any other tool to do this?
>>
>
> I believe /usr/lib64 on a 64-bit RHEL will contain everything you need ; can
> you try just changing the directory freeze.py looks at to 'lib64', and see
> if the freeze works?
>
>>
>> On Tue, Nov 3, 2009 at 11:47 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>>>
>>> Girish Venkatasubramanian wrote:
>>>>
>>>> Hey Marc-Andre,
>>>> Ummm - I have installed python-devel.x86_64 and checked that the
>>>> /usr/lib64/python2.4/ is populated - anything else I can/shuld do to
>>>> check/ensure the the devel rpm is installed?
>>>
>>> If you have the config/ sub-dir in there, things should be
>>> fine.
>>>
>>> However, it's possible that you need to tweek the freeze.py
>>> script a little, since RedHat chose to split the Python
>>> installation on x64 in two parts and they may have missed
>>> patching freeze.py as well:
>>>
>>> The platform independent parts are in /usr/lib, whereas the
>>> platform dependent parts are in /usr/lib64.
>>>
>>> Python normally doesn't support this. It only has a
>>> prefix and an exec_prefix, but those only allow to do
>>> things like prefix=/usr and exec_prefix=/usr64, not
>>> changing the lib/ part in /usr/lib/.
>>>
>>>> Thanks.
>>>>
>>>> On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal [at] egenix> wrote:
>>>>>
>>>>> Rami Chowdhury wrote:
>>>>>>
>>>>>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>>>>>> <girishvs [at] gmail> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>> I have been using freeze.py on 32 bit linux distributions without a
>>>>>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>>>>>> into some issues.
>>>>>>>
>>>>>>> 1) When I ran the script, I got
>>>>>>> Error: needed directory /usr/lib/python2.4/config not found
>>>>>>>
>>>>>>
>>>>>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>>>>>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>>>>>
>>>>> This sounds a lot like a missing Python devel RPM.
>>>>>
>>>>> --
>>>>> Marc-Andre Lemburg
>>>>> eGenix.com
>>>>>
>>>>> Professional Python Services directly from the Source  (#1, Nov 03
>>>>> 2009)
>>>>>>>>
>>>>>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>>>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>>>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>>>>>
>>>>>
>>>>> ________________________________________________________________________
>>>>>
>>>>> ::: Try our new mxODBC.Connect Python Database Interface for free !
>>>>> ::::
>>>>>
>>>>>
>>>>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>>>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>>>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>>>>               http://www.egenix.com/company/contact/
>>>>>
>>>
>>> --
>>> Marc-Andre Lemburg
>>> eGenix.com
>>>
>>> Professional Python Services directly from the Source  (#1, Nov 03 2009)
>>>>>>
>>>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>>>
>>> ________________________________________________________________________
>>>
>>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>>
>>>
>>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>>               http://www.egenix.com/company/contact/
>>>
>
>
>
> --
> Rami Chowdhury
> "Never attribute to malice that which can be attributed to stupidity" --
> Hanlon's Razor
> 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
>
--
http://mail.python.org/mailman/listinfo/python-list


kyosohma at gmail

Nov 3, 2009, 2:28 PM

Post #10 of 11 (480 views)
Permalink
Re: Freezing python files into executables [In reply to]

On Nov 3, 3:23 pm, Girish Venkatasubramanian <giris...@gmail.com>
wrote:
> Will try that.
>
> Meanwhile I went ahead and used cx_freeze and that seems to work OK.
>
> Thanks for your help Rami and Marc-Andre.


Something that you might want to try in the future is GUI2Exe, which
allows you to play with a whole slew of freezing modules:

http://code.google.com/p/gui2exe/

I've been using it to make executables on Windows through it's py2exe
implementation.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
--
http://mail.python.org/mailman/listinfo/python-list


aahz at pythoncraft

Nov 5, 2009, 5:54 PM

Post #11 of 11 (449 views)
Permalink
Re: Freezing python files into executables [In reply to]

In article <c3604abd-677a-428a-94fa-c0e3f5a22912 [at] a21g2000yqc>,
Mike Driscoll <kyosohma [at] gmail> wrote:
>
>Something that you might want to try in the future is GUI2Exe, which
>allows you to play with a whole slew of freezing modules:

Does GUI2Exe work from just the command-line? I spent a fair amount of
time getting rid of the Mac GUI .pkg creator and I sure don't want to
introduce more GUI into our ant build process.
--
Aahz (aahz [at] pythoncraft) <*> http://www.pythoncraft.com/

[on old computer technologies and programmers] "Fancy tail fins on a
brand new '59 Cadillac didn't mean throwing out a whole generation of
mechanics who started with model As." --Andrew Dalke
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.