Hi,
I want to create a Exe of an Pyton Aplication in Windows and UNIX.For example,Ihave the following ".py"files
Sample1.py
Sample2.py
Sample3.py
................
Samplen.py
Main.py
I would like to create an exe for the above files to support for Windows and UNIX OS.
Thanks
PSB
27 5299
Hi,
I want to create a Exe of an Pyton Aplication in Windows and UNIX.For example,Ihave the following ".py"files
Sample1.py
Sample2.py
Sample3.py
................
Samplen.py
Main.py
I would like to create an exe for the above files to support for Windows and UNIX OS.
Thanks
PSB
what happens to googling? pyinstaller
Hi,
I want to create a Exe of an Pyton Aplication in Windows and UNIX.For example,Ihave the following ".py"files
Sample1.py
Sample2.py
Sample3.py
................
Samplen.py
Main.py
I would like to create an exe for the above files to support for Windows and UNIX OS.
Thanks
PSB
I don't think this works on *nix. There are two articles on EXE creation in Python > Articles. Truelove911 has given basics of PyInstaller and py2exe.
well, pyinstaller is supposed to work under windows, linux and irix, as stated in the project page. havn't tried though.
Facing problem in creating a Py2Exe.
Step -1 ) My Python24 software is available at "C:\Python24".As suggested in the Article , I Copied the "pyinstaller-1.3" at the location "C:\Python24" after extracting the files.
Step-2 ) Double clicked on Configure.py, and config.dat is created
Step-3) download UPX from http://upx.sourceforge.net/#download (Win32 Console package)
Step-4) After unpacking the archive, copied upx.exe to C:\Python24 directory.
Step-5) Created "HelloWorld.py" at location "C:\Sample"
Step-6)Created HelloWorld.bat
Step-7) Double-click on HelloWorld.bat
After the Step -7 ,I am getting the following error message"'python' is not recognized as an internal or external command,
operable program or batch file."
----------------------------------------------- - Error
-
-
C:\Documents and Settings\xyz>C:\Sample\HelloWorld.bat
-
-
C:\Documents and Settings\xyz>set PIP=C:\Python24\pyinstaller-1.3\
-
-
C:\Documents and Settings\xyz>python C:\Python24\pyinstaller-1.3\Makespec.py
-
--onefile --console --upx --tk HelloWorld.py
-
'python' is not recognized as an internal or external command,
-
operable program or batch file.
-
-
C:\Documents and Settings\xyz>python C:\Python24\pyinstaller-1.3\Build.py Hel
-
loWorld.spec
-
'python' is not recognized as an internal or external command,
-
operable program or batch file.
-
-
C:\Documents and Settings\xyz>
-
-
It's this last part
'python' is not recognized as an internal or external command,
operable program or batch file.
that causing the error.
To fix that you need to edit the PATH environment variable to include your python directory.
It's this last partthat causing the error.
To fix that you need to edit the PATH environment variable to include your python directory.
The environment Variable Path is
Path
C:\Python25\;%SystemRoot%\system32;%SystemRoot%;%S ystemRoot%\System32\Wbem;
Could you please let me know whether I have to modify the above path for Python settings
-PSB
The environment Variable Path is
Path
C:\Python25\;%SystemRoot%\system32;%SystemRoot%;%S ystemRoot%\System32\Wbem;
Could you please let me know whether I have to modify the above path for Python settings
-PSB
That look correct:
It could be an ActiveState thing. Is there a python.exe in C:\Python25\?
That look correct:
It could be an ActiveState thing. Is there a python.exe in C:\Python25\?
Come to think of it, there are two such variables: one is system wide and one is for your log-in. If python.exe is in C:\Python25\, you'd better check the system PATH.
That look correct:
It could be an ActiveState thing. Is there a python.exe in C:\Python25\?
Yes Python Exe is available in that path
C:\Python25\python25.exe
Come to think of it, there are two such variables: one is system wide and one is for your log-in. If python.exe is in C:\Python25\, you'd better check the system PATH.
How to check the the system PATH?
How to check the the system PATH?
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\xyz>path
PATH=C:\Python25\;C:\WINDOWS\system32;C:\WINDOWS;C :\WINDOWS\System32\Wbem;C:\Pro
gram Files\ATI Technologies\ATI Control Panel;
How to check the the system PATH?
Right click My Computer: go to Properties|Advanced tab. Click Environment Variables.
Right click My Computer: go to Properties|Advanced tab. Click Environment Variables.
The path above shown is the system variable.
Whether we have to remove the '\' at the end from the 'C:\Python25\'
-PSB
The path above shown is the system variable.
Whether we have to remove the '\' at the end from the 'C:\Python25\'
-PSB
No, the "\" isn't the problem. Did you also check the PATH for "User variables for Your Login Name"?
No, the "\" isn't the problem. Did you also check the PATH for "User variables for Your Login Name"?
Thanks Barton.
It is working fine after setting the Variable and Value in my LoginID variables.
I hope PyInstaller will not work for Python2.5 Version.In that case which software installation will help to create the "Exe"
-PSB
When I build the Exe for the Application having dialog,Image and other .py files.The Python executable is created.But when I click that Exe the dialog is not invoked.
Even I am seeing the peculiar behavior,where I am not able to invoke even an simple dialog from "Pythonwin.exe".But the applications without dialogs are able to execute.
To get the Dialogs , I have to uninstall Python Software and re-install it to see ,the dialog based applications.
Thanks
PSB
Hi,
I want to create a Exe of an Pyton Aplication in Windows and UNIX.For example,Ihave the following ".py"files
Sample1.py
Sample2.py
Sample3.py
................
Samplen.py
Main.py
I would like to create an exe for the above files to support for Windows and UNIX OS.
Thanks
PSB
Problem in building the Exe in Windows XP.
I have one main entry point from the UI ( Dlg.py ) and others are *.py files as mentioned above.
I am following the following steps to create exe for python files using Py2Exe Softwares.
I have followed the steps as suggested in the link
http://www.py2exe.org/index.cgi/Tutorial
I am able to create the Dlg.exe but not able to see the Dialog display when I execute the Dlg.Exe
Could anbody suggest me how to proceed with this
-PSB
Problem in building the Exe in Windows XP.
I have one main entry point from the UI ( Dlg.py ) and others are *.py files as mentioned above.
I am following the following steps to create exe for python files using Py2Exe Softwares.
I have followed the steps as suggested in the link
http://www.py2exe.org/index.cgi/Tutorial
I am able to create the Dlg.exe but not able to see the Dialog display when I execute the Dlg.Exe
Could anbody suggest me how to proceed with this
-PSB
When we have Tix module,We are having problem in display of the User Interface Dialog.
Whether we have to follow different approach for to Build the Exe ,when we have Tix Module
I have fixed the problem.
We have to set the Tix related DLL paths correctly in the Setup.py files.
-PSB
I have fixed the problem.
We have to set the Tix related DLL paths correctly in the Setup.py files.
-PSB
Thank you SO much for the update! Would you mind posting some of the setup script?
Thank you SO much for the update! Would you mind posting some of the setup script?
- Setup.py
-
import glob
-
import os
-
import sys
-
from distutils.core import setup
-
import py2exe
-
-
def files(folder):
-
for path in glob.glob(folder+'/*'):
-
if os.path.isfile(path):
-
yield path
-
-
data_files=[
-
('.', glob.glob(sys.prefix+'/DLLs/*.dll')),
-
('tcl/Tix8.4.2', files(sys.prefix+'/tcl/Tix8.4.2')), # Tix path
-
('tcl/Tix8.4.2/bitmaps', files(sys.prefix+'/tcl/Tix8.4.2/bitmaps')),
-
('tcl/Tix8.4.2/pref', files(sys.prefix+'/tcl/Tix8.4.2/pref')),
-
]
-
-
setup(
-
script_args=['py2exe'],
-
windows=['C:\MainDialog.py'],
-
data_files=data_files,
-
)
-
-
-
-
- Setup.py
-
import glob
-
import os
-
import sys
-
from distutils.core import setup
-
import py2exe
-
-
def files(folder):
-
for path in glob.glob(folder+'/*'):
-
if os.path.isfile(path):
-
yield path
-
-
data_files=[
-
('.', glob.glob(sys.prefix+'/DLLs/*.dll')),
-
('tcl/Tix8.4.2', files(sys.prefix+'/tcl/Tix8.4.2')), # Tix path
-
('tcl/Tix8.4.2/bitmaps', files(sys.prefix+'/tcl/Tix8.4.2/bitmaps')),
-
('tcl/Tix8.4.2/pref', files(sys.prefix+'/tcl/Tix8.4.2/pref')),
-
]
-
-
setup(
-
script_args=['py2exe'],
-
windows=['C:\MainDialog.py'],
-
data_files=data_files,
-
)
-
-
-
-
You can refer to the link http://www.py2exe.org/index.cgi/TixSetup
You can refer to the link http://www.py2exe.org/index.cgi/TixSetup
Any images files/help files has to be placed in the Exe build folder say
..\dist\
-PSB
Has anybody used PyInstaller for building the Exe in UNIX OS ( AIX 5.3).If so ,can anbody help me in simnple steps,how we can build the Pyton application using the Pyinstaller.
a) Installation procedure for Pyinstaller.
b) Proceudre for building Python application in UNIX
c) Link for the Pyinstaller.
d) Any limitations in creating a Exe
-PSB
There is this module called 'py2exe' that is mostly made for pygame apps, but i guess it would work with just python apps too!
There is this module called 'py2exe' that is mostly made for pygame apps, but i guess it would work with just python apps too!
I've used py2exe extensively and it works like a charm for cross-platform python executables
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Stephen VanDahm |
last post by:
I'm looking for a way to install Python on a UNIX machine in a way such
that any user on the system can use it, but only to execute scripts that
are located in a certain directory. I do not have...
|
by: Mark de+la+Fuente |
last post by:
I need to write simple scripts for executing command line functions. Up till now I've used C-Shell scripts for this, but I'm looking for a better alternative. And I keep reading about how “easy” it...
|
by: dpackwood |
last post by:
Hello,
I have two different scripts that do pretty much the same thing. The main
perl script is on Windows. It runs and in the middle of it, it then calls
out another perl script that then...
|
by: Matt |
last post by:
I'm new to Java but experienced with PL/SQL. I've found what appears to be
strange behaviour (a bug?) when attempting to create java stored objects
using the UNIX version of Oracle SQL*PLUS...
|
by: Marek |
last post by:
Whe i'm running my .net aplication from share on other server, i've got an
error. Can someone explain what i must do?
Unhandle exception:System.Security.SecurityException: Permission demand type...
|
by: fanor |
last post by:
I have a windows aplication and i would like to send email.
Does anyone one know what is the yahoo server???
TIA
PD: my aplication is in VS 2005 and c#.
|
by: Pep |
last post by:
Firstly, I'm not sure if this is the right group for this query, so
please forgive me if I am wrong.
My problem is that most users I distribute my software to cannot
install it on their systems...
|
by: DKn |
last post by:
Hello All,
I am having an ACtiveX Control developed in C#.Net 2.0 windows Control Library. I have tested this control.TCS through ACtiveX Control Test Container.
It is working fine, But the...
|
by: KF4fun |
last post by:
Recently i am being given a windows aplication which was made using VB.net . I was asked to remake the windows aplication but i found it quite hard to do so because i am new to VB.net . The codes...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |