473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Embedding Python in other programs

Name: lib64python2.4-devel
Summary: The libraries and header files needed for Python development

Description: The Python programming language's interpreter can be extended
with dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do these
types of tasks.
------------------------------------------------------
*** The Python programming language's interpreter ... can be embedded in
other programs. ***

That's very intriguing!
But I can't seem to locate much information about this.

Can anyone direct me to greater enlightenment?
Thomas Bartkus

Aug 25 '05 #1
8 1790
Thomas Bartkus wrote:
Name: lib64python2.4-devel
Summary: The libraries and header files needed for Python development

Description: The Python programming language's interpreter can be extended
with dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do these
types of tasks.
------------------------------------------------------
*** The Python programming language's interpreter ... can be embedded in
other programs. ***

That's very intriguing!
But I can't seem to locate much information about this.

Can anyone direct me to greater enlightenment?
Thomas Bartkus


There is a section of the official documentation devoted to extending and
embedding python:

http://docs.python.org/ext/ext.html

There are a few articles on this topics on the web, as well. Search
"embedding python" with Google.
-----------------------------------
Alessandro Bottoni
Aug 26 '05 #2
Gregory Piñero wrote:
How do I get it into VB6? Now that's an answer that would save my life
many times over.

Use IronPython?

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Aug 27 '05 #3
Steve,
He said VB6 not VB.NET

Greg,
Just write COM servers in Python and call them from VB6. No need to
embed. Lot easier too.

Aug 27 '05 #4
see below

On 27 Aug 2005 02:18:14 -0700, we*********@gmail.com
<we*********@gmail.com> wrote:
Steve,
He said VB6 not VB.NET

Greg,
Just write COM servers in Python and call them from VB6. No need to
embed. Lot easier too.
Any idea how I would get started on this? I'll do a search later today.

--
http://mail.python.org/mailman/listinfo/python-list

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Aug 27 '05 #5
http://www.python.org/windows/win32c...ServerCom.html

If you are using ActivePython, that tutorial is included (PyWin32
documentation -> Python COM -> Overviews) along with the needed
win32all module.

Aug 28 '05 #6
Thanks Ravi, I'll take a look
On 27 Aug 2005 22:55:40 -0700, Ravi Teja <we*********@gmail.com> wrote:
http://www.python.org/windows/win32c...ServerCom.html

If you are using ActivePython, that tutorial is included (PyWin32
documentation -> Python COM -> Overviews) along with the needed
win32all module.

--
http://mail.python.org/mailman/listinfo/python-list

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Aug 28 '05 #7
Guys, I am so lost. I followed the instructions exactly at
http://www.python.org/windows/win32c...ServerCom.html

But then when I opened up Visual Basic 6 and went to
project>references, It is not listing anything like the helloworld com
thingy I just registered? What do I need to do to use this com server
thingy from within VB? I'd really appriciate any help.

Thanks,

Greg

On 8/28/05, Gregory Piñero <gr********@gmail.com> wrote:
Thanks Ravi, I'll take a look


On 27 Aug 2005 22:55:40 -0700, Ravi Teja <we*********@gmail.com> wrote:
http://www.python.org/windows/win32c...ServerCom.html

If you are using ActivePython, that tutorial is included (PyWin32
documentation -> Python COM -> Overviews) along with the needed
win32all module.

--
http://mail.python.org/mailman/listinfo/python-list



--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Aug 29 '05 #8
Greg,
I don't recall touching VB6 in 4 years. From whatever I remember, you
are trying to do early binding (trying to find a registered type
library). You need to do late binding instead (use CreateObject) to
dynamically instantiate the COM object.

Ravi Teja.

Aug 29 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jordi | last post by:
Hi, I'm starting to use Python embedded in a C program. I'm using Python to execute several scripts using as a variables information retrieved for several multithread "agents" written in C. ...
0
by: Atul Kshirsagar | last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to generate C++ to Python interface. Now to...
0
by: Berthold Höllmann | last post by:
Hello, We are thinking about embedding python in ANSYS. We have lots of tools written for howngrown FE programs which we woule like to see in python. Is there anyone who has experience to share?...
4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
2
by: Roose | last post by:
With some googling I have found these resources: http://docs.python.org/ext/win-dlls.html http://www.python.org/doc/faq/windows.html I have a large Win32/MFC/C/C++ application that has an...
1
by: Craig Ringer | last post by:
Hi folks I'm a bit of a newbie here, though I've tried to appropriately research this issue before posting. I've found a lot of questions, a few answers that don't really answer quite what I'm...
1
by: amit | last post by:
Hello, I am currently studying how to embedd python. I am developing a graphical C++ application. My goal is to embedd python script that will control some kind of animation. I have some...
6
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python...
1
by: Thomas Troeger | last post by:
Dear all, I've successfully embedded the Python interpreter into a set of C/C++ application programs that use a larger library project with information from http://docs.python.org/api/api.html...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.