Re: [Distutils] PyPi upload fails with TypeError
Until then, try using twine (https://github.com/pypa/twine). You'll have to make your sdist with `python setup.py sdist` and then upload it with `twine upload dist/mypackage.sdist`. But twine will prompt you when it can't find a credential for you instead of proceeding onward nobly. On Fri, May 20, 2016 at 1:18 PM, Berker Peksağwrote: > On Fri, May 20, 2016 at 9:12 PM, Berker Peksağ > wrote: >> On Fri, May 20, 2016 at 9:00 PM, Luís de Sousa >> wrote: >>> >>> The TypeError is about the *last* line in the traceback: One of >>> `self.username' or 'self.password' is set to 'None'. >>> >>> >>> That being the case, how can I correct the bug? Must I upgrade setuptools? >>> Or some other package? >> >> Is there a .pypirc file in your $HOME directory? If there is one, can >> you compare its content with the example at >> https://docs.python.org/3/distutils/packageindex.html#pypirc ? > > There is an open issue about this on bugs.python.org: > http://bugs.python.org/issue18454 > > I will try to fix it at PyCon US sprints. > > --Berker > ___ > Distutils-SIG maillist - Distutils-SIG@python.org > https://mail.python.org/mailman/listinfo/distutils-sig ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PyPi upload fails with TypeError
On Fri, May 20, 2016 at 9:12 PM, Berker Peksağwrote: > On Fri, May 20, 2016 at 9:00 PM, Luís de Sousa > wrote: >> >> The TypeError is about the *last* line in the traceback: One of >> `self.username' or 'self.password' is set to 'None'. >> >> >> That being the case, how can I correct the bug? Must I upgrade setuptools? >> Or some other package? > > Is there a .pypirc file in your $HOME directory? If there is one, can > you compare its content with the example at > https://docs.python.org/3/distutils/packageindex.html#pypirc ? There is an open issue about this on bugs.python.org: http://bugs.python.org/issue18454 I will try to fix it at PyCon US sprints. --Berker ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PyPi upload fails with TypeError
On Fri, May 20, 2016 at 9:00 PM, Luís de Sousawrote: > > The TypeError is about the *last* line in the traceback: One of > `self.username' or 'self.password' is set to 'None'. > > > That being the case, how can I correct the bug? Must I upgrade setuptools? > Or some other package? Is there a .pypirc file in your $HOME directory? If there is one, can you compare its content with the example at https://docs.python.org/3/distutils/packageindex.html#pypirc ? --Berker ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PyPi upload fails with TypeError
The TypeError is about the *last* line in the traceback: One of `self.username' or 'self.password' is set to 'None'. That being the case, how can I correct the bug? Must I upgrade setuptools? Or some other package? Thank you, Luís___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PyPi upload fails with TypeError
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/20/2016 10:57 AM, Luís de Sousa via Distutils-SIG wrote: > File "/usr/lib/python3.4/distutils/command/upload.py", line 139, in > upload_file user_pass = (self.username + ":" + > self.password).encode('ascii') TypeError: Can't convert 'NoneType' > object to str implicitly > > I verified that Topic :: Scientific/Engineering :: GIS is a valid > topic. What else am I missing? The TypeError is about the *last* line in the traceback: One of `self.username' or 'self.password' is set to 'None'. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBAgAGBQJXPz6FAAoJEPKpaDSJE9HYV68P/jlp6buHOZeaGdEVcSiPV/V6 l1FCk56Wgu8/IOjIA/APLH5USMfABESt9YHKBzMENfRQpIbaMs0CmhdE5ONeJs3F LSOGEiY4i5QWNjOlw1oE5GaG9Hj31XuzmCMs39kIQ3C+gOXq/inGTIF4fsvGmK/l dMfVEWmbG0OJkcclrgrTAiJ79La0408ci+N62hsz4s3l+d0F9PUZXd6gpl6AOzMm ORr1IMsGHLfhyWFVfmWoJxyRUJVeGE+t3wY6CCOJEJEckbezOVXyxkBnkSxhVpwd fwffKpNTwFRXvggH4qPcDmmf4T6sAS/hOkBBw0WjcbNMRlFzCaU7Ehr2aw3+wxjU H8GAsn3Xh2H1T3c4qHUYWe7X78/mPN0Pri9Rykg9NVSJ9m1awq94tJgR7tH1om3U +4UvzzkyIKIr8a8YikqSjKnTrJWhqtnSJ+08D4zlBoA1R7lQMdD079wOnmtaLKYj ogYf9xG1jFpVWUeCOdh6qHlQikBHWFWRFSMootKg/tRd6qrsLsbaoaIlEGefPEtJ NgOQ1wMYWthzGglkiktGF7Fv6qHit0rYVSOOSu7gIxQbpkgOylaIwGDuvkArELk3 WD1AJ/F2gc409/IhrvJITP5rP+sdJVMtJswEqYvB6zxaUURvt+Qf4crzqPUCvrAp aKxqMdnFeKZ5jqKRrXge =Ov3n -END PGP SIGNATURE- ___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
[Distutils] PyPi upload fails with TypeError
Dear all, I am trying to upload a new package to PyPi with this command: $ python3 setup.py sdist upload The process seems to go on well until the running upload bit, at which point I get this exception: Traceback (most recent call last): File "setup.py", line 33, in "Topic :: Scientific/Engineering :: GIS", File "/usr/lib/python3.4/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.4/distutils/command/upload.py", line 65, in run self.upload_file(command, pyversion, filename) File "/usr/lib/python3.4/distutils/command/upload.py", line 139, in upload_file user_pass = (self.username + ":" + self.password).encode('ascii') TypeError: Can't convert 'NoneType' object to str implicitly I verified that Topic :: Scientific/Engineering :: GIS is a valid topic. What else am I missing? Thank you, Luís Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland.___ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig