ImportError: Failed to import test module: tests.image_grabber.test_image_downloader
Traceback (most recent call last):
File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/home/??????/py-image-dataset-generator/tests/image_grabber/test_image_downloader.py", line 6, in
from image_grabber.image_downloader import ImageDownloader
File "/home/??????/py-image-dataset-generator/image_grabber/image_downloader.py", line 5, in
from typing import NoReturn, Tuple
ImportError: cannot import name 'NoReturn'
running: python3 download.py "red car" gives:
ge_downloader.py", line 5, in
from typing import NoReturn, Tuple
ImportError: cannot import name 'NoReturn'
Also the unittest fails:
python3 -m unittest discover
E
ERROR: tests.image_grabber.test_image_downloader (unittest.loader._FailedTest)
ImportError: Failed to import test module: tests.image_grabber.test_image_downloader Traceback (most recent call last): File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name import(name) File "/home/??????/py-image-dataset-generator/tests/image_grabber/test_image_downloader.py", line 6, in
from image_grabber.image_downloader import ImageDownloader
File "/home/??????/py-image-dataset-generator/image_grabber/image_downloader.py", line 5, in
from typing import NoReturn, Tuple
ImportError: cannot import name 'NoReturn'
Ran 1 test in 0.001s
FAILED (errors=1)