[omniORB] omniifr backend problem

Frédéric Bouvier frbouvi@wanadoo.fr
Wed, 25 Jul 2001 12:52:09 +0200


C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_000D_01C11508.9DF16850
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I am trying omniifr and I have the following problem: omniidl is not =
able to import
the ifr backend although the file ifr.py is present in the same =
directory as showast.py
and example.py. By the way, how omniidl find its back-ends and in what =
path ?

I am trying omniifr 1.1.4 with omniORB 3.0.4

Thank you

Fred


C:\omniORB\omni\src\examples\echo>dir ..\..\..\lib\python\omniidl_be
 Le volume dans le lecteur C s'appelle W2000
 Le num=E9ro de s=E9rie du volume est 1505-2459

 R=E9pertoire de C:\omniORB\omni\lib\python\omniidl_be

15/07/2001  22:28       <DIR>          .
15/07/2001  22:28       <DIR>          ..
15/07/2001  22:28                   62 __init__.py
15/07/2001  22:28               11 756 dump.py
15/07/2001  22:28                1 809 example.py
15/07/2001  22:57                   76 __init__.pyc
15/07/2001  22:57               12 780 dump.pyc
15/07/2001  22:57                1 513 example.pyc
15/07/2001  22:29       <DIR>          cxx
15/07/2001  22:29               13 645 showast.py
15/07/2001  22:57               15 605 showast.pyc
15/07/2001  23:04               34 164 ifr.py
25/07/2001  12:29               34 065 ifr.pyc
              10 fichier(s)          125 475 octets
               3 R=E9p(s)   1 482 096 640 octets libres

C:\omniORB\omni\src\examples\echo>omniidl -bifr echo.idl
omniidl: Could not import back-end `ifr'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was `No module named omniORB')

C:\omniORB\omni\src\examples\echo>omniidl -bexample echo.idl
Echo::echoString()

C:\omniORB\omni\src\examples\echo>omniidl -bshowast echo.idl
Showing the AST tree:
AST {
  declarations:
  interface {
Traceback (innermost last):
  File "<string>", line 31, in ?
  File ".\main.py", line 424, in main
  File ".\showast.py", line 58, in run
  File ".\idlast.py", line 162, in accept
  File ".\showast.py", line 110, in visitAST
  File ".\idlast.py", line 334, in accept
  File ".\showast.py", line 134, in visitInterface
  File ".\showast.py", line 87, in showID
  File ".\tyutil.py", line 228, in mapID
TypeError: second argument must be a class


------=_NextPart_000_000D_01C11508.9DF16850
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying omniifr and I have the =
following=20
problem: omniidl is not able to import</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the ifr backend although the file =
ifr.py is present=20
in the same directory as showast.py</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and example.py. By the way, how omniidl =
find its=20
back-ends and in what path ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying omniifr 1.1.4 with omniORB=20
3.0.4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Fred</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>C:\omniORB\omni\src\examples\echo&gt;dir=20
..\..\..\lib\python\omniidl_be<BR>&nbsp;Le volume dans le lecteur C =
s'appelle=20
W2000<BR>&nbsp;Le num=E9ro de s=E9rie du volume est =
1505-2459</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;R=E9pertoire de=20
C:\omniORB\omni\lib\python\omniidl_be</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>15/07/2001&nbsp;=20
22:28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;DIR&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
.<BR>15/07/2001&nbsp; 22:28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;DIR&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
..<BR>15/07/2001&nbsp;=20
22:28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
62 __init__.py<BR>15/07/2001&nbsp;=20
22:28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
11&nbsp;756 dump.py<BR>15/07/2001&nbsp;=20
22:28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
1&nbsp;809 example.py<BR>15/07/2001&nbsp;=20
22:57&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
76 __init__.pyc<BR>15/07/2001&nbsp;=20
22:57&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
12&nbsp;780 d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p;=20
3 R=E9p(s)&nbsp;&nbsp; 1&nbsp;482&nbsp;096&nbsp;640 octets =
libres</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>C:\omniORB\omni\src\examples\echo&gt;omniidl -bifr=20
echo.idl<BR>omniidl: Could not import back-end `ifr'<BR>omniidl: Maybe =
you need=20
to use the -p option?<BR>omniidl: (The error was `No module named=20
omniORB')</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>C:\omniORB\omni\src\examples\echo&gt;omniidl=20
-bexample echo.idl<BR>Echo::echoString()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>C:\omniORB\omni\src\examples\echo&gt;omniidl=20
-bshowast echo.idl<BR>Showing the AST tree:<BR>AST {<BR>&nbsp;=20
declarations:<BR>&nbsp; interface {<BR>Traceback (innermost =
last):<BR>&nbsp;=20
File "&lt;string&gt;", line 31, in ?<BR>&nbsp; File ".\main.py", line =
424, in=20
main<BR>&nbsp; File ".\showast.py", line 58, in run<BR>&nbsp; File=20
".\idlast.py", line 162, in accept<BR>&nbsp; File ".\showast.py", line =
110, in=20
visitAST<BR>&nbsp; File ".\idlast.py", line 334, in accept<BR>&nbsp; =
File=20
".\showast.py", line 134, in visitInterface<BR>&nbsp; File =
".\showast.py", line=20
87, in showID<BR>&nbsp; File ".\tyutil.py", line 228, in =
mapID<BR>TypeError:=20
second argument must be a class</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000D_01C11508.9DF16850--