Hello, I want to create a stand-alone binary from a Python script. The freeze tool is not in the SuSE 10.3 distro, so I downloaded Python-2.5.1.tgz and extracted Tools/freeze.py - but can't get it working. It seeks files not included in SuSE 10.3. How can I add this freeze module? Should I reinstall Python from the tgz file? Is there an alternative for freeze more adapted to SuSE? Please advise. Robert Best -- http://rwbest.no.sapo.pt/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Robert You should look on the cx-freeze package in Build Service [http://download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/]. Please note, that the x86_64 rpm has broken script in /usr/bin. The fixed version was submitted, but only i586 rpm is finished now. Using is simple $ cat hello.py import math print "hello pi: %f" % (math.pi) $ FreezePython hello.py # some messages # from cx-freeze $ file hello hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped $ ./hello hello pi: 3.141593 Dne Wednesday 28 November 2007 13:09:50 Robert W Best napsal(a):
Hello, I want to create a stand-alone binary from a Python script. The freeze tool is not in the SuSE 10.3 distro, so I downloaded Python-2.5.1.tgz and extracted Tools/freeze.py - but can't get it working. It seeks files not included in SuSE 10.3. How can I add this freeze module? Should I reinstall Python from the tgz file? Is there an alternative for freeze more adapted to SuSE? Please advise.
Robert Best -- http://rwbest.no.sapo.pt/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-11-28 13:57:44 +0100, Michal Vyskocil wrote:
You should look on the cx-freeze package in Build Service [http://download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/]. Please note, that the x86_64 rpm has broken script in /usr/bin. The fixed version was submitted, but only i586 rpm is finished now.
can we move the package into devel:languages:python? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dne Wednesday 28 November 2007 15:14:23 Marcus Rueckert napsal(a):
On 2007-11-28 13:57:44 +0100, Michal Vyskocil wrote:
can we move the package into devel:languages:python?
Yes, it's not a problem ... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michal Vyskocil wrote:
Dne Wednesday 28 November 2007 15:14:23 Marcus Rueckert napsal(a): Yes, it's not a problem ... napsala, napsala - she wrote and wrote and it's a worldwide suse feast :-)
Kind regards Philippe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 28 November 2007 12:57:44 Michal Vyskocil wrote:
Hi Robert
You should look on the cx-freeze package in Build Service [http://download.opensuse.org/repositories/home:/mvyskocil/openSUSE _10.3/].
Hello Michal, I downloaded cx-freeze rpm but can't install it. YaST says it can't find cx-freeze. cx-freeze requires python-devel and rpmlib which are not included with SuSE 10.3. python-devel is included with SuSE 10.2 - can I use that one? Please give more detailed instructions. Robert
Dne Wednesday 28 November 2007 13:09:50 Robert W Best napsal(a):
Hello, I want to create a stand-alone binary from a Python script. The freeze tool is not in the SuSE 10.3 distro, so I downloaded Python-2.5.1.tgz and extracted Tools/freeze.py - but can't get it working. It seeks files not included in SuSE 10.3. How can I add this freeze module? Should I reinstall Python from the tgz file? Is there an alternative for freeze more adapted to SuSE? Please advise.
-- http://rwbest.no.sapo.pt/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 29 November 2007 15:32:23 Robert W Best wrote:
Hello Michal, I downloaded cx-freeze rpm but can't install it. YaST says it can't find cx-freeze. cx-freeze requires python-devel and rpmlib which are not included with SuSE 10.3. python-devel is included with SuSE 10.2 - can I use that one?
There's no dependency on python-devel, thus this package is in the 10.3 [http://download.opensuse.org/repositories/openSUSE:10.3/standard/]. rpmlib provides the rpm itself.
Please give more detailed instructions. Robert
There's no detailed instructions - just one-click-install and run. rpm -q --requires cx-freeze python rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.2.5)(64bit) rpmlib(PayloadIsBzip2) <= 3.0.5-1 rpm -q --requires rpm ... rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1 ... rpmlib(PayloadIsBzip2) <= 3.0.5-1 Isn't anything wrong on your machine? MV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 29 November 2007 15:32:23 Robert W Best wrote:
Hello Michal, I downloaded cx-freeze rpm but can't install it. YaST says it can't find cx-freeze. cx-freeze requires python-devel and rpmlib which are not included with SuSE 10.3. python-devel is included with SuSE 10.2 - can I use that one?
There's no dependency on python-devel, thus this package is in the 10.3 When I click on cx-freeze-3.0.3-2.2.src.rpm and on Dependencies I get Requires
Michal, I downloaded cx-freeze from download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/ In /root I have now freeze-3.0.3-2.2.src.rpm I click on it and on Install Packages with YaST YaST reads the SuSE 10.3 repository and says Error Following packages haven't been found on the medium: cx-freeze On Konsole: # rpm -iv '/root/cx-freeze-3.0.3-2.2.src.rpm' cx-freeze-3.0.3-2.2 # rpm -q cx-freeze-3.0.3-2.2 package cx-freeze-3.0.3-2.2 is not installed What can I do more? Robert On Friday 30 November 2007 15:50:09 Michal Vyskocil wrote: python-devel rpmlib(CompressedFileNames)
[http://download.opensuse.org/repositories/openSUSE:10.3/standard/] . rpmlib provides the rpm itself.
Please give more detailed instructions. Robert
There's no detailed instructions - just one-click-install and run. But how? I don't understand.
rpm -q --requires cx-freeze python rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.2.5)(64bit) rpmlib(PayloadIsBzip2) <= 3.0.5-1
rpm -q --requires rpm ... rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1 ... rpmlib(PayloadIsBzip2) <= 3.0.5-1
Isn't anything wrong on your machine? I installed SuSE 10.3 from the DVD that goes with Linux Magazine issue 85. It runs fine.
MV
-- http://rwbest.no.sapo.pt/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-12-01 at 10:50 -0000, Robert W Best wrote:
On Konsole: # rpm -iv '/root/cx-freeze-3.0.3-2.2.src.rpm' cx-freeze-3.0.3-2.2 # rpm -q cx-freeze-3.0.3-2.2 package cx-freeze-3.0.3-2.2 is not installed
Obviously! You are installing a "source" rpm, not the binaries rpm. Use the "i586" directory from the repo, not the "src" dir. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUUEEtTMYHG2NR9URAlFvAJwMMkR5U0cIysIcdLZSNdmSMbfiAgCfe0Nt uZqhXUG0VRS7+qUDhRq3luI= =1n2Q -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/01/2007 06:50 PM, Robert W Best wrote:
Michal, I downloaded cx-freeze from download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/ In /root I have now freeze-3.0.3-2.2.src.rpm
That is the source rpm. It might be easier to add the repository to yast and install it with software management.
I click on it and on Install Packages with YaST YaST reads the SuSE 10.3 repository and says Error Following packages haven't been found on the medium: cx-freeze On Konsole: # rpm -iv '/root/cx-freeze-3.0.3-2.2.src.rpm' cx-freeze-3.0.3-2.2 # rpm -q cx-freeze-3.0.3-2.2 package cx-freeze-3.0.3-2.2 is not installed
You are getting only source rpms. You need to install the already compiled, binary rpm packages. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 01 December 2007 11:10:36 Joe Morris (NTM) wrote:
On 12/01/2007 06:50 PM, Robert W Best wrote:
Michal, I downloaded cx-freeze from download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/ In /root I have now freeze-3.0.3-2.2.src.rpm
That is the source rpm. It might be easier to add the repository to yast and install it with software management.
You are getting only source rpms. You need to install the already compiled, binary rpm packages.
Thanks Joe, now I understand. I downloaded and moved cx-freeze-3.0.3-2.2.i586.rpm in a new folder repo and added repo with YaST / Software Repositories. Then YaST / Software Management installed cx-freeze. Thanks Michal, FreezePython works! It compiled a short conversion script which does mainly string manipulation, and a longer script that imports Tkinter for GUI. The first binary must be started with full path on Konsole, the second binary starts with a mouse click! But I don't understand why source code is packed with RPM. YaST seems unable to extract cx_Freeze-3.0.3-source.tgz from cx-freeze-3.0.3-2.2.src.rpm Robert -- http://rwbest.no.sapo.pt/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2007-12-02 at 14:43 -0000, Robert W Best wrote:
But I don't understand why source code is packed with RPM. YaST seems unable to extract cx_Freeze-3.0.3-source.tgz from cx-freeze-3.0.3-2.2.src.rpm
Look under /usr/src/packages/, you will find there the tgz, if you installed the source rpm. That's why it is an rpm ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUtectTMYHG2NR9URAkS7AJ9xY88F0HRbwQ6GUPTGzyKSS63pjwCfegc0 Aufg2f3hqlGUqli2u8lCkis= =mfQr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-12-01 at 10:50 +0000, Robert W Best wrote:
Michal, I downloaded cx-freeze from download.opensuse.org/repositories/home:/mvyskocil/openSUSE_10.3/ In /root I have now freeze-3.0.3-2.2.src.rpm I click on it and on Install Packages with YaST YaST reads the SuSE 10.3 repository and says Error Following packages haven't been found on the medium: cx-freeze
If I recall correctly, you would not install a non-SuSE package using YaST, but the software install tool.
On Konsole: # rpm -iv '/root/cx-freeze-3.0.3-2.2.src.rpm' cx-freeze-3.0.3-2.2 # rpm -q cx-freeze-3.0.3-2.2 package cx-freeze-3.0.3-2.2 is not installed
What can I do more? Robert
You could try building the program using the source code for it that you have installed, or grab the actual rpm for the executable file, it dependsa on how much you want to learn/do.
On Thursday 29 November 2007 15:32:23 Robert W Best wrote:
Hello Michal, I downloaded cx-freeze rpm but can't install it. YaST says it can't find cx-freeze. cx-freeze requires python-devel and rpmlib which are not included with SuSE 10.3. python-devel is included with SuSE 10.2 - can I use that one?
There's no dependency on python-devel, thus this package is in the 10.3 When I click on cx-freeze-3.0.3-2.2.src.rpm and on Dependencies I get Requires
On Friday 30 November 2007 15:50:09 Michal Vyskocil wrote: python-devel rpmlib(CompressedFileNames)
[http://download.opensuse.org/repositories/openSUSE:10.3/standard/] . rpmlib provides the rpm itself.
Please give more detailed instructions. Robert
There's no detailed instructions - just one-click-install and run. But how? I don't understand.
rpm -q --requires cx-freeze python rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.2.5)(64bit) rpmlib(PayloadIsBzip2) <= 3.0.5-1
rpm -q --requires rpm ... rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1 ... rpmlib(PayloadIsBzip2) <= 3.0.5-1
Isn't anything wrong on your machine? I installed SuSE 10.3 from the DVD that goes with Linux Magazine issue 85. It runs fine.
MV
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Carlos E. R.
-
Joe Morris (NTM)
-
Marcus Rueckert
-
Michal Vyskocil
-
Mike McMullin
-
Philippe Landau
-
Robert W Best