Re: [Tutor] freeze

2009-06-29 Thread A.T.Hofkamp

col speed wrote:

HI Guys,
I have a small programme, called shop.py,  that I wish to make into a
"frozen binary" ( I think that's right - I'm using Linux Ubuntu 9.04
and I want the programme to work on a windows computer that doesn't
have Python installed).
I used freeze.py from examples/Tools and everything seemed to be going
well (I won't post the output as there is so much), but the last lines
are:

o M_xml__sax__xmlreader.o M_xmllib.o M_xmlrpclib.o
/usr/lib/python2.6/config/libpython2.6.a -L/usr/lib -lz  -lpthread
-ldl  -lutil -lm  -o shop
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [shop] Error 1

Any ideas of what is going wrong?


The linker cannot link against the 'z' library :)
At my Linux system, that library is at "/usr/lib/libz.a", which comes from the 
'zlib-devel' RPM. No doubt Ubuntu has a similar name for the z library.


I don't know what you are doing exactly, but it seems to me that a program 
linked against Linux libraries is not going to work at a non-linux system 
(much like you cannot run Windows binaries natively at a Linux system).


You may need to do the freezing at a Windows system or use a cross-compiler.


I would also like to ask your opinion - the programme is very small
(only 1.2kb!). Is there another way ? Am I totally wasting my time?


Install Python at the Windoes machine, and run shop.py in natively would seem 
like an alternative.
Even with freeze, you are basically installing Python, except it has a 
different name.



Albert
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] freeze

2009-06-28 Thread col speed
HI Guys,
I have a small programme, called shop.py,  that I wish to make into a
"frozen binary" ( I think that's right - I'm using Linux Ubuntu 9.04
and I want the programme to work on a windows computer that doesn't
have Python installed).
I used freeze.py from examples/Tools and everything seemed to be going
well (I won't post the output as there is so much), but the last lines
are:

o M_xml__sax__xmlreader.o M_xmllib.o M_xmlrpclib.o
/usr/lib/python2.6/config/libpython2.6.a -L/usr/lib -lz  -lpthread
-ldl  -lutil -lm  -o shop
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [shop] Error 1

Any ideas of what is going wrong?

I would also like to ask your opinion - the programme is very small
(only 1.2kb!). Is there another way ? Am I totally wasting my time?

Many thanks
Colin
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Freeze utility

2008-05-15 Thread Diego Trazzi
Can you recommended any good freeze utility for python to create  linux
standalone executables, other than the freeze.py ? this script doen't seems
to include my .gif images...

Thank you.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] freeze

2005-02-05 Thread Kent Johnson
Shitiz Bansal wrote:
Hi,
Do exe files generated by py2run on linux???i thought
it was only for windows.
py2exe makes Windows executables only.
http://starship.python.net/crew/theller/py2exe/
Kent
Shitiz
--- "Jacob S." <[EMAIL PROTECTED]> wrote:

My two bits.
1) Download py2exe found here
http://py2exe.sourceforge.net/
2) Make a setup file -- intructions can be found
through above link, I 
think.
(Hey that rhymes!)
3) Ask if you want my totally cool automation
technique
4) Ask more questions, go on we don't mind.

HTH,
Jacob Schmidt

Hi,
I intend to create compiled python binaries on
linux.
I understand that freeze can be used to do this.
But I have few doubts i would like to clarify.
1. In the freeze documentation i found the lines:
"One tricky issue: Freeze assumes that the Python
interpreter and
environment you're using to run Freeze is the same
one
that would be
used to run your program, which should also be the
same whose sources
and installed files you will learn about in the
next
section.  In
particular, your PYTHONPATH setting should be the
same
as for running
your program locally.  (Tip: if the program
doesn't
run when you type
"python hello.py" there's little chance of getting
the
frozen version
to run.)"
My intention is to create files which can be run
on
Linux systems with python not installed.Do the
above
lines mean that freeze can't do it(which defeats
the
very pupose of the program i guess.).
2. While compiling with freezeit seems that it
is
including all the available modules, even if they
are
not required.Of course using freeze -X is one
option,but it being really cumbersome, is there a
better option available.
In case the above issues do present a problem, is
there any alternative to freeze?
Shitiz

__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



	
		
__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] freeze

2005-02-05 Thread Jacob S.
Hey! Good question! I have no idea.
Jacob Schmidt

P.S.  Here's a cool setup script for py2exe if you want to try it though.
### setup.py ###
# Run the build process by entering 'setup.py py2exe' or
# 'python setup.py py2exe' in a console prompt.
from distutils.core import setup
import py2exe
import os
def getdir():
   current = os.getcwd()
   m = 'y'
   while m == 'y':
   print "Current directory is: %s" % current
   m = raw_input("Do you wish to change the directory? ")
   if m == 'y':
   n = raw_input("What is the new directory? ")
   if not n.count(":"):
   current = os.path.join(current,n)
   else:
   current = n
   os.chdir(current)
