I had the same error as twine upload TypeError and checked my twine version to find out it's 1.10.
$ twine --version
twine version 1.10.0 (pkginfo: 1.2.1, requests: 2.18.4, setuptools:
39.2.0, requests-toolbelt: 0.8.0, tqdm: 4.19.5)
However, with pip list I find that twine is version 1.11.
$ pip list
...
twine 1.11.0
...
I tried:
$ sudo apt-get install --only-upgrade twine
(see here)
and found that twine is already being the latest release (1.10.0-1) and could not upgrade to 1.11. twine is located here:
$ which twine
/usr/bin/twine
How can I upgrade twine?