Bottom Page

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]#
Quote
#2
OK, it turns out i did not start the pypiserver, now i started with port 8080. and if i try upload again, this is the message I am getting:


5 49.908540667 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
7 49.909071181 10.0.0.102 -> 10.0.0.113 HTTP 552 Continuation or non-HTTP traffic
13 49.930564149 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
15 49.931010461 10.0.0.102 -> 10.0.0.113 HTTP 398 Continuation or non-HTTP traffic
22 49.952408726 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
24 49.952837738 10.0.0.102 -> 10.0.0.113 HTTP 552 Continuation or non-HTTP traffic
31 49.974014297 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
33 49.974422808 10.0.0.102 -> 10.0.0.113 HTTP 552 Continuation or non-HTTP traffic
40 49.994491938 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
42 49.994870348 10.0.0.102 -> 10.0.0.113 HTTP 374 Continuation or non-HTTP traffic
48 50.013409938 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
50 50.013810549 10.0.0.102 -> 10.0.0.113 HTTP 343 Continuation or non-HTTP traffic
57 50.032905154 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
59 50.033264763 10.0.0.102 -> 10.0.0.113 HTTP 427 Continuation or non-HTTP traffic
66 50.052309067 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
68 50.052652076 10.0.0.102 -> 10.0.0.113 HTTP 339 Continuation or non-HTTP traffic
75 50.071786481 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
78 50.083055679 10.0.0.102 -> 10.0.0.113 HTTP 394 Continuation or non-HTTP traffic
85 50.105524473 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
87 50.116077152 10.0.0.102 -> 10.0.0.113 HTTP 421 Continuation or non-HTTP traffic
94 50.137626921 10.0.0.113 -> 10.0.0.102 HTTP 293 Continuation or non-HTTP traffic
96 50.138099634 10.0.0.102 -> 10.0.0.113 HTTP 369 Continuation or non-HTTP traffic
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)