| Author |
cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
Hi.
In order to compile .py files to executable files, I use a program called cx_freeze, which is pretty similar to py2exe. Now the problem is that I wrote a small scblockedript (20 lines and no modules imported) and compiled it into exe file, but instead of having 1 file I ended up with 900 files at least... Is there any way to compile a py scblockedript so that I can skip having so many files?
Google didn't help out that much, all I could find is HOW TO compile -_-
Also, when I run the program, I get a cmd window in the background running at the same time, which I personally find very annoying... :/
Now is there anyone in here that is experienced with py -> exe that could help me out? 
cheers!
Edited by Demons Halo on 22-06-09 14:13 |
|
| Author |
RE: cx_freeze & py scripts |
korg
Admin from hell

Posts: 1704
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06 Rank: The Master |
|
What version of python are you using. I had issues with py2exe with 3.0.
I deal in pain, All life I drain, I dominate, I seal your fate.
|
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
I'm using 2.6.1 and I had issues with py2exe too. That's why I use cx_freeze
|
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
ok seriously.. I'm going CRAZY!!!
I've tried 3-4 different compilers and every piece of shit had more problems involved than the previous one -_- I'm currently trying bbfreeze but It seems like if a module is missing. Fuck me sideways...
Please if anyone has some sort of idea about how to make a single exe file, spill it!
and yes spyware.. I've googled it, yet no luck :/
|
|
| Author |
RE: cx_freeze & py scripts |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
Lol compiling python.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
|
spyware wrote:
Lol compiling python.
don't lol 
I need to send the program to a friend of mine who has been waiting he can't run py files ^^
Edited by Demons Halo on 22-06-09 16:05 |
|
| Author |
RE: cx_freeze & py scripts |
ranma
Member

Posts: 269
Location: Behind a sphere
Joined: 27.08.05 Rank: HBH Guru |
|
Linux compile?
Wisdom spared is wisdom squared. |
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
|
ranma wrote:
Linux compile?
grrr...
screw linux, Win XP > ALL!!!
|
|
| Author |
RE: cx_freeze & py scripts |
SySTeM
-=[TheOutlaw]=-
Posts: 1524
Location: England, UK
Joined: 27.07.05 Rank: The Overlord |
|
|
Demons Halo wrote:
he can't run py files ^^
Options:
a) Tell him to download the Python exe, and run it CLI style.
b) Write it in C/C++ ^_^
|
|
| Author |
RE: cx_freeze & py scripts |
S1L3NTKn1GhT
Member

Posts: 468
Location: XXXX
Joined: 03.06.06 Rank: God Warn Level: 10
|
|
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^
Options:
a) Tell him to download the Python exe, and run it CLI style.
 Write it in C/C++ ^_^
+1 most GUI based apps(i don't make very often, if at all) i primarily just code in C, or start in perl/python and recode in C
root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
|
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^
Options:
a) Tell him to download the Python exe, and run it CLI style.
 Write it in C/C++ ^_^
a) sounds good ^^ 2 files would do the trick =D
no can do :/ I'm an ignorant fuck when it comes to C/C++ -_-
|
|
| Author |
RE: cx_freeze & py scripts |
S1L3NTKn1GhT
Member

Posts: 468
Location: XXXX
Joined: 03.06.06 Rank: God Warn Level: 10
|
|
Demons Halo wrote:
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^
Options:
a) Tell him to download the Python exe, and run it CLI style.
 Write it in C/C++ ^_^
a) sounds good ^^ 2 files would do the trick =D
 no can do :/ I'm an ignorant fuck when it comes to C/C++ -_-
Learn?
root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
|
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame scblockedripts, after that I'll take a look @ C/C++
Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?
|
|
| Author |
RE: cx_freeze & py scripts |
ranma
Member

Posts: 269
Location: Behind a sphere
Joined: 27.08.05 Rank: HBH Guru |
|
C and C++, to the lower-level user pretty much no difference. C++ does have classes and structs, though, which are good. So go with C++.
Wisdom spared is wisdom squared. |
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
|
ranma wrote:
C and C++, to the lower-level user pretty much no difference. C++ does have classes and structs, though, which are good. So go with C++.
mm sounds nice. Although I don't use classes really so if that is the only difference, I should go for the one with the easiest syntax (even though both are similar).
|
|
| Author |
RE: cx_freeze & py scripts |
ranma
Member

Posts: 269
Location: Behind a sphere
Joined: 27.08.05 Rank: HBH Guru |
|
Ooooo 
lol. Everyone uses classes. SOOOO useful.
Wisdom spared is wisdom squared. |
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
In case you're a pro maybe importing the same modules all the time etc. but In my case all I need is a py document, a pen and a paper!!!
works just fine =D
|
|
| Author |
RE: cx_freeze & py scripts |
S1L3NTKn1GhT
Member

Posts: 468
Location: XXXX
Joined: 03.06.06 Rank: God Warn Level: 10
|
|
Demons Halo wrote:
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame sc blockedripts, after that I'll take a look @ C/C++
Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong  care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?
Both Python and C++ are OOP(Object Oriented Programming) languages. If you mean what language in general is most similiar to python...im not sure pythons similiar mix between C++ but with simplicity similiar to Perl. As far as closes to C++ syntax wise PHP is VERY similiar
root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
|
|
| Author |
RE: cx_freeze & py scripts |
ranma
Member

Posts: 269
Location: Behind a sphere
Joined: 27.08.05 Rank: HBH Guru |
|
Oh yeah, C++, Php, and javascblockedript are all really similar, that's why I always suggest taking them together. Well, first javascblockedript, then php, then c++.
Wisdom spared is wisdom squared. |
|
| Author |
RE: cx_freeze & py scripts |
Demons Halo
Member

Posts: 261
Location: Sweden
Joined: 26.03.09 Rank: Hacker Level 1 |
|
S1L3NTKn1GhT wrote:
Demons Halo wrote:
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame sc blockedripts, after that I'll take a look @ C/C++
Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong  care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?
Both Python and C++ are OOP(Object Oriented Programming) languages. If you mean what language in general is most similiar to python...im not sure pythons similiar mix between C++ but with simplicity similiar to Perl. As far as closes to C++ syntax wise PHP is VERY similiar
So if I dive into C++ later on, I'll get a free PHP ride as well?? Not a bad deal if you ask me ^^ C++ it is then =D
This thread is way off topic now, but instead of starting a new one I'll just ask here...
I've worked with the following python sections:
- Basics
- Tkinter (GUI)
- Pygame
- Time challenges (Urllibs and cookies handling etc.)
- Math problems (Project Euler)
- Regular expresblockedsions (not that much actually)
Steps left:
- Another GUI module.
- Classes (I hate them but still...)
- Sockets
- Multithreading (not that necessary but still...)
Except for these 3 steps, what else should I start reading about?
Oh yeah, C++, Php, and javascblockedript are all really similar, that's why I always suggest taking them together. Well, first javascblockedript, then php, then c++.
Well I have basic knowledge of JS, I did JS challenges 1-15 without any problems, yet I still have not tried to write my own scblockedript maybe I should give it a shot =D
Edited by Demons Halo on 23-06-09 00:02 |
|