ImportError: No module named extras

Bug #1102464 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Critical
Robert Collins

Bug Description

The latest 0.9.25 release doesn't install with pip anymore:

(test)johannes@intel1-compute:~/virtualenvs$ pip install testtools
Downloading/unpacking testtools
  Downloading testtools-0.9.25.tar.gz (167Kb): 167Kb downloaded
  Running setup.py egg_info for package testtools
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/johannes/virtualenvs/test/build/testtools/setup.py", line 8, in <module>
        import testtools
      File "testtools/__init__.py", line 34, in <module>
        from extras import (
    ImportError: No module named extras
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/johannes/virtualenvs/test/build/testtools/setup.py", line 8, in <module>

    import testtools

  File "testtools/__init__.py", line 34, in <module>

    from extras import (

ImportError: No module named extras

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/johannes/.pip/pip.log

The test virtual environment was brand new and empty.

It looks like the problem is that setup.py tries to import testtools for some reason before it's installed (which would install the extras dependency).

This recently started causing problems in OpenStack Nova (and other projects):

https://bugs.launchpad.net/nova/+bug/1102400

Revision history for this message
Robert Collins (lifeless) wrote :

Sorry about this, two-fold error (pip doesn't support setup_requires, and we didn't even list it in setup_requires).

Changed in testtools:
status: New → Fix Released
importance: Undecided → Critical
assignee: nobody → Robert Collins (lifeless)
milestone: none → next
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.