py-image-dataset-generator icon indicating copy to clipboard operation
py-image-dataset-generator copied to clipboard

SyntaxError: invalid syntax

Open bodhwani opened this issue 6 years ago • 4 comments

folder_path: str, Not accepting argument as a string in case of -folder=folder_name

bodhwani avatar Mar 15 '18 07:03 bodhwani

Hi,

Can you be more specific? What is file line with the syntax error and the command line you are using ? Also what's your Python version ?

Thank you

tomahim avatar Mar 15 '18 07:03 tomahim

You need to have python 3.6.4 or more except 3.7 because it doesn't works actually with this version. I downgraded my version to 3.6.5 and it worked. I used this command line: python3 augmentation.py -folder=your_folder_path -limit=50

salhugues avatar Aug 29 '18 08:08 salhugues

I don't know if it's the same error depending on arguments, but didn't want to open a new issue which will be titled as same as this issue. When I run this command

python download.py "funny cats" -limit=100 -dest=images -resize=250x250

It raises

Traceback (most recent call last):
  File "download.py", line 2, in <module>
    from image_grabber import image_downloader
  File "/Users/metebyte/Documents/GitHub/py-image-dataset-generator/image_grabber/image_downloader.py", line 34
    def download_images(self, keyword: str) -> NoReturn:
                                     ^
SyntaxError: invalid syntax

Also got some errors while installing pip required dependencies which was chromedriver so manually installed it.

ghost avatar Mar 26 '19 20:03 ghost

make sure you have scipy and scikit-image installed

pip install scipy pip install scikit-image

and make sure you are in python 3.

python3.7 augmentation.py -folder=my_folder_path -limit=1000

alexlaurence avatar May 04 '19 14:05 alexlaurence