Re: [Zope] Re: Can't import ExtZSQLFactory

2006-05-11 Thread Andrew Hedges
Thanks, Tres, for replying.  In fact, I am the author of the MVP  
product (prolly shoulda mentioned that...).  It seems Zope's not  
finding my Products path for purposes of importing modules.  It is,  
however, finding it for purposes of registering products.  This is my  
first product, so I'm still getting the lay of the land.  Should I be  
able to import modules from my Products directory?  Does the fact I  
can't mean my install is configured incorrectly?  I tried declaring  
an explicit path to my Products directory.  Here's (what I think are)  
the relevant bits from my zope.conf:


%define INSTANCE /usr/local/zopedev
%define ZOPE /usr/local/zopedev
products /usr/local/zopedev/Products

TIA for any help,
-Andrew

On May 11, 2006, at  5/11/2006 5:56 PMMDT, Tres Seaver wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew Hedges wrote:

Here's my traceback:

2006-05-11 16:08:46 ERROR Zope Couldn't install MVP
Traceback (most recent call last):
  File /usr/local/zope/lib/python/OFS/Application.py, line 762, in
install_product
global_dict, global_dict, silly)
  File /usr/local/zopedev/Products/MVP/__init__.py, line 18, in ?
import MVP
  File /usr/local/zopedev/Products/MVP/MVP.py, line 23, in ?
import ExtZSQLFactory
ImportError: No module named ExtZSQLFactory

And yet, there ExtZSQL sits, with proper permissions, in the Products
directory of my Zope instance.  Any ideas?


You need to get help from the author of the 'MVP' product (about  
which I

know nothing).  The import there is expecting either to find a module
'ExtZSQLFactory' directly on the PYTHONPATH or else in the product  
itself.


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Can't import ExtZSQLFactory

2006-05-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew Hedges wrote:
 Thanks, Tres, for replying.  In fact, I am the author of the MVP 
 product (prolly shoulda mentioned that...).  It seems Zope's not 
 finding my Products path for purposes of importing modules.  It is, 
 however, finding it for purposes of registering products.  This is my 
 first product, so I'm still getting the lay of the land.  Should I be 
 able to import modules from my Products directory?  Does the fact I 
 can't mean my install is configured incorrectly?  I tried declaring  an
 explicit path to my Products directory.  Here's (what I think are)  the
 relevant bits from my zope.conf:
 
 %define INSTANCE /usr/local/zopedev
 %define ZOPE /usr/local/zopedev
 products /usr/local/zopedev/Products

You need to import the module as 'Products.ExtSQLFactory':  the
'Products' package is itself on your PYTHONPATH (or stitched into it via
some majyk), but the sub-packages of it are not.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEY+z8+gerLs4ltQ4RAgl/AJ9sMAXBondo9DNi9MhZsnDKPVM0EgCgjsT2
lsvxTWI4sQq83Myqb6r4jsU=
=w3wg
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Can't import ExtZSQLFactory

2006-05-11 Thread Paul Winkler
On Thu, May 11, 2006 at 06:38:25PM -0600, Andrew Hedges wrote:
 Thanks, Tres, for replying.  In fact, I am the author of the MVP  
 product (prolly shoulda mentioned that...).  It seems Zope's not  
 finding my Products path for purposes of importing modules.  It is,  
 however, finding it for purposes of registering products. 

Normally in zope 2, product Foo would import stuff from product Bar
like so:

from Product.Bar import blah


-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )