New issue 266: upgrade to tox 2.1.1 breaks tox: ImportError: No module named
hookspecs
https://bitbucket.org/hpk42/tox/issues/266/upgrade-to-tox-211-breaks-tox-importerror
Sorin Sbarnea:
As I was trying to debug anouther issue with tox I tried to upgrade it and I
discovered that the new version is broken on OS X.
```
#!python
sudo pip install --upgrade tox
Collecting tox
Downloading tox-2.1.1-py2.py3-none-any.whl
Collecting virtualenv>=1.11.2 (from tox)
Downloading virtualenv-13.1.0-py2.py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 272kB/s
Collecting py>=1.4.17 (from tox)
Downloading py-1.4.30-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 86kB 3.7MB/s
Collecting pluggy<0.4.0,>=0.3.0 (from tox)
Downloading pluggy-0.3.0-py2.py3-none-any.whl
Installing collected packages: virtualenv, py, pluggy, tox
Found existing installation: virtualenv 12.0.7
Uninstalling virtualenv-12.0.7:
Successfully uninstalled virtualenv-12.0.7
Found existing installation: py 1.4.26
Uninstalling py-1.4.26:
Successfully uninstalled py-1.4.26
Found existing installation: tox 1.9.2
Uninstalling tox-1.9.2:
Successfully uninstalled tox-1.9.2
```
And the outcome is:
```
#!bash
sorins@nibbler ~/dev/jira $ 1 which tox
/usr/local/bin/toxsorins@nibbler ~/dev/jira $ toxTraceback (most recent call
last): File "/usr/local/bin/tox", line 7, in <module> from tox import
cmdline File "/usr/local/lib/python2.7/site-packages/tox/__init__.py", line 4,
in <module>
from .hookspecs import hookspec, hookimpl # noqa
ImportError: No module named hookspecs
```
```
sorins@nibbler ~/dev/jira $ 1 which python
/usr/local/bin/python
sorins@nibbler ~/dev/jira $ python -m tox
/usr/local/opt/python/bin/python2.7: No module named hookspecs; 'tox' is a
package and cannot be directly executed
```
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit