Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to download cctexture #1028

Closed
WHHHHY opened this issue Dec 13, 2023 · 5 comments
Closed

Fail to download cctexture #1028

WHHHHY opened this issue Dec 13, 2023 · 5 comments
Labels
first answer provided question Question, not yet a bug ;)

Comments

@WHHHHY
Copy link

WHHHHY commented Dec 13, 2023

Describe the issue

When I download cctextures with:
blenderproc download cc_textures ./backgrounds
it goes wrong
1702459622913

Minimal code example

No response

Files required to run the code

download_cc_textures.py

Expected behavior

Fail to download cctextures

BlenderProc version

new

@WHHHHY WHHHHY added the question Question, not yet a bug ;) label Dec 13, 2023
@cornerfarmer
Copy link
Member

Hey @WHHHHY

I cannot reproduce your error. Can you please share the full output of the command? Are you sure you can reach https://ambientcg.com/ in your network?

@WHHHHY
Copy link
Author

WHHHHY commented Dec 13, 2023

I can reach https://ambientcg.com/ .
And the full output of the command like this:
Traceback (most recent call last):
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connection.py", line 158, in _new_conn
conn = connection.create_connection(
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connectionpool.py", line 597, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connection.py", line 162, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f479310bac0>, 'Connection to ambientcg.com timed out. (connect timeout=30)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/connectionpool.py", line 637, in urlopen
retries = retries.increment(method, url, error=e, _pool=self,
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ambientcg.com', port=443): Max retries exceeded with url: /api/v2/full_json?include=downloadData&limit=100&offset=0&type=material (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f479310bac0>, 'Connection to ambientcg.com timed out. (connect timeout=30)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hongyang/.conda/envs/MKLinemod/bin/blenderproc", line 8, in
sys.exit(cli())
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/blenderproc/command_line.py", line 251, in cli
current_cli()
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/blenderproc/scripts/download_cc_textures.py", line 37, in cli
request = requests.get(json_url, headers=headers, timeout=30)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/hongyang/.conda/envs/MKLinemod/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='ambientcg.com', port=443): Max retries exceeded with url: /api/v2/full_json?include=downloadData&limit=100&offset=0&type=material (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f479310bac0>, 'Connection to ambientcg.com timed out. (connect timeout=30)'))

@WHHHHY WHHHHY closed this as completed Jan 21, 2024
@WHHHHY
Copy link
Author

WHHHHY commented Jan 21, 2024

Thx a lot,I have solve this problem.

@liuchangji
Copy link

Thx a lot,I have solve this problem.

Could you please share how you solve this problem. I met the same.

@toannguyen1904
Copy link

Hey, can you provide the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

4 participants