Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51262 > unrolled thread
| Started by | "David M. Cotter" <me@davecotter.com> |
|---|---|
| First post | 2013-07-25 14:05 -0700 |
| Last post | 2013-08-01 08:57 -0700 |
| Articles | 8 — 3 participants |
Back to article view | Back to comp.lang.python
how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-25 14:05 -0700
Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-26 08:54 -0700
Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-29 09:22 -0700
Re: how to package embedded python? Kevin Walzer <kw@codebykevin.com> - 2013-07-29 17:38 -0400
Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-30 13:23 -0700
Re: how to package embedded python? CM <cmpython@gmail.com> - 2013-07-30 18:57 -0700
Re: how to package embedded python? "David M. Cotter" <me@davecotter.com> - 2013-07-31 08:47 -0700
Re: how to package embedded python? CM <cmpython@gmail.com> - 2013-08-01 08:57 -0700
| From | "David M. Cotter" <me@davecotter.com> |
|---|---|
| Date | 2013-07-25 14:05 -0700 |
| Subject | how to package embedded python? |
| Message-ID | <99b6fbcb-5456-4421-89d6-d0453b722e8c@googlegroups.com> |
what must i include in my app package if i'm embedding python? i tried including *everything* in the "DLLs" directory, but my app still crashes as soon as i attempt to initialize python. this is on a system that does not have python installed, as most of my users won't have it. is it actually a requirement that they first install python? (cuz it does work then)
[toc] | [next] | [standalone]
| From | "David M. Cotter" <me@davecotter.com> |
|---|---|
| Date | 2013-07-26 08:54 -0700 |
| Message-ID | <c898cf5e-407a-4b07-b392-1e57b21a1eac@googlegroups.com> |
| In reply to | #51262 |
does nobody know how to do this? does nobody know where proper documentation on this is?
[toc] | [prev] | [next] | [standalone]
| From | "David M. Cotter" <me@davecotter.com> |
|---|---|
| Date | 2013-07-29 09:22 -0700 |
| Message-ID | <7ea319ad-87e2-41a1-8251-023d784ac013@googlegroups.com> |
| In reply to | #51312 |
nooooooooooobody knoooooooooooowssss.... the trouble aaaaaaaaaaaaaaaaahhhh seeeeeeeeeeee.......
[toc] | [prev] | [next] | [standalone]
| From | Kevin Walzer <kw@codebykevin.com> |
|---|---|
| Date | 2013-07-29 17:38 -0400 |
| Message-ID | <kt6n12$55k$1@dont-email.me> |
| In reply to | #51262 |
On 7/25/13 5:05 PM, David M. Cotter wrote: > what must i include in my app package if i'm embedding python? > > i tried including *everything* in the "DLLs" directory, but my app still crashes as soon as i attempt to initialize python. > > this is on a system that does not have python installed, as most of my users won't have it. is it actually a requirement that they first install python? (cuz it does work then) > Have you looked at these docs? http://docs.python.org/2/extending/embedding.html Lots of other hits on Google for ""embedding Python in C app." -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com
[toc] | [prev] | [next] | [standalone]
| From | "David M. Cotter" <me@davecotter.com> |
|---|---|
| Date | 2013-07-30 13:23 -0700 |
| Message-ID | <110caaff-720a-4cc6-a4d4-ad7a7fe612dd@googlegroups.com> |
| In reply to | #51502 |
yes, i've looked there, and all over google. i'm quite expert at embedding at this point. however nowhere i have looked has had instructions for "this this is how you package up your .exe with all the necessary python modules necessary to actually run on a user's system that does not have python installed". on mac, it's trivial: all macs come with python, there is nothing i need to include with my app and it "just works" on windows: if you don't include the proper DLLs and/or whatnot, then the app will complain about missing DLLs on startup. What DLLs must i include? where are the instructions?
[toc] | [prev] | [next] | [standalone]
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2013-07-30 18:57 -0700 |
| Message-ID | <8505c5aa-0b16-4c32-bab3-17370b4f8f2e@googlegroups.com> |
| In reply to | #51603 |
On Tuesday, July 30, 2013 4:23:06 PM UTC-4, David M. Cotter wrote: > yes, i've looked there, and all over google. i'm quite expert at embedding at this point. > > > > however nowhere i have looked has had instructions for "this this is how you package up your .exe with all the necessary python modules necessary to actually run on a user's system that does not have python installed". > > > > on mac, it's trivial: all macs come with python, there is nothing i need to include with my app and it "just works" > > > > on windows: if you don't include the proper DLLs and/or whatnot, then the app will complain about missing DLLs on startup. > > > > What DLLs must i include? where are the instructions? I know nothing about embedding, but in terms of packaging up a Python interpreter with an application that needs it, could you use py2exe to do that? If, so is this helpful (gotten from Google's cache since page doesn't appear at the moment...later try embedded Python py2exe search)?: http://webcache.googleusercontent.com/search?q=cache:x3lrdFT5OF0J:www.py2exe.org/index.cgi/ShippingEmbedded+&cd=2&hl=en&ct=clnk&gl=us&client=firefox-a
[toc] | [prev] | [next] | [standalone]
| From | "David M. Cotter" <me@davecotter.com> |
|---|---|
| Date | 2013-07-31 08:47 -0700 |
| Message-ID | <fe78aea2-8d5d-4534-bd77-c2cb94978e64@googlegroups.com> |
| In reply to | #51614 |
okay, well that might turn out to be useful, except i don't quite know how to use it, and there are no "from scratch" instructions. i managed to download "py2exe-0.6.9.zip" and unzip it, but how does one "install" this package? (yes, still a newb at that) then, once installed, how do i say "include the entire world" instead of just "mymodule" ? cuz the point of embedding python on my app is that the end-user can run any script at all, not just one module.
[toc] | [prev] | [next] | [standalone]
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2013-08-01 08:57 -0700 |
| Message-ID | <e0867de9-fdbb-44be-9880-e770ce506cf9@googlegroups.com> |
| In reply to | #51666 |
On Wednesday, July 31, 2013 11:47:19 AM UTC-4, David M. Cotter wrote: > okay, well that might turn out to be useful, except i don't quite know how to use it, and there are no "from scratch" instructions. > > > > i managed to download "py2exe-0.6.9.zip" and unzip it, but how does one "install" this package? (yes, still a newb at that) What's your OS? For Windows there is an exe that installs it. Did you download that? Or you could, in the command line, do: cd c:\some_folder\the_py2exe_folder python setup.py install (The Python site has a huge page of details on that route. http://docs.python.org/2/install/) Or you could probably get away with just moving the py2exe folder to Python27\site-packages (or whatever Python you have) Or you could first install pip (recommended!) and then just: pip install py2exe (http://dubroy.com/blog/so-you-want-to-install-a-python-package) > then, once installed, how do i say "include the entire world" instead of just "mymodule" ? cuz the point of embedding python on my app is that the end-user can run any script at all, not just one module. I don't know. As I understand it, py2exe will pull whatever is needed in Python to run your module. If your module requires all of Python, I guess that will work. I think regardless of the module, even if it is a "Hello, World" program, py2exe has to include the Python interpreter. Unfortunately, and surprisingly, the py2exe site is still down. Odd. If it returns, that should help. There is also a py2exe users mailing list that you could find by Googling for it. In terms of
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web