getdir()
listed = []
while 1:
   ask = raw_input('What is the file you want as an executable? ')
   if ask == 'quit' or ask == 'stop':
   break
   else:
   listed.append(os.path.join(desktop,ask))
os.chdir(uck)
setup(console = listed)
## End of setup.py ###
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] freeze

2005-02-05 Thread Shitiz Bansal
Hi,

Do exe files generated by py2run on linux???i thought
it was only for windows.

Shitiz
--- "Jacob S." <[EMAIL PROTECTED]> wrote:

> My two bits.
> 
> 1) Download py2exe found here
> http://py2exe.sourceforge.net/
> 2) Make a setup file -- intructions can be found
> through above link, I 
> think.
> (Hey that rhymes!)
> 3) Ask if you want my totally cool automation
> technique
> 4) Ask more questions, go on we don't mind.
> 
> HTH,
> Jacob Schmidt
> 
> > Hi,
> >
> > I intend to create compiled python binaries on
> linux.
> > I understand that freeze can be used to do this.
> > But I have few doubts i would like to clarify.
> >
> > 1. In the freeze documentation i found the lines:
> >
> > "One tricky issue: Freeze assumes that the Python
> > interpreter and
> > environment you're using to run Freeze is the same
> one
> > that would be
> > used to run your program, which should also be the
> > same whose sources
> > and installed files you will learn about in the
> next
> > section.  In
> > particular, your PYTHONPATH setting should be the
> same
> > as for running
> > your program locally.  (Tip: if the program
> doesn't
> > run when you type
> > "python hello.py" there's little chance of getting
> the
> > frozen version
> > to run.)"
> >
> > My intention is to create files which can be run
> on
> > Linux systems with python not installed.Do the
> above
> > lines mean that freeze can't do it(which defeats
> the
> > very pupose of the program i guess.).
> >
> > 2. While compiling with freezeit seems that it
> is
> > including all the available modules, even if they
> are
> > not required.Of course using freeze -X is one
> > option,but it being really cumbersome, is there a
> > better option available.
> >
> > In case the above issues do present a problem, is
> > there any alternative to freeze?
> >
> > Shitiz
> >
> >
> >
> > __
> > Do you Yahoo!?
> > The all-new My Yahoo! - Get yours free!
> > http://my.yahoo.com
> >
> >
> > ___
> > Tutor maillist  -  Tutor@python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> > 
> 
> 





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] freeze

2005-02-04 Thread Jacob S.
My two bits.
1) Download py2exe found here
http://py2exe.sourceforge.net/
2) Make a setup file -- intructions can be found through above link, I 
think.
(Hey that rhymes!)
3) Ask if you want my totally cool automation technique
4) Ask more questions, go on we don't mind.

HTH,
Jacob Schmidt
Hi,
I intend to create compiled python binaries on linux.
I understand that freeze can be used to do this.
But I have few doubts i would like to clarify.
1. In the freeze documentation i found the lines:
"One tricky issue: Freeze assumes that the Python
interpreter and
environment you're using to run Freeze is the same one
that would be
used to run your program, which should also be the
same whose sources
and installed files you will learn about in the next
section.  In
particular, your PYTHONPATH setting should be the same
as for running
your program locally.  (Tip: if the program doesn't
run when you type
"python hello.py" there's little chance of getting the
frozen version
to run.)"
My intention is to create files which can be run on
Linux systems with python not installed.Do the above
lines mean that freeze can't do it(which defeats the
very pupose of the program i guess.).
2. While compiling with freezeit seems that it is
including all the available modules, even if they are
not required.Of course using freeze -X is one
option,but it being really cumbersome, is there a
better option available.
In case the above issues do present a problem, is
there any alternative to freeze?
Shitiz

__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] freeze

2005-02-04 Thread Shitiz Bansal
Hi,

I intend to create compiled python binaries on linux.
I understand that freeze can be used to do this.
But I have few doubts i would like to clarify.

1. In the freeze documentation i found the lines:

"One tricky issue: Freeze assumes that the Python
interpreter and
environment you're using to run Freeze is the same one
that would be
used to run your program, which should also be the
same whose sources
and installed files you will learn about in the next
section.  In
particular, your PYTHONPATH setting should be the same
as for running
your program locally.  (Tip: if the program doesn't
run when you type
"python hello.py" there's little chance of getting the
frozen version
to run.)"

My intention is to create files which can be run on
Linux systems with python not installed.Do the above
lines mean that freeze can't do it(which defeats the
very pupose of the program i guess.).

2. While compiling with freezeit seems that it is
including all the available modules, even if they are
not required.Of course using freeze -X is one
option,but it being really cumbersome, is there a
better option available.

In case the above issues do present a problem, is
there any alternative to freeze?

Shitiz



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor