LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2007, 05:52 AM   #1
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
PyInstaller


Hi,

PyInstaller is a distribution packaging tool for programs written in python, similar to py2exe or pythons own distutils. It's available for download from http://pyinstaller.python-hosting.com/wiki.

I went through the proceedure for a simple hello world, all works great. Next I tried a demo tcl/tk program. The support is built in (since python ships with tkinter), all you do is supply the appropiate switch (-K or --tk). Hence:

Code:
	$ cd .../pyinstaller-1.3/source/linux
	$ python Make.py

	$ cd .../pyinstaller-1.3
	$ python Configure.py 
	
	$ python Makespec.py -F --tk .../myproj3/button.py
	$ python Build.py button/button.spec
All but the last line works, but the build errors out with:


Code:
OSError: [Errno 2] No such file or directory: '/usr/lib64/tcl8.4'
It's right, there is no file/dir there, however there is '/usr/lib64/libtcl8.4.so'. I've tried messing with 'support/useTK.py', to no avail.

Any possible solutions / suggestions?

cheers
 
Old 05-09-2007, 07:47 AM   #2
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Original Poster
Rep: Reputation: 33
Well I seem to have found a workaround, however I dunno if it's the best way?

Basically I made a new dir '/usr/lib64/tcl8.4', in here I copied 'libtcl8.4.so'. That's basically it!

But is this the best way... this is what I found in '/usr/lib64/tk8.4/pkgIndex.tcl' (which did already exist):
Code:
if {[package vcompare [package provide Tcl]	8.4] != 0} { return }
package ifneeded Tk 8.4	[list load [file join $dir .. libtk8.4.so] Tk]
Could anyone suggest a similar file as that.

Or, would it be advisable to use a link instead of my blatent duplication?


P.S. I'd installed both via yum and through make / compile.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration