orbit-python-list Mailing List for ORBit-Python (Page 3)
Status: Inactive
Brought to you by:
tack
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
(16) |
Apr
(2) |
May
(5) |
Jun
(2) |
Jul
(1) |
Aug
(61) |
Sep
(10) |
Oct
|
Nov
(31) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(45) |
Feb
(6) |
Mar
(2) |
Apr
(12) |
May
(25) |
Jun
(8) |
Jul
|
Aug
(23) |
Sep
(23) |
Oct
(45) |
Nov
(24) |
Dec
(6) |
2002 |
Jan
(34) |
Feb
(24) |
Mar
(5) |
Apr
(4) |
May
(6) |
Jun
(5) |
Jul
(8) |
Aug
(3) |
Sep
(5) |
Oct
|
Nov
(14) |
Dec
|
2003 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
(4) |
Aug
(4) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
2004 |
Jan
(5) |
Feb
|
Mar
|
Apr
(2) |
May
(3) |
Jun
|
Jul
|
Aug
(4) |
Sep
(4) |
Oct
(1) |
Nov
(1) |
Dec
(2) |
2005 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gustavo C. <gj...@in...> - 2002-07-29 10:21:52
|
On Fri, 2002-07-26 at 21:11, Gil Hauer wrote: > Hi, >=20 > I downloaded and installed orbit-python as per the instructions (as far > as I know :) >=20 > When I run python and use the command > import CORBA >=20 > I get an error telling my that it cannot find the module, as below: >=20 > >>> import CORBA > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: No module named CORBA > >>>=20 >=20 > Can anyone tell me what other package needs to be installed? >=20 You may need to define PYTHONPATH. Example: export PYTHONPATH=3D/opt/gnome/lib/python2.2/site-packages:/usr/lib/python2= .2/site-packages > Thanks, > Gil >=20 >=20 --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> |
From: Christian R. <ki...@as...> - 2002-07-26 22:41:59
|
On Fri, Jul 26, 2002 at 04:11:29PM -0400, Gil Hauer wrote: > > When I run python and use the command > import CORBA > > I get an error telling my that it cannot find the module, as below: > > >>> import CORBA > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: No module named CORBA > >>> > > Can anyone tell me what other package needs to be installed? Running that through python -v would help us find out what package is broken. How did you install o-p; from the source, or from an RPM? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL |
From: Gil H. <gi...@sy...> - 2002-07-26 20:12:14
|
Hi, I downloaded and installed orbit-python as per the instructions (as far as I know :) When I run python and use the command import CORBA I get an error telling my that it cannot find the module, as below: >>> import CORBA Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: No module named CORBA >>>=20 Can anyone tell me what other package needs to be installed? Thanks, Gil |
From: Johan D. <zil...@ho...> - 2002-07-02 07:55:33
|
No, you can safely use it with python2.1 too. It was my mistake to make it depend on 2.2 It's fixed in cvs since 2002-03-20. Maybe it's time for a new release soon.... Johan Dahlin -----Original Message----- From: Tom Cato Amundsen <tc...@gn...> To: orb...@li... Date: 20 Jun 2002 15:57:19 +0200=20 Subject: [Orbit-python-list] orbit-python and python2.1 ?? please cc replies to tc...@gn... I see configure.in requires minimum Python 2.2. But things at least partially work with python2.1. Have you completely dropped support for Python 2.1? I'm asking because I am preparing a debian package. --=20 Tom Cato Amundsen <tc...@gn...> GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ Orbit-python-list mailing list Orb...@li... https://lists.sourceforge.net/lists/listinfo/orbit-python-list |
From: Tom C. A. <tc...@gn...> - 2002-06-20 13:54:35
|
please cc replies to tc...@gn... I see configure.in requires minimum Python 2.2. But things at least partially work with python2.1. Have you completely dropped support for Python 2.1? I'm asking because I am preparing a debian package. -- Tom Cato Amundsen <tc...@gn...> GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ |
From: Samuel O. <sam...@cb...> - 2002-06-09 15:47:31
|
Samuel Ojo Union Bank of Nigeria Lagos-Nigeria. Dear Sir, STRICTLY CONFIDENTIAL I am Samuel Ojo, The manager, Bills and Exchange at the Foreign Remittance Department of the Union Bank of Nigeria Plc. I am writing this letter to ask for your support and cooperation to carry out this business opportunity in my department. We discovered an abandoned sum of $21,500,000.00 (Twenty-one million Five Hundred Thousand United States Dollars) in an account that belongs to one of our foreign customers who died along with his entire family of a wife and two children in November 1997 in a Plane crash. Since we heard of his death, we have been expecting his next-of-kin to come over and put claims for his money as the heir, because we cannot release the fundS from his account unless someone applies for Claim as the next-of-kin to the deceased as indicated in our banking Guidelines. Unfortunately, neither their family members nor distant relatives have Ever appeared to claim the said fundS. Upon this discovery, other Officials in my department and I, have agreed to make business with you and release the total amount into your account as the heir of the fund since no one came for it or discovered he maintained account with our bank, otherwise the funds will be returned to the bank's treasury as unclaimed funds. We have agreed that our ratio of sharing will be as stated thus;20 % for you as foreign partner,75 % for us the officials in my department and 5 % for the settlement of all local and foreign expenses incurred by us and you during the course of this business. Upon the successful completion of this transfer, one of my colleagues and I will come to your country and mind our share. It is from our 75 % we intend to invest in (estate) and import Agricultural Machineries into my country as a way of recycling the fund. To commence this transaction, we require you to immediately indicate your interest by a return e-mail and enclose your private contact telephone number, fax number,full name and address and your designated bank coordinates to enable us file letters of claim to the appropriate departments for necessary approvals before the transfer can be made. Note also, that this transaction must be kept STRICTLY CONFIDENTIAL because of its nature. I look forward to receiving your prompt response. Samuel Ojo |
From: Samuel O. <sam...@cb...> - 2002-06-09 15:20:08
|
Samuel Ojo Union Bank of Nigeria Lagos-Nigeria. Dear Sir, STRICTLY CONFIDENTIAL I am Samuel Ojo, The manager, Bills and Exchange at the Foreign Remittance Department of the Union Bank of Nigeria Plc. I am writing this letter to ask for your support and cooperation to carry out this business opportunity in my department. We discovered an abandoned sum of $21,500,000.00 (Twenty-one million Five Hundred Thousand United States Dollars) in an account that belongs to one of our foreign customers who died along with his entire family of a wife and two children in November 1997 in a Plane crash. Since we heard of his death, we have been expecting his next-of-kin to come over and put claims for his money as the heir, because we cannot release the fundS from his account unless someone applies for Claim as the next-of-kin to the deceased as indicated in our banking Guidelines. Unfortunately, neither their family members nor distant relatives have Ever appeared to claim the said fundS. Upon this discovery, other Officials in my department and I, have agreed to make business with you and release the total amount into your account as the heir of the fund since no one came for it or discovered he maintained account with our bank, otherwise the funds will be returned to the bank's treasury as unclaimed funds. We have agreed that our ratio of sharing will be as stated thus;20 % for you as foreign partner,75 % for us the officials in my department and 5 % for the settlement of all local and foreign expenses incurred by us and you during the course of this business. Upon the successful completion of this transfer, one of my colleagues and I will come to your country and mind our share. It is from our 75 % we intend to invest in (estate) and import Agricultural Machineries into my country as a way of recycling the fund. To commence this transaction, we require you to immediately indicate your interest by a return e-mail and enclose your private contact telephone number, fax number,full name and address and your designated bank coordinates to enable us file letters of claim to the appropriate departments for necessary approvals before the transfer can be made. Note also, that this transaction must be kept STRICTLY CONFIDENTIAL because of its nature. I look forward to receiving your prompt response. Samuel Ojo |
From: Eugene P. S. <eu...@en...> - 2002-05-28 23:51:54
|
I was right! When tryed with o-p from sf.net (0.3.1) there is NO such a problem (CORBA.COMM_FAILUE exception)! |
From: Eugene P. S. <eu...@en...> - 2002-05-28 23:40:03
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> Hello again!<br> <br> Christian Robottom Reis wrote:<br> <blockquote type="cite" cite="mid...@an..."> <pre wrap="">On Wed, 29 May 2002, Eugene P. Sizikov wrote:<br><br></pre> <blockquote type="cite"> <pre wrap="">Hello!<br><br>I do not understand what is this example must help me with. I have a problem to work with NameService AFTER getting the IOR (and naming_context =<br>orb.string_to_object(ior)). Calling of any method of the "naming_context" fails and leads to client (and server!) aborting... Why?!<br></pre> </blockquote> <pre wrap=""><!----><br>Oops. Attached wrong file. :-) Trying again.<br><br></pre> <blockquote type="cite"> <pre wrap="">BTW, what happened with the irc channel #orbit-python on openprojects.net? It's eventually empty...<br></pre> </blockquote> <pre wrap=""><!----><br>Well.. Tack seems to have disappeared from the face of the earth,<br>unfortunately, and the project is a bit orphaned. I´m answering because I<br>know it´s important; let´s hope he wakes up eventually or tells us he<br>wants to pass it on to somebody else.<br><br>Take care,<br>--<br>Christian Reis, Senior Engineer, Async Open Source, Brazil.<br><a class="moz-txt-link-freetext" href="http://async.com.br/~kiko/">http://async.com.br/~kiko/</a> | [+55 16] 272 3330 | NMFL<br></pre> </blockquote> <br> I'm using o-p from gnome cvs, it seems (and there is a notice) than it's v1.99.0 and designed for ORBit2. But, I think there is some problem with marshalling or demarshalling or anything also. Any method wich requires CosNaming.Name object as a parameter aborts with CORBA.COMM_FAILURE.<br> <br> P.S. Christian, could you please go to irc and help me if you can?<br> P.P.S. And who has the write access to the both cvs trees?<br> </body> </html> |
From: Christian R. R. <ki...@as...> - 2002-05-28 23:11:20
|
On Wed, 29 May 2002, Eugene P. Sizikov wrote: > Hello! >=20 > I do not understand what is this example must help me with. I have a prob= lem to work with NameService AFTER getting the IOR (and naming_context =3D > orb.string_to_object(ior)). Calling of any method of the "naming_context"= fails and leads to client (and server!) aborting... Why?! Oops. Attached wrong file. :-) Trying again. > BTW, what happened with the irc channel #orbit-python on openprojects.net= ? It's eventually empty... Well.. Tack seems to have disappeared from the face of the earth, unfortunately, and the project is a bit orphaned. I=B4m answering because I know it=B4s important; let=B4s hope he wakes up eventually or tells us he wants to pass it on to somebody else. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL |
From: Eugene P. S. <eu...@en...> - 2002-05-28 23:02:07
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> Hello!<br> <br> Christian Reis wrote:<br> <blockquote type="cite" cite="mid...@bl..."> <pre wrap="">On Tue, May 28, 2002 at 03:18:11PM +0900, Eugene P. Sizikov wrote:<br></pre> <blockquote type="cite"> <pre wrap="">I have a question about using CORBA NamingService with orbit-python <br>(using o-p from gnome cvs). When I do 'import CosNaming' where the <br>CosNaming module imported from? And why it's only NamingService and not <br>InteroperableNamingService as in ORBit2 (no NamingContextExt interface <br>implementation)?<br></pre> </blockquote> <pre wrap=""><!----><br>Well, o-p is based on ORBit 0.5.x, so it doesn't support it. I've<br>attached some sample code that offers an example of a NS client.<br><br>I'm not sure if we can interoperate with an ORBit2 name server, but if<br>we don't, it's a bug.<br><br>Take care,<br>--<br>Christian Reis, Senior Engineer, Async Open Source, Brazil.<br><a class="moz-txt-link-freetext" href="http://async.com.br/~kiko/">http://async.com.br/~kiko/</a> | [+55 16] 272 3330 | NMFL<br></pre> <pre wrap=""><br><hr width="90%" size="4"><br>#!/usr/local/bin/python<br>import socket, signal, sys, os, getopt, string<br><br># Stoq nameserver IOR spitter v0.0 <br># Born 22 Nov 2K <a class="moz-txt-link-abbreviated" href="mailto:ki...@as...">ki...@as...</a><br><br># The DEFAULT_PORT is only used if the rcfile can't be read<br># DEFAULT_HOST is useless, IMO<br><br>DEFAULT_PORT=3733<br>DEFAULT_HOST=""<br>DEBUG=0<br><br>def appkill(signum, frame):<br> print "%s: shutting down" % sys.argv[0]<br> sys.exit()<br><br>signal.signal(signal.SIGTERM,appkill)<br>signal.signal(signal.SIGINT,appkill)<br><br>PORT=DEFAULT_PORT<br>HOST=DEFAULT_HOST<br><br>try:<br> opt, args = getopt.getopt(sys.argv[1:],'p:h', ['help','port='] )<br>except getopt.error, s:<br> print "%s: %s" % (sys.argv[0] , s)<br> sys.exit(1)<br><br>for o in opt:<br><br> if o[0] == "-d" or o[0] == "--debug":<br> DEBUG=1<br><br> if o[0] == "-p" or o[0] == "--port":<br> try:<br> PORT=int(o[1])<br> except Val ueError:<br> print "%s: port number must be integer" % sys.argv[0]<br> sys.exit(1)<br><br> if o[0] == "-h" or o[0] == "--help":<br> print "%s: CORBA Nameserver Wrapper (with TCP-spit IOR)" % sys.argv[0]<br> print "%s: usage: %s [-p port]" % ( sys.argv[0] , sys.argv[0] )<br> sys.exit(1)<br><br>try:<br> s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)<br> # to avoid being stuck with sockets in TIME_WAIT<br> s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)<br> s.bind(HOST,PORT)<br> s.listen(1)<br>except:<br> s.close()<br> print 'Problem with socket creation and bind'<br> print sys.exc_type,sys.exc_value<br> sys.exit(1)<br><br># inverted exception handling here - found is good, default is bad<br><br>try: <br> for f in string.split(os.environ["PATH"],":"):<br> if os.access( "%s/orbit-name-server" % f,os.X_OK):<br> raise "Found"<br> print "%s: orbit-name-server not found in path" % sys.argv[0]<br> sys.exit(1)<br>except "Found":<br> pass<br><br># This is a bit of b lack magic but it works for me: we popen<br># orbit-name-server, read the ior and f.close() it. Now, since this<br># child process is mine, it dies when I sys.exit(), and we're all happy.<br># Looks unlikely to work on Win32, but os.popen doesn't work anyway :-)<br>f=os.popen("orbit-name-server &","r")<br>iorstring=f.readline()<br>f.close()<br><br>if DEBUG:<br> print "IOR is %s" % iorstring<br>if DEBUG:<br> print "%s: started up with port to %s" % ( sys.argv[0] , PORT )<br><br>try:<br> while 1:<br> conn,addr=s.accept()<br> if DEBUG:<br> print 'Peer is',addr<br> conn.send(iorstring)<br> conn.close()<br>except SystemExit:<br> sys.exit(0)<br>except:<br> conn.close()<br> s.close()<br> print 'Foobared'<br> print sys.exc_type,sys.exc_value<br> sys.exit(1)<br><br></pre> </blockquote> I do not understand what is this example must help me with. I have a problem to work with NameService AFTER getting the IOR (and naming_context = orb.string_to_object(ior)). Calling of any method of the "naming_context" fails and leads to client (and server!) aborting... Why?!<br> <br> BTW, what happened with the irc channel #orbit-python on openprojects.net? It's eventually empty...<br> <br> </body> </html> |
From: Eugene P. S. <eu...@en...> - 2002-05-28 07:40:37
|
Eugene P. Sizikov wrote: > Hello, Tack! > > I have a question about using CORBA NamingService with orbit-python > (using o-p from gnome cvs). When I do 'import CosNaming' where the > CosNaming module imported from? And why it's only NamingService and > not InteroperableNamingService as in ORBit2 (no NamingContextExt > interface implementation)? > > Also, any NamingContext function calls is CORBA.COMM_FAILURE (and the > orbit-name-service-2 process is aborted after the function aborted). > > Here is my test code: > > #!/usr/bin/python2.2 > # server.py > > import sys > > try: > import CORBA, CosNaming > except: > print "Can't import CORBA stuff, exiting" > sys.exit(-1) > > orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID) > root_poa = orb.resolve_initial_references("RootPOA") > deas_poa = root_poa > > ns_ior_filename = "./ins.ior" > > # for registering servants with the CORBA NamingService > # FIXME: where can I get the ior from? > root_ns_nc = > orb.string_to_object(open(ns_ior_filename).readline())._narrow(CosNaming.NamingContext) > > name = [CosNaming.NameComponent()] > > # register DEAS naming context with the CORBA NamingService > name[0].kind = 'DEAS context' > name[0].id = 'root' > try: > deas_ns_nc = root_ns_nc.new_context()._narrow(CosNaming.NamingContext) > except: > print 'Can not create NameService CosNaming.NamingContext instance' > sys.exit(-3) > > # !!! Always aborted here !!! > root_ns_nc.rebind_context(name, deas_ns_nc) > > # activate the POAManager > poa_manager = deas_poa.the_POAManager() > poa_manager.activate() > > # run the ORB > orb.run() > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Orbit-python-list mailing list > Orb...@li... > https://lists.sourceforge.net/lists/listinfo/orbit-python-list Hello! I have found out when it (o-p) gets CosNaming from! /usr/share/name-service.idl from gnome-? rpm. But how am I to work with it ?! Implementation of this .idl is the orbit-name-server-2 with is running and which IOR I'm using! What do I need on the client (o-p) side? Eugene. |
From: Eugene P. S. <eu...@en...> - 2002-05-28 06:18:27
|
Hello, Tack! I have a question about using CORBA NamingService with orbit-python (using o-p from gnome cvs). When I do 'import CosNaming' where the CosNaming module imported from? And why it's only NamingService and not InteroperableNamingService as in ORBit2 (no NamingContextExt interface implementation)? Also, any NamingContext function calls is CORBA.COMM_FAILURE (and the orbit-name-service-2 process is aborted after the function aborted). Here is my test code: #!/usr/bin/python2.2 # server.py import sys try: import CORBA, CosNaming except: print "Can't import CORBA stuff, exiting" sys.exit(-1) orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID) root_poa = orb.resolve_initial_references("RootPOA") deas_poa = root_poa ns_ior_filename = "./ins.ior" # for registering servants with the CORBA NamingService # FIXME: where can I get the ior from? root_ns_nc = orb.string_to_object(open(ns_ior_filename).readline())._narrow(CosNaming.NamingContext) name = [CosNaming.NameComponent()] # register DEAS naming context with the CORBA NamingService name[0].kind = 'DEAS context' name[0].id = 'root' try: deas_ns_nc = root_ns_nc.new_context()._narrow(CosNaming.NamingContext) except: print 'Can not create NameService CosNaming.NamingContext instance' sys.exit(-3) # !!! Always aborted here !!! root_ns_nc.rebind_context(name, deas_ns_nc) # activate the POAManager poa_manager = deas_poa.the_POAManager() poa_manager.activate() # run the ORB orb.run() |
From: Thomas L. <loc...@fo...> - 2002-04-26 19:01:51
|
> But I have discovered that CORBA::any's work anyway if you don't care > about corba type codes... Thanks for the tip! > Don't ask me how to create CORBA::any from python, though, as I > haven't tried that yet. Ah, I'm definitely interested in doing this since we use Event Channels and other "Any-full" interfaces. Though I probably have a few apps which could avoid generating Anys. - Thomas |
From: Gustavo C. <gj...@in...> - 2002-04-26 17:32:11
|
I was having the same doubts as you some time ago. In fact I still do! But I have discovered that CORBA::any's work anyway if you don't care about corba type codes. Say you have this: result =3D some_corba_object.some_method_that_returns_any(foo,bar) Then, you can get the value as: value =3D result.value Then, value is a standard python object, and you can use python's type system to differentiate types. For example, if the CORBA::any is of type TC_CORBA_string, you the following expression is true: type(value) is StringType Don't ask me how to create CORBA::any from python, though, as I haven't tried that yet. On Fri, 2002-04-26 at 17:34, Thomas Lockhart wrote: > I'm looking at using python and ORBit for some applications in a large > distributed realtime system (for which the primary ORB is TAO; JacORB > and Mico are used also). Some of the interfaces use Anys, and I'm trying > to get my first application working with them. I've got some questions > (feel free to answer one or several rather than waiting for someone who > knows them all ;)... >=20 > I cribbed a snippet of code from the test-suite part of the > orbit-python-0.3.1 tarball which packages a simple Any for return by a > server. But I'm not successfully finding the type code in that example, > getting an error thrown (tested with both ORBit-0.5.8 and -0.5.15). The > traceback sez: >=20 > tc =3D CORBA.TypeCode("IDL:CORBA:String/1.0") > TypeError: Unregistered repoid IDL:CORBA:String/1.0 >=20 > So, (1) what do I need to do to get a fundamental type code recognized? > (2) How would I discover which type codes are available (in case I have > a typo here)? If I was generating stubs, I'd cheat and look in the stubs > for these signatures. But with the nice dynamic loading features of O-P, > I don't have a static file to look at. I'm not particularly experienced > with python, so newbie hints are welcome. >=20 > If I try using this same call in a server object, I get a different kind > of error: >=20 > AttributeError: class TypeError has no attribute '__repo_id' > Traceback (most recent call last): > File "conflite.py", line 43, in LoadConfiguration > tc =3D CORBA.TypeCode("IDL:CORBA:String/1.0") > TypeError: Unregistered repoid IDL:CORBA:String/1.0 >=20 > which I'm guessing means that I don't have my server object inheriting > from the right built-in object or objects which would give me that > __repo_id internal attribute. (3) Any hints on what I'm missing here? >=20 > btw, O-P seems to work with the TAO naming service and with simple > examples just fine. I'm looking forward to doing more... >=20 > Regards. >=20 > - Thomas >=20 > _______________________________________________ > Orbit-python-list mailing list > Orb...@li... > https://lists.sourceforge.net/lists/listinfo/orbit-python-list --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> |
From: Thomas L. <loc...@fo...> - 2002-04-26 16:34:19
|
I'm looking at using python and ORBit for some applications in a large distributed realtime system (for which the primary ORB is TAO; JacORB and Mico are used also). Some of the interfaces use Anys, and I'm trying to get my first application working with them. I've got some questions (feel free to answer one or several rather than waiting for someone who knows them all ;)... I cribbed a snippet of code from the test-suite part of the orbit-python-0.3.1 tarball which packages a simple Any for return by a server. But I'm not successfully finding the type code in that example, getting an error thrown (tested with both ORBit-0.5.8 and -0.5.15). The traceback sez: tc = CORBA.TypeCode("IDL:CORBA:String/1.0") TypeError: Unregistered repoid IDL:CORBA:String/1.0 So, (1) what do I need to do to get a fundamental type code recognized? (2) How would I discover which type codes are available (in case I have a typo here)? If I was generating stubs, I'd cheat and look in the stubs for these signatures. But with the nice dynamic loading features of O-P, I don't have a static file to look at. I'm not particularly experienced with python, so newbie hints are welcome. If I try using this same call in a server object, I get a different kind of error: AttributeError: class TypeError has no attribute '__repo_id' Traceback (most recent call last): File "conflite.py", line 43, in LoadConfiguration tc = CORBA.TypeCode("IDL:CORBA:String/1.0") TypeError: Unregistered repoid IDL:CORBA:String/1.0 which I'm guessing means that I don't have my server object inheriting from the right built-in object or objects which would give me that __repo_id internal attribute. (3) Any hints on what I'm missing here? btw, O-P seems to work with the TAO naming service and with simple examples just fine. I'm looking forward to doing more... Regards. - Thomas |
From: <ee...@fe...> - 2002-04-05 21:37:13
|
Has anyone actually tested demarshalling CORBA::double's in orbit-python? I don't receive anything like the value I've sent with CORBA::double. I have this server program that returns a CORBA::any with a CORBA::double inside, but orbit-python doesn't receive correctly. There's no error message, but the value is wrong and weird... I'm sure the server isn't making any mistake because I have a C client that receives the same value correctly. And when I changed the type to CORBA::float, then it worked!=20 Can someone (a developer, hopefully) please fix this? I tried looking at the code, searching for a bug, but couldn't find any, and I felt a bit lost in there. --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> |
From: dman <dm...@dm...> - 2002-03-28 22:30:15
|
On Thu, Mar 28, 2002 at 02:59:41PM -0700, Riggs, Rob wrote: | MS says "In addition to working directly with these file types, Jet can work | against any data source which provides an ODBC driver. This is called | attaching an external ODBC data source or table." | | http://support.microsoft.com/default.aspx?scid=kb;EN-US;q154643 Thanks! I'll have to test the commercial program in that setup. From other reading I was under the impression that "Jet" was the default db engine for access and that linking odbc drivers was a way of getting something better than jet. | Orbit-python is not necessarily ustable, but, when I used it, O-P was not | robust enough for non-trivial applications. I had issues with memory leaks, | and with threading issues. And I ran into enough problems with the | overridden import function when my dependency tree became even a little | complex that I was forced to give up on it. Ok. Unfortunate. I'd like to see orbit-python be "the" orb :-). | Orbit-python was a great learning tool for me. But I quickly ran | into it and Orbit's limitations. Other than using gnome on a regular basis, and a single lab in a class, and some curiosity-driven reading, I haven't done much with CORBA yet. Certainly nothing non-trivial. | Setting up the omniORB name service is fairly trivial. I created omniORB | RPMs that includes omniNames. And once the ref is in omniNames, you can | reference it with a simple "corbaname" URI. It takes 5-10 lines of Python | code to add the reference to the server. Then fetch it with: | | o = orb.string_to_object("corbaname::myserver#myobject") That INS stuff is new to me. It looks promising, though. I don't expect the coding side to be hard (especially after dealing with sun's reference implementation for java!), but was thinking more along the lines of configuration management. | Lots easier than making your own custom IOR daemon IMHO. I already have that daemon, it just doesn't work in the same process as the orb. It's just an infinite loop that accept()s on a socket, stuffs the IOR into it, and closes the socket. You can't get an easier protocol than that :-). If my comprehension is correct, then only the first Connection object needs to be accessed via name or ior. Everything else will be returned from methods in that object. I do agree that a nameserver is the Right Way to do it. -D -- (E)ventually (M)allocs (A)ll (C)omputer (S)torage |
From: Riggs, R. <RR...@do...> - 2002-03-28 22:03:34
|
MS says "In addition to working directly with these file types, Jet can work against any data source which provides an ODBC driver. This is called attaching an external ODBC data source or table." http://support.microsoft.com/default.aspx?scid=kb;EN-US;q154643 Orbit-python is not necessarily ustable, but, when I used it, O-P was not robust enough for non-trivial applications. I had issues with memory leaks, and with threading issues. And I ran into enough problems with the overridden import function when my dependency tree became even a little complex that I was forced to give up on it. Orbit-python was a great learning tool for me. But I quickly ran into it and Orbit's limitations. Setting up the omniORB name service is fairly trivial. I created omniORB RPMs that includes omniNames. And once the ref is in omniNames, you can reference it with a simple "corbaname" URI. It takes 5-10 lines of Python code to add the reference to the server. Then fetch it with: o = orb.string_to_object("corbaname::myserver#myobject") Lots easier than making your own custom IOR daemon IMHO. -----Original Message----- From: dman [mailto:dm...@dm...] Except that the commercial program we have that uses the database hooks directly into the Jet engine. AFAIK that can't be redirected to an ODBC link. (that would be the preferred option, though) ... Did you find orbit-python to be unstable on linux? The biggest difference I found, so far, between orbit-python and omniORBpy is that the latter requires generating python source from the idl. I also need a way for the client to find the object. I found out that I can't just serve the IOR through a socket and have the orb still work. Setting up a nameserver seems a bit of overkill for this application, but I'll work through the docs on it. I did use a nameserver once, with java, in a class at school. Hmm, perhaps I can exec a separate daemon for serving the IOR. |
From: dman <dm...@dm...> - 2002-03-28 21:20:40
|
On Thu, Mar 28, 2002 at 01:46:19PM -0700, Riggs, Rob wrote: | Have you considered other architectural design options? Yes. | It's fairly easy to move Access tables into a relational database | (PostgreSQL, for example), and use ODBC table links to get at the | data from within Access. You can then use ODBC to access the | database from both applications, and eliminate the need for the | additional CORBA middleware component. I think this is a lot less | work up front, and will be easier to maintain in the long run. Except that the commercial program we have that uses the database hooks directly into the Jet engine. AFAIK that can't be redirected to an ODBC link. (that would be the preferred option, though) | However, if you are stuck on using CORBA, Commercial ODBC drivers for UNIX->Access are extremely expensive. I didn't find any free ones. (this is a non-profit organization; $2k software components aren't very feasible) | have you considered omniORB? I got hello world to work with it. If I can't get orbit-python for windows then I'll be using it, most likely. | I've used it under Linux and NT4, and find it much more stable than | Orbit-python. Did you find orbit-python to be unstable on linux? The biggest difference I found, so far, between orbit-python and omniORBpy is that the latter requires generating python source from the idl. I also need a way for the client to find the object. I found out that I can't just serve the IOR through a socket and have the orb still work. Setting up a nameserver seems a bit of overkill for this application, but I'll work through the docs on it. I did use a nameserver once, with java, in a class at school. Hmm, perhaps I can exec a separate daemon for serving the IOR. Thanks, -D -- All a man's ways seem innocent to him, but motives are weighed by the Lord. Proverbs 16:2 |
From: Riggs, R. <RR...@do...> - 2002-03-28 20:50:10
|
Have you considered other architectural design options? It's fairly easy to move Access tables into a relational database (PostgreSQL, for example), and use ODBC table links to get at the data from within Access. You can then use ODBC to access the database from both applications, and eliminate the need for the additional CORBA middleware component. I think this is a lot less work up front, and will be easier to maintain in the long run. However, if you are stuck on using CORBA, have you considered omniORB? I've used it under Linux and NT4, and find it much more stable than Orbit-python. -Rob -----Original Message----- From: dman [mailto:dm...@dm...] Sent: Thursday, March 28, 2002 1:29 PM To: orb...@li... Subject: [Orbit-python-list] win32, orbit2 (separate questions) I need to create a system for accessing an MS Access database from a Linux server. For a variety of reasons I've choosen to use python for the implementation and use corba and odbc for middleware. Obtaining orbit and python-orbit for linux is familiar and easy; not a problem. However, as usual, windows is a different story. I need to use the win32 build of python to access the win32 odbc driver. Thus I can't use gcc to build any other components that I need. I managed to find a win32 build of orbit (0.5.1), though haven't tested it yet (how can I?). I don't see any win32 builds of python-orbit, though. I really like python-orbit because of the dynamic IDL loading. Does python-orbit work on windows? Can someone provide me with a binary (for python 2.1 or 2.2)? (no installer please, just the .dll or .pyd; I can put it in sys.path myself) I also don't see any mention of python-orbit for orbit2 (nor did I find a win32 binary of orbit2). Will python-orbit be provided for orbit2? TIA, -D -- The way of a fool seems right to him, but a wise man listens to advice. Proverbs 12:15 _______________________________________________ Orbit-python-list mailing list Orb...@li... https://lists.sourceforge.net/lists/listinfo/orbit-python-list |
From: dman <dm...@dm...> - 2002-03-28 20:23:44
|
I need to create a system for accessing an MS Access database from a Linux server. For a variety of reasons I've choosen to use python for the implementation and use corba and odbc for middleware. Obtaining orbit and python-orbit for linux is familiar and easy; not a problem. However, as usual, windows is a different story. I need to use the win32 build of python to access the win32 odbc driver. Thus I can't use gcc to build any other components that I need. I managed to find a win32 build of orbit (0.5.1), though haven't tested it yet (how can I?). I don't see any win32 builds of python-orbit, though. I really like python-orbit because of the dynamic IDL loading. Does python-orbit work on windows? Can someone provide me with a binary (for python 2.1 or 2.2)? (no installer please, just the .dll or .pyd; I can put it in sys.path myself) I also don't see any mention of python-orbit for orbit2 (nor did I find a win32 binary of orbit2). Will python-orbit be provided for orbit2? TIA, -D -- The way of a fool seems right to him, but a wise man listens to advice. Proverbs 12:15 |
From: Hauke B. <hau...@we...> - 2002-02-21 15:17:21
|
Hello, as sequence<octet> is afaik the only way to transmit binary data in CORBA, it is somehow annoying that the demarshalling code in O-P only works with 0-terminated strings. I suggest to change the line in file demarshal.c, line 243 in 0.3.1, 246 in CVS seq = PyString_FromString (string); to seq = PyString_FromStringAndSize(string,len); with this patch, you can receive binary data correctly (there might still be a problem with marshalling binary data, I haven't checked this) Cheerio, hauke |
From: <cl...@sp...> - 2002-02-17 07:18:31
|
Hello, I just compiled orbit-python-3.1 on my Redhat 7.2 system and (AFAICT) I need to add the $(LIBIDL_CFLAGS) to my src/Makefile on line 169: COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(LIBIDL_CFLAGS) $(CFLAGS) in order for the proper include files to be found. Thanks for your work. -chris |
From: Adam O. <rh...@d2...> - 2002-02-13 15:02:07
|
In CORBA_ORB_PyObject__string_to_object in CORBA_ORB.c it trims off trailing whitespace from the IOR. But if the IOR doesn't contain any non-whitespace it could underflow, destroying stuff before the buffer if they match the isspace() check. I suggest changing it to: for (i = strlen(s) - 1; i >= 0 && isspace(s[i]); i--) s[i] = 0; -- Adam Olsen, aka Rhamphoryncus |