Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twine upload TypeError: expected string or bytes-like object

Tags:

python

twine

Has anybody got an error like this when you try to upload your package ?

   $ twine upload dist/*
   Uploading distributions to https://upload.pypi.org/legacy/
   Enter your username: MyUsername
   Enter your password: ********
   TypeError: expected string or bytes-like object

Edit: Got the same error again but this time to fix it I upgraded twine and it started working again.

like image 953
Bruno Lopes Avatar asked Apr 12 '18 22:04

Bruno Lopes


1 Answers

Updating twine solved the problem for me. For this, execute the following command before doing twine upload dist/*:

python3 -m pip install --user --upgrade twine

like image 71
whiletrue Avatar answered Sep 27 '22 22:09

whiletrue