Python Forum
tried to setup private pypi, but can not upload
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tried to setup private pypi, but can not upload
#1
Hi, I have earlier succeeded generating package and upload to pypi.org but sidelined by the fact that pypi.org appears to be requiring twine to upload. Therefore I tweaked the procedure by using twine.

Now as a second step, I setup private pypi repository on port 8080 and ran into similar problem as before only that twine does not work:

Here is the code snipped when I attempt to upload using twine, can someone tell me what is wrong?

[root@dev-learn-rhel7 linode_example]# twine upload --repository-url https://10.0.0.102:8080/ dist/*
Enter your username: guyen
Enter your password:
Uploading distributions to https://10.0.0.102:8080/
Uploading linode_example-0.1-py2-none-any.whl
0%| | 0.00/3.71k [00:00<?, ?B/s]
Traceback (most recent call last):
File "/usr/bin/twine", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/twine/__main__.py", line 28, in main
return dispatch(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/twine/cli.py", line 77, in dispatch
return main(args.args)
File "/usr/lib/python2.7/site-packages/twine/commands/upload.py", line 127, in main
return upload(upload_settings, args.dists)
File "/usr/lib/python2.7/site-packages/twine/commands/upload.py", line 88, in upload
resp = repository.upload(package)
File "/usr/lib/python2.7/site-packages/twine/repository.py", line 163, in upload
resp = self._upload(package)
File "/usr/lib/python2.7/site-packages/twine/repository.py", line 155, in _upload
headers={'Content-Type': monitor.content_type},
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='10.0.0.102', port=8080): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:765)'),))
[root@dev-learn-rhel7 linode_example]#
Reply


Messages In This Thread
tried to setup private pypi, but can not upload - by ggpython000 - Feb-16-2019, 02:21 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020