dpl: PyPI deployments not working when "special" chars in password

It seems that some characters (I observed at least $ to cause this) in the PyPI password seem to break things, preventing deployments from working.

The error message when using such a password:

Uploading distributions to https://pypi.python.org/pypi
Uploading hydrachain-0.1.4-py2.py3-none-any.whl
HTTPError: 401 Client Error: You must be identified to edit package information for url: https://pypi.python.org/pypi

Plaintext or encrypted made no difference.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 5
  • Comments: 46 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Running into this issue on Travis CI. Is the general consensus that we can only have alphanumeric characters in passwords used to deploy to PyPI? That feels a lot less safe IMHO, but maybe we could have the documentation say that at least.

I just ran into this issue as well (my password contained a $). I tried encrypting the password using single-quotes in bash, but that didn’t solve the issue. I changed the password to exclude special characters and that worked.

We just lost a number of hours to this problem as well. I reject the idea that it’s the same problem mentioned here: https://docs.travis-ci.com/user/encryption-keys#Note-on-escaping-certain-symbols That note is about the need to escape characters if you use them in a shell command line.

In our case, we were typing the characters into stdin, where there is no need to escape.

Running into this error as well:

https://travis-ci.org/danriti/python-traceview/jobs/103205722#L528

The strange thing is that this works when I deploy to the “test” pypi server (https://testpypi.python.org/pypi):

https://travis-ci.org/danriti/python-traceview/jobs/103205213#L514

But for some reason I can’t get this to work against production PyPI 😢