Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Registering to PyPi: basic auth failed

I can't figure out how to register my project. I can login in fine at https://testpypi.python.org/pypi but using the same credentials at my .pypirc doesn't work.

.pypirc

[distutils]
index-servers=
    test

[test]
repository = https://testpypi.python.org/pypi
username = <username>
password = <password>

<username> and <password> are replaced with the credentials I use to login manually at testpypi.

Then I try to register my project:

python setup.py register -r test

Output

running register
running egg_info
writing websocket_server.egg-info/PKG-INFO
writing top-level names to websocket_server.egg-info/top_level.txt
writing dependency_links to websocket_server.egg-info/dependency_links.txt
reading manifest file 'websocket_server.egg-info/SOURCES.txt'
writing manifest file 'websocket_server.egg-info/SOURCES.txt'
running check
Registering myproject to https://testpypi.python.org/pypi
Server response (401): basic auth failed

Any idea what is going on? I looked everywhere but there seems to be very little information on how to troubleshoot such issues.

like image 631
Pithikos Avatar asked Feb 23 '26 16:02

Pithikos


1 Answers

You need to complete the registration by clicking the link in your email.

like image 60
Ivan Teoh Avatar answered Feb 25 '26 10:02

Ivan Teoh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!