andyzg / gallery

Visual Portfolio Generator with no extra installation
http://andyzhang.net/gallery
MIT License
364 stars 282 forks source link

Trying to run this on Ubuntu. Python Noob! #5

Closed FoxyCoxy closed 5 years ago

FoxyCoxy commented 6 years ago

C:\Users\Foxy\AppData\Local\Programs\Python\Python36\python.exe C:/Users/Foxy/Downloads/Compressed/gallery-gh-pages/gallery-gh-pages/setup.command Traceback (most recent call last): File "C:/Users/Foxy/Downloads/Compressed/gallery-gh-pages/gallery-gh-pages/setup.command", line 145, in sys.exit(run()) File "C:/Users/Foxy/Downloads/Compressed/gallery-gh-pages/gallery-gh-pages/setup.command", line 54, in run 'Found {length} directories'.format(length=len(dirs)) TypeError: object of type 'filter' has no len()

FoxyCoxy commented 6 years ago

The error output is actually from Pycharm on Windows. I tried fixing something originally originally it said missing parentheses after ... I thing I didn’t try yet is running it with Python2.7

andyzg commented 6 years ago

Thanks for opening up an issue @FoxyCoxy !

This seems like it's caused by Python3, since filter returns an iterable rather than a list. Could you try running it with Python 2.7? It's likely that your system's default Python version is Python 3.

andyzg commented 5 years ago

This should be resolved by now. Closing.