No module named 'chaco.contour.contour'
$ python ci/edmtool.py install --toolkit=pyside2
$ edm shell -e chaco-test-3.6-pyside2
$ python -m unittest
======================================================================
ERROR: chaco (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: chaco
Traceback (most recent call last):
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/unittest/loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/aayres/Desktop/chaco/chaco/__init__.py", line 6, in <module>
from ._version import full_version as __version__ # noqa
ModuleNotFoundError: No module named 'chaco._version'
No module named 'chaco.contour.contour'
$ python ci/edmtool.py install --toolkit=pyside2
$ python ci/edmtool.py test --toolkit=pyside2
Document the fact that
edmtool installinstalls the package in a non-editable mode andedmtool testruns the testsuite from an empty temporary directory - not from the root directory of the git repo. Because of this behavior, a developer might run into failures if they choose to manually discover/run the testsuite from the root of the git repo.see below for the original issue
When running the testsuite I see some errors with:
The bad import attempts seem to be here:
chaco/chaco/contour_line_plot.py
Line 16 in 4a66835
chaco/chaco/contour_poly_plot.py
Line 14 in 4a66835
To reproduce:
which fails with:
So I then ran
$ python setup.py sdistas I thought I remembered that this would generate_version. I then ranpython -m unittestagain to see theerrors mentioned above
When running:
I see no errors