Hi @dusty_nv, just quick question regarding uploading to pip
wheel server – I’m not sure if end users are also allowed to upload wheels to pip
repository? Currently I’m facing some issues when trying to build the new wyoming-piper
container for Home Assistant
. It looks like it’s missing the PIP_UPLOAD_REPO
env which is set to localhost
as fallback:
12:16:26
12:16:26 + twine upload --verbose /opt/torch-2.3.0rc6-cp311-cp311-linux_aarch64.whl
12:16:27 Uploading distributions to http://localhost/jp6/cu124
12:16:28 INFO /opt/torch-2.3.0rc6-cp311-cp311-linux_aarch64.whl (200.6 MB)
12:16:28 INFO username set by command options
12:16:28 INFO password set by command options
12:16:28 INFO username: jp6
12:16:28 INFO password: <hidden>
12:16:28 Uploading torch-2.3.0rc6-cp311-cp311-linux_aarch64.whl
12:16:28 WARNING Retrying (Retry(total=9, connect=4, read=None, redirect=None,
12:16:28 status=None)) after connection broken by
12:16:28 'NewConnectionError('<urllib3.connection.HTTPConnection object at
12:16:28 0xffffb1f9a350>: Failed to establish a new connection: [Errno 111]
12:16:28 Connection refused')': /jp6/cu124
12:16:28 WARNING Retrying (Retry(total=8, connect=3, read=None, redirect=None,
12:16:28 status=None)) after connection broken by
12:16:28 'NewConnectionError('<urllib3.connection.HTTPConnection object at
12:16:28 0xffffb1f9add0>: Failed to establish a new connection: [Errno 111]
12:16:28 Connection refused')': /jp6/cu124
12:16:28 WARNING Retrying (Retry(total=7, connect=2, read=None, redirect=None,
12:16:28 status=None)) after connection broken by
12:16:28 'NewConnectionError('<urllib3.connection.HTTPConnection object at
12:16:28 0xffffb17b4950>: Failed to establish a new connection: [Errno 111]
12:16:28 Connection refused')': /jp6/cu124
12:16:28 WARNING Retrying (Retry(total=6, connect=1, read=None, redirect=None,
12:16:28 status=None)) after connection broken by
12:16:28 'NewConnectionError('<urllib3.connection.HTTPConnection object at
12:16:28 0xffffb17b4e10>: Failed to establish a new connection: [Errno 111]
12:16:28 Connection refused')': /jp6/cu124
12:16:28 WARNING Retrying (Retry(total=5, connect=0, read=None, redirect=None,
12:16:28 status=None)) after connection broken by
12:16:28 'NewConnectionError('<urllib3.connection.HTTPConnection object at
12:16:28 0xffffb17b5cd0>: Failed to establish a new connection: [Errno 111]
12:16:28 Connection refused')': /jp6/cu124
12:16:28 0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/210.4 MB • --:-- • ?
12:16:28 Traceback (most recent call last):
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 198, in _new_conn
12:16:28 sock = connection.create_connection(
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/util/connection.py", line 85, in create_connection
12:16:28 raise err
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/util/connection.py", line 73, in create_connection
12:16:28 sock.connect(sa)
12:16:28 ConnectionRefusedError: [Errno 111] Connection refused
12:16:28
12:16:28 The above exception was the direct cause of the following exception:
12:16:28
12:16:28 Traceback (most recent call last):
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 793, in urlopen
12:16:28 response = self._make_request(
12:16:28 ^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 496, in _make_request
12:16:28 conn.request(
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 400, in request
12:16:28 self.endheaders()
12:16:28 File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
12:16:28 self._send_output(message_body, encode_chunked=encode_chunked)
12:16:28 File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
12:16:28 self.send(msg)
12:16:28 File "/usr/lib/python3.11/http/client.py", line 975, in send
12:16:28 self.connect()
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 238, in connect
12:16:28 self.sock = self._new_conn()
12:16:28 ^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 213, in _new_conn
12:16:28 raise NewConnectionError(
12:16:28 urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xffffb17c0890>: Failed to establish a new connection: [Errno 111] Connection refused
12:16:28
12:16:28 The above exception was the direct cause of the following exception:
12:16:28
12:16:28 Traceback (most recent call last):
12:16:28 File "/usr/local/lib/python3.11/dist-packages/requests/adapters.py", line 486, in send
12:16:28 resp = conn.urlopen(
12:16:28 ^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 877, in urlopen
12:16:28 return self.urlopen(
12:16:28 ^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 877, in urlopen
12:16:28 return self.urlopen(
12:16:28 ^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 877, in urlopen
12:16:28 return self.urlopen(
12:16:28 ^^^^^^^^^^^^^
12:16:28 [Previous line repeated 2 more times]
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 847, in urlopen
12:16:28 retries = retries.increment(
12:16:28 ^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/urllib3/util/retry.py", line 515, in increment
12:16:28 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /jp6/cu124 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffffb17c0890>: Failed to establish a new connection: [Errno 111] Connection refused'))
12:16:28
12:16:28 During handling of the above exception, another exception occurred:
12:16:28
12:16:28 Traceback (most recent call last):
12:16:28 File "/usr/local/bin/twine", line 8, in <module>
12:16:28 sys.exit(main())
12:16:28 ^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/__main__.py", line 33, in main
12:16:28 error = cli.dispatch(sys.argv[1:])
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/cli.py", line 123, in dispatch
12:16:28 return main(args.args)
12:16:28 ^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/commands/upload.py", line 225, in main
12:16:28 return upload(upload_settings, parsed_args.dists)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/commands/upload.py", line 169, in upload
12:16:28 resp = repository.upload(package)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/repository.py", line 186, in upload
12:16:28 resp = self._upload(package)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/twine/repository.py", line 172, in _upload
12:16:28 resp = self.session.post(
12:16:28 ^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/requests/sessions.py", line 637, in post
12:16:28 return self.request("POST", url, data=data, json=json, **kwargs)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/requests/sessions.py", line 589, in request
12:16:28 resp = self.send(prep, **send_kwargs)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/requests/sessions.py", line 703, in send
12:16:28 r = adapter.send(request, **kwargs)
12:16:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:16:28 File "/usr/local/lib/python3.11/dist-packages/requests/adapters.py", line 519, in send
12:16:28 raise ConnectionError(e, request=request)
12:16:28 requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /jp6/cu124 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffffb17c0890>: Failed to establish a new connection: [Errno 111] Connection refused'))
12:16:28 + echo 'failed to upload wheel to http://localhost/jp6/cu124'
12:16:28 failed to upload wheel to http://localhost/jp6/cu124
12:16:51 Removing intermediate container 906a4f87e24c
12:16:51 ---> c3782155b41b
12:16:51 Successfully built c3782155b41b
12:16:51 Successfully tagged ms1design/wyoming-piper:r36.2.0-cu124-pytorch
12:16:51 DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
12:16:51 BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
12:16:51 environment-variable.
12:16:51
12:16:51 Sending build context to Docker daemon 12.8kB
12:16:51 Step 1/7 : ARG BASE_IMAGE
12:16:51 Step 2/7 : ARG BUILD_IMAGE
12:16:51 Step 3/7 : FROM ${BUILD_IMAGE} as builder
12:16:51 invalid reference format: repository name must be lowercase
12:16:51 Traceback (most recent call last):
12:16:51 File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
12:16:51 return _run_code(code, main_globals, None,
12:16:51 File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
12:16:51 exec(code, run_globals)
12:16:51 File "/home/narandill/agent/work/temp/onedev-build-32-1125/workspace/jetson_containers/build.py", line 103, in <module>
12:16:51 build_container(args.name, args.packages, args.base, args.build_flags, args.simulate, args.skip_tests, args.test_only, args.push, args.no_github_api)
12:16:51 File "/home/narandill/agent/work/temp/onedev-build-32-1125/workspace/jetson_containers/container.py", line 143, in build_container
12:16:51 status = subprocess.run(cmd.replace(_NEWLINE_, ' '), executable='/bin/bash', shell=True, check=True)
12:16:51 File "/usr/lib/python3.10/subprocess.py", line 526, in run
12:16:51 raise CalledProcessError(retcode, process.args,
12:16:51 subprocess.CalledProcessError: Command 'DOCKER_BUILDKIT=0 docker build --network=host --tag ms1design/wyoming-piper:r36.2.0-cu124-openai-triton --file /home/narandill/agent/work/temp/onedev-build-32-1125/workspace/packages/openai-triton/Dockerfile --build-arg BASE_IMAGE=ms1design/wyoming-piper:r36.2.0-cu124-pytorch --build-arg BUILD_IMAGE="None" /home/narandill/agent/work/temp/onedev-build-32-1125/workspace/packages/openai-triton 2>&1 | tee /home/narandill/agent/work/temp/onedev-build-32-1125/workspace/logs/20240418_104152/build/ms1design_wyoming-piper_r36.2.0-cu124-openai-triton.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 1.