tableau / rest-api-samples

Samples for the Tableau REST API
MIT License
394 stars 273 forks source link

Unable to import 'version' package 'izip_longest' Python3+ #46

Closed mxcaud closed 2 years ago

mxcaud commented 5 years ago

When installing one of the dependency packages 'version' from the user sample 'move_workbook_server.py'. Receive the following error:

  Downloading https://files.pythonhosted.org/packages/fd/b6/fa3b2c859d4d8817a106e4272029d78a2afbca0a27139997a4e5515bbf60/version-0.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\J19277\AppData\Local\Temp\pip-install-vhh6yntg\version\setup.py", line 4, in <module>
        from version import __version__
      File "C:\Users\J19277\AppData\Local\Temp\pip-install-vhh6yntg\version\version.py", line 2, in <module>
        from itertools import izip_longest
    ImportError: cannot import name 'izip_longest' from 'itertools' (unknown location)

Developer has pushed a commit below to 0.1.2 however this isn't deployed on PyPI https://github.com/keleshev/version/commit/d4b32b62f3641cf907e8e44e1d421fdac88f3413

jacalata commented 2 years ago

This isn't meant to import a package named version, but to refer to the file version.py in that directory, so you can easily specify which server API version you are running against.