tomahim / py-image-dataset-generator

Get a large image dataset with minimal effort by grabbing image through the web and generate new ones by image augmentation.
MIT License
218 stars 41 forks source link

cannot run the download.py #11

Closed aareman closed 6 years ago

aareman commented 6 years ago

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)

tomahim commented 6 years ago

I see you use python 3.5, for now the python 3.6.4 or more is needed to make it work. The NoReturn type hint is not supported before this version.