[Zope-dev] zope-tests - FAILED: 3, OK: 12

Marius Gedminas marius at gedmin.as
Wed Mar 27 19:53:56 UTC 2013


On Wed, Mar 27, 2013 at 12:00:17PM +0100, Patrick Gerken wrote:
> 2013/3/27 Zope tests summarizer <noreply at zope.org>
> > [1]    FAILED  Still Failing - zopetoolkit_trunk - Build # 214
> >        https://mail.zope.org/pipermail/zope-tests/2013-March/073549.html
>
> ​I can reproduce the problems.

Hehe, there's a U+200B ZERO WIDTH SPACE in front of that sentence.

> I do not understand at all, why buildout does not add persistent into the
> path for zope.traverser. Through dependency chains it depends on BTrees and
> BTrees depends on persistent, still, persistent is not in the paths for my
> script. Marius, can you show me your buildout script and your test script
> for zope traverser? Mine is:
>
> do3cc at BRICK> cat bin/buildout  | sed -e 's/\(
> *\).*\(\/[^\/]*\)\(\/[^\/]*\)/\1\2\3/'

  mg at platonas: ~/src/zopetoolkit [svn:trunk] $ cat bin/buildout  | sed -e 's/\(
  > *\).*\(\/[^\/]*\)\(\/[^\/]*\)/\1\2\3/'
  sed: -e expression #1, char 4: unterminated `s' command

I'm not sure what that sed expression was supposed to do, so there's the entire
thing:

  mg at platonas: ~/src/zopetoolkit [svn:trunk] $ cat bin/buildout
  #!/home/mg/src/zopetoolkit/python/bin/python

  import sys
  sys.path[0:0] = [
    '/home/mg/.buildout/eggs/distribute-0.6.35-py2.7.egg',
    '/home/mg/.buildout/eggs/zc.buildout-2.0.1-py2.7.egg',
    ]

  import zc.buildout.buildout

  if __name__ == '__main__':
      sys.exit(zc.buildout.buildout.main())

/home/mg/src/zopetoolkit/python is a virtualenv for Python 2.7, to avoid
/usr/lib/python2.7/dist-packages/zope.interface (which is 3.6.1).

  mg at platonas: ~/src/zopetoolkit [svn:trunk] $ cat bin/test-ztk-zope.traversing
  #!/home/mg/src/zopetoolkit/python/bin/python

  import sys
  sys.path[0:0] = [
    '/home/mg/.buildout/eggs/zope.traversing-4.0.0a2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.testrunner-4.2.0-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.interface-4.0.4-py2.7-linux-x86_64.egg',
    '/home/mg/.buildout/eggs/zope.exceptions-4.0.6-py2.7.egg',
    '/home/mg/.buildout/eggs/six-1.2.0-py2.7.egg',
    '/home/mg/.buildout/eggs/distribute-0.6.35-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.testing-4.1.2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.tales-4.0.1-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.security-4.0.0b1-py2.7-linux-x86_64.egg',
    '/home/mg/.buildout/eggs/zope.configuration-4.0.2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.component-4.1.0-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.browserresource-4.0.0-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.annotation-4.2.0-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.publisher-4.0.0a2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.proxy-4.1.1-py2.7-linux-x86_64.egg',
    '/home/mg/.buildout/eggs/zope.location-4.0.1-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.i18nmessageid-4.0.2-py2.7-linux-x86_64.egg',
    '/home/mg/.buildout/eggs/zope.i18n-4.0.0a4-py2.7.egg',
    '/home/mg/.buildout/eggs/transaction-1.4.1-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.schema-4.3.2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.event-4.0.2-py2.7.egg',
    '/home/mg/.buildout/eggs/zope.contenttype-4.0.1-py2.7.egg',
    '/home/mg/.buildout/eggs/BTrees-4.0.5-py2.7-linux-x86_64.egg',
    '/home/mg/.buildout/eggs/zope.browser-2.0.1-py2.7.egg',
    '/home/mg/.buildout/eggs/pytz-2012j-py2.7.egg',
    '/home/mg/.buildout/eggs/persistent-4.0.6-py2.7-linux-x86_64.egg',
    ]

  import os
  sys.argv[0] = os.path.abspath(sys.argv[0])
  os.chdir('/home/mg/src/zopetoolkit/parts/test-ztk-zope.traversing')


  import zope.testrunner

  if __name__ == '__main__':
      sys.exit(zope.testrunner.run([
          '--test-path', '/home/mg/.buildout/eggs/zope.traversing-4.0.0a2-py2.7.egg',
          ]))

What I did was

  svn co svn+ssh://svn.zope.org/repos/main/zopetoolkit/trunk zopetoolkit
  cd zopetoolkit
  virtualenv -p python2.7 python
  python/bin/python bootstrap.py
  bin/buildout prefer-final=false
  bin/test-ztk-zope.traversing

because I didn't realize I needed to use a different buildout config!

Trying now to

  bin/buildout -c development-python2.cfg buildout:prefer-final=false
  bin/test-ztk-zope.traversing

I can reproduce the problem, and my bin/test-ztk-zope.traversing does
*not* include persistent in sys.path.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20130327/405a044e/attachment.sig>


More information about the Zope-Dev mailing list