You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running python -m unittest or coverage run -m unittest discover both raise an ImportError exception:
ImportError: Failed to import test module: gastrodon.domain
Traceback (most recent call last):
File "/usr/local/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/local/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/jugurtha/workspace/python/gastrodon/gastrodon/domain/__init__.py", line 11, in <module>
from sphinx.locale import l_, _
ImportError: cannot import name 'l_' from 'sphinx.locale' (/home/jugurtha/workspace/python/gastrodon/venv/lib/python3.7/site-packages/sphinx/locale/__init__.py)
Running python -m unittest executes with the following results
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Note: The exception mentioned in #9 also was raised, and the proposed changes in mkdocstrings/mkdocstrings#2 were added not to have that error. These are also the changes proposed in #5
The text was updated successfully, but these errors were encountered:
Running
python -m unittest
orcoverage run -m unittest discover
both raise an ImportError exception:According to this commit sphinx-doc/sphinx@8d653a4, the
l_()
function was integrated into_()
.Recommended action:
Change the line:
to
Running
python -m unittest
executes with the following resultsNote: The exception mentioned in #9 also was raised, and the proposed changes in mkdocstrings/mkdocstrings#2 were added not to have that error. These are also the changes proposed in #5
The text was updated successfully, but these errors were encountered: