one executable file python

Konstantin Krolikov
Konstantin Krolikov used Ask the Experts™
on
hello experts,
i have python application witch work just fine, however, i want to send this application to my friends.(witch don't have python)

i know how to complie with py2exe but i want to make one file witch contains the entire contents..

for example, bit tottrent.. one executable file taht have all the modules..

Note:
i used pyinstaller and it makes a runtime error, so i can't really use that.

thanks ahead..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014

Commented:
depending on your operating system, I recommend you create a compressed format file with all the content you want to share.  You can fairly easily share the compressed format file.

compressed formats to consider: zip, 7-zip/7z, rar, tar

Author

Commented:
i have windows, and i want to make the program run in one executable file... (.exe)

this nice solution, but not what i'm looking for..
Top Expert 2014

Commented:
What is the relationship between the exe you create with py2exe and the other files you want to distribute?
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Author

Commented:
what do you mean?
i have few py files and i want to make them into one exe file.. and i need it to work for someone without python installed..
thanks
Top Expert 2014

Commented:
What is the relationship between these "few py files"?

Author

Commented:
some of them are classes and some functions, and there is the main file.

for example i have two files, each for each class and one file witch is the main.py..
Top Expert 2014

Commented:
what kind of error do you get when you run pyinstaller?

Author

Commented:
"Runtime error!
R6034, An application has made an attempt to load the C runtime library incorrectly
Please contact the application's support team for more information."

i have windows 7 64bit, however i have python for 86x.

and after i click ok to that error messsage the application work just fine...
Top Expert 2014

Commented:
what version of Python and PyInstaller are you using?
Are you using ActivePython?
Did you rename any files?

Author

Commented:
yes i use active python versition 2.7.2.5
my pyinstaller versition is the newest there is, i just download it..
but anyway, pyinstaller versition 1.5.1
Top Expert 2014
Commented:
This R6034 error might go away with the standard Python configuration.  Is it possible for you to try this with a standard Python, rather than ActivePython?

Author

Commented:
is there any different between those versition of python?
and yes i'll do this with a standart python, i'll remove the active and then i'll install..
Top Expert 2014

Commented:
Do you have to uninstall ActivePython in order to test this with standard Python?

Author

Commented:
no, but i wanted to do this in order to make sure that it is the default.
i tried what you said, after i installed python 2.7.3 the pyinstaller told me that i should download pywin32 for python version 2.6+, so i did, and then i did the same process to create one file, and it worked just fine!!


no error what so ever..
after that i removed python from my pc and install the active python to check whether the pywin32 make the file run without error, and the answer was yes.

so all i needed to do was to install pywin32 and then simply perform the same process and that's it!! it worked only because of that, thanks alot, if you weren't suggested to me to download regular python i would never figure it out..

by the way, i also checked the exe file on pc without python or anything to do with python and it work just fine, without any error, if you wondered..

tuns of thanks!!! :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial