[Zope3-Users] ImportError running bin/zopectl run myScript.py

Marius Gedminas mgedmin at b4net.lt
Tue Jan 22 21:06:56 EST 2008


On Thu, Jan 17, 2008 at 05:46:56PM +0100, Achim Domma wrote:
> I try to run a script on my zope instance via "bin/zopectl run 
> myScript.py". I get the following error:
>
> Traceback (most recent call last):
>   File "/Users/domma/develop/zope/demo/bin/scriptzope", line 22, in ?
>     import paths
> ImportError: No module named paths
>
> I cannot find a paths.py on my system. Any hint what I'm doing wrong?

I haven't seen any reply to this, so I'll bite, even though I've never
used bin/zopectl run in my life.

It appears that you've found a bug.  There's no paths.py on my system
either.  The bin/debugzope script doesn't have these two lines, so I
suggest you remove them:

    import paths
    paths.addPackagePaths()

I've filed a bug: https://bugs.launchpad.net/zope3/+bug/185219

Marius Gedminas
-- 
Get a life?  Well, once I nearly found one, but the link was broken.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20080123/42eb71c8/attachment.bin


More information about the Zope3-users mailing list