Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Python to exe

Name: pythonnoob 2011-06-23 14:57

Hello /prog/.

I have a python source which i need to compile into ONE exe file, with all dependencies in that file. I have tried py2exe, pyinstaller and bbfreeze. I can get them all to compile, but only pyinstaller to put it in a single file (probably my fault that the others wont).

And now to the problem.. :O
No matter which one of the compiling scripts i use the resulting exe won't run. I get this error: "ImportError: No module named pyopencl". I have pyopencl installed, but obviously these scripts arent adding it to the exe..

Any python gurus here who can help me out? I have no clue how to fix this.. I am no good with python.
I am running win7 64 bit and i have python 2.7 installed in both 32 and 64bit version

Name: Anonymous 2011-06-23 15:13

Write your own python compiler. :O

Name: Anonymous 2011-06-23 17:49

yo dawg, try to put all the modules in the same dir.
Good luck, pal

Name: Anonymous 2011-06-23 17:57

mailto:noko
Tak.

Name: Anonymous 2011-06-23 21:59

>>3

Objection! I have a better tip:

http://www.google.com/search?q=python+to+exe

Name: Anonymous 2011-06-24 2:48

I am running win7 64 bit and i have python 2.7 installed in both 32 and 64bit version
Therein lies your problem, you need a larger python.

Name: Anonymous 2011-06-24 3:41

You can't compile pythons, silly, they're animals. :)

Name: Anonymous 2011-06-24 4:18

I was told even before going here that this board was shit.. Guess i should have just listened and spared myself the effort.
Thanks for nothing.

Name: Anonymous 2011-06-24 4:27

>>8
The worth of a board is subjective.

Just because we don't feel like giving a serious answer to your question that could have been solved in a few minutes using Google doesn't make this board shit. In fact in my view it makes this board better.

Name: VIPPER 2011-06-24 4:33

>>8
Selected /prog/ user reviews

/prog/ is pure shit. A festival of diarrhea.
  - Jason, 28

Its the worst board ive ever been too.
  - Molly, 24

Terrible doesnt even come close describing it. I will have trouble sleeping after this.
  - Andreas 35

Why would anyone in the right mind even go there? But more important, why has nobody deleted it yet.
  - Micheal 27

A waste of time, bandwidth and braincells.
  - Laura 31

Name: Anonymous 2011-06-24 6:54

[code]This board is my favorite[i]![/i]
  - Milkribs, anus

Name: Anonymous 2011-06-24 6:58

>>10
I'd have sex with Laura, if you know what I mean.

>>1
It should take you about five minutes to learn how to specify explicit dependencies for py2exe, now that I told you that you should specify pyopencl as an explicit dependency.

Name: Anonymous 2011-06-24 8:07

>>12
I don't know what you mean.

Name: Anonymous 2011-06-24 8:07

good board for penis erect

Name: Anonymous 2013-08-31 17:58


 Don't hate all women. You will get no where fast with that ideal man. You can stand against feminism. That's what has happend. Many women end up being consfused and abandon feminsim. I agree with you though. It's said Japan is controled by their women after the bomb. Turning men into manlets because women are so demanding in Japan that men have to appeal to them ao they become them: Girly men.

Don't change these.
Name: Email:
Entire Thread Thread List