ImportError: No module named extras
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@
Downloading/
Downloading testtools-
Running setup.py egg_info for package testtools
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/
import testtools
File "testtools/
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/
import testtools
File "testtools/
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/
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):
Sorry about this, two-fold error (pip doesn't support setup_requires, and we didn't even list it in setup_requires).