Avatar of Konstantin Krolikov
Konstantin KrolikovFlag for Israel

asked on 

one executable file python

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..
PythonProgramming Languages-Other

Avatar of undefined
Last Comment
Konstantin Krolikov
Avatar of aikimark
aikimark
Flag of United States of America image

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
Avatar of Konstantin Krolikov

ASKER

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..
Avatar of aikimark
aikimark
Flag of United States of America image

What is the relationship between the exe you create with py2exe and the other files you want to distribute?
Avatar of Konstantin Krolikov

ASKER

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
Avatar of aikimark
aikimark
Flag of United States of America image

What is the relationship between these "few py files"?
Avatar of Konstantin Krolikov

ASKER

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..
Avatar of aikimark
aikimark
Flag of United States of America image

what kind of error do you get when you run pyinstaller?
Avatar of Konstantin Krolikov

ASKER

"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...
Avatar of aikimark
aikimark
Flag of United States of America image

what version of Python and PyInstaller are you using?
Are you using ActivePython?
Did you rename any files?
Avatar of Konstantin Krolikov

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Konstantin Krolikov

ASKER

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..
Avatar of aikimark
aikimark
Flag of United States of America image

Do you have to uninstall ActivePython in order to test this with standard Python?
Avatar of Konstantin Krolikov

ASKER

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!!! :)
Programming Languages-Other
Programming Languages-Other

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.

20K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo