PyPi上传因TypeError而失败

时间:2016-05-20 13:36:17

标签: python setuptools pypi

我正在尝试使用此命令将新包上传到PyPi:

$ python3 setup.py sdist upload

这个过程似乎一直持续到running upload位,此时我得到了这个例外:

Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    "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

我确认Topic :: Scientific/Engineering :: GIS是一个有效的主题。

0 个答案:

没有答案