Join us at IRC!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 31
Web Spiders: 16
Guests Online: 29
Members Online: 2

Registered Members: 70173
Newest Member: TheGreek
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Page 1 of 2 1 2 >
Author

cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Hacker Level 1
Posted on 22-06-09 00:52
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? :p

cheers!




Edited by Demons Halo on 22-06-09 14:13
base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

korg
Admin from hell



Posts: 1704
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
The Master
Posted on 22-06-09 02:29
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
Posted on 22-06-09 06:54
I'm using 2.6.1 and I had issues with py2exe too. That's why I use cx_freeze


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Hacker Level 1
Posted on 22-06-09 15:49
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 :/


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

spyware
Member



Posts: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 22-06-09 15:59
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
http://bitsofspy.net
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Hacker Level 1
Posted on 22-06-09 16:05
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
base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 22-06-09 17:43
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
Posted on 22-06-09 17:45
ranma wrote:
Linux compile?

grrr...
screw linux, Win XP > ALL!!!


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

SySTeM
-=[TheOutlaw]=-

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
The Overlord
Posted on 22-06-09 17:53
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++ ^_^




http://www.elites0ft.com/
Author

RE: cx_freeze & py scripts

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 22-06-09 18:01
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.
B) 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)
http://isexu.com
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Hacker Level 1
Posted on 22-06-09 18:16
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.
B) Write it in C/C++ ^_^


a) sounds good ^^ 2 files would do the trick =D
B) no can do :/ I'm an ignorant fuck when it comes to C/C++ -_-


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 22-06-09 21:51
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.
B) Write it in C/C++ ^_^


a) sounds good ^^ 2 files would do the trick =D
B) 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)
http://isexu.com
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Hacker Level 1
Posted on 22-06-09 21:58
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 :p 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?


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 22-06-09 22:06
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
Posted on 22-06-09 22:16
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 :p so if that is the only difference, I should go for the one with the easiest syntax (even though both are similar).


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 22-06-09 22:38
Ooooo :p
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
Posted on 22-06-09 22:49
In case you're a pro maybe :p 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


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 22-06-09 23:30
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 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 :p 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)
http://isexu.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 22-06-09 23:45
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
Posted on 23-06-09 00:00
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 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 :p 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 :p maybe I should give it a shot =D




Edited by Demons Halo on 23-06-09 00:02
base_dropper@hotmail.com www.demonshalo.com
Page 1 of 2 1 2 >
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.