bin/test script fails unless zope.testrunner is pip installed

Bug #869347 reported by Stephen A. Goss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Incomplete
Low
Unassigned

Bug Description

I am running Mailman 3 in a virtualenv with most of its package dependencies installed through pip. In this particular configuration, if I run `buildout`, the test script that is created cannot seem to load zope.testrunner properly:

    $ bin/test -vv
    Traceback (most recent call last):
      File "bin/test", line 35, in <module>
        import zope.testrunner
    ImportError: No module named testrunner

The workaround is to remove the eggs folder, pip install zope.testrunner, and then re-run buildout.

Tags: mailman3
Barry Warsaw (barry)
Changed in mailman:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Barry Warsaw (barry) wrote :

Are you sure you started with a clean environment? In a bzr trunk checkout (try `bzr clean-tree --ignored`) I did the following:

$ virtualenv /tmp/xx
$ source /tmp/xx/bin/activate
$ python setup.py install
$ buildout
$ bin/test

Everything worked and all tests succeeded.

The other thing is that I'm not even sure if buildout is supposed to be compatible with virtualenv. Assuming it is, I'm still thinking about getting rid of buildout support for the final release. The hang up right now is replacing zope.testrunner.

Changed in mailman:
status: Incomplete → Invalid
status: Invalid → Incomplete
Revision history for this message
Abhilash Raj (raj-abhilash1) wrote :

This bug has been moved to the new gitlab repo here: https://gitlab.com/mailman/mailman/issues/30

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.