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

8/22/2022 - Mon
aikimark

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
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..
aikimark

What is the relationship between the exe you create with py2exe and the other files you want to distribute?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
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
aikimark

What is the relationship between these "few py files"?
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..
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
aikimark

what kind of error do you get when you run pyinstaller?
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...
aikimark

what version of Python and PyInstaller are you using?
Are you using ActivePython?
Did you rename any files?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
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
aikimark

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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..
aikimark

Do you have to uninstall ActivePython in order to test this with standard Python?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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!!! :)