[Zope-DB] DCOracle2 wrt adding External Module

tenasakai@earthlink.net tenasakai@earthlink.net
Thu, 18 Jul 2002 12:03:29 -0700


Folks,

I am not certain if this is related or not, but I see a few error
messages as I start zope:

   2002-07-18T18:20:47 ERROR(200) Zope Could not import Products.ZOracleDA
   ceback (innermost last):
     File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/OFS/Application.py,

line 531, in import_product
   File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

__init__.py, line 91, in ?
     File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

DA.py, line 90, in ?
   File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

db.py, line 89, in ?
   File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

DCOracle2/__init__.py, line 37, in ?
     File
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

DCOracle2/DCOracle2.py, line 104, in ?
   ImportError: ld.so.1:
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/bin/python: fatal: relocation
error: file
  
/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/lib/python/Products/ZOracleDA/

DCOracle2/dco2.so: symbol PyType_IsSubtype: referenced symbol not found

This is true.  I ran strings on dco2.so and grep'ed PyType_IsSubtype
and nothing got returned.  Would somebody please tell me what is
going on here?  Maybe there is a patch for this?

Thank you.

Tena Sakai


                                                                              

                                            
                                       To:       zope-db@zope.org     
                                            
                      Sent by:                 cc:      
tena.sakai.b@bayer.com                                            
                      zope-db-admin@zop        Subject:  [Zope-DB] DCOracle2
wrt adding External Module                    
                      e.org                                                   

                                            
                                                                              

                                            
                                                                              

                                            
                      07/17/2002 07:23                                        

                                            
                      PM                                                      

                                            
                      Please respond to                                       

                                            
                      tenasakai                                               

                                            
                                                                              

                                            
                                                                              

                                            




Folks,

I have made DCOracle2 a few times in last couple of
hours and I can't solve this problem.  Namely:
If I run Python interactively and say
    import DCOracle2
all is well.  If I go to zope and try to add a
simple external method then I get an error:
      Error Type: ImportError
      Error Value: No module named DCOracle2
The method I am trying to add is in Extensions
directory (immediately under the distribution
directory) and my routine looks like:

      #!/usr/local/bin/python
      import httlib, urllib2, urlparse
      import DCOracle2

      def my_fun ():
           return 'Howdy hotdog!'

Can somebody please tell me why this fails?
If I take out the second import statement, there
is no problem.  Apparently, DCOracle2 is not
in the right place as far as zope is concerned.
I'd rather not start copying things randomly.
Please tell me where it should be and why it is
not there so that I can do the correct fix.

Thank you.

Tena Sakai

PS: If someone wants to give me the correct fix,
    I am all ears.


_______________________________________________
Zope-DB mailing list
Zope-DB@zope.orghttp://lists.zope.org/ma
ilman/listinfo/zope-db