Re: zope-tests - FAILED: 3, OK: 12

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20130327195356.GA18161@platonas>
On Wed, Mar 27, 2013 at 12:00:17PM +0100, Patrick Gerken wrote:
> 2013/3/27 Zope tests summarizer <[email protected]>
> > [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@BRICK> cat bin/buildout  | sed -e 's/\(
> *\).*\(\/[^\/]*\)\(\/[^\/]*\)/\1\2\3/'

  mg@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@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@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

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFRU05UkVdEXeem148RAsvaAKCNfDrJdYdkU+AAH/hwYWLuhFGNVQCfa356
LPdDE8E9HeV8UtcvbzPS3OE=
=IHBM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.