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
[pete@dakota ~]$ pip install tpot
Collecting tpot
Downloading TPOT-0.1.2.tar.gz (165kB)
100% |████████████████████████████████| 167kB 811kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/c3/bhnfltk57zb_fs68gy3mcr300000gn/T/pip-build-be0XTk/tpot/setup.py", line 18, in <module>
package_version = calculate_version()
File "/private/var/folders/c3/bhnfltk57zb_fs68gy3mcr300000gn/T/pip-build-be0XTk/tpot/setup.py", line 13, in calculate_version
version = next(filter(lambda x: '__version__' in x, initpy)).split('\'')[1]
TypeError: list object is not an iterator
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/c3/bhnfltk57zb_fs68gy3mcr300000gn/T/pip-build-be0XTk/tpot
Probably because Python 3 treats many lists as iterators by default and Python 2 doesn't.
The text was updated successfully, but these errors were encountered:
Hm, I don't quite understand!? As far as I know, lists are iteratable in both Python 2 and 3. The only difference I could think if is range where range in Python 3 is like xrange in Python 2. In contrast to Python 2's range, the Python 3 range doesn't create a list but is rather like a generator ...
Or that next in Python 2 is a method rather than a function such as in Python 3. Anyway, seems that you already fixed that :).
Probably because Python 3 treats many lists as iterators by default and Python 2 doesn't.
The text was updated successfully, but these errors were encountered: