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

ConnectionError: ('Connection aborted.', OSError(22, 'Invalid argument')) in image to 3D #23

Open
wastu01 opened this issue May 7, 2023 · 3 comments

Comments

@wastu01
Copy link

wastu01 commented May 7, 2023

using Python 3.11.2 in Visual Studio Code ( Mac M1 )

It show me error after running this code below

xm = load_model('transmitter', device=device)
model = load_model('image300M', device=device)
diffusion = diffusion_from_config(load_config('diffusion'))
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
File [/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:703](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:703), in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File [/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:386](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:386), in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    385 try:
--> 386     self._validate_conn(conn)
    387 except (SocketTimeout, BaseSSLError) as e:
    388     # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.

File [/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:1042](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/lib/python3.11/site-packages/urllib3/connectionpool.py:1042), in HTTPSConnectionPool._validate_conn(self, conn)
...
    549 except MaxRetryError as e:
    550     if isinstance(e.reason, ConnectTimeoutError):
    551         # TODO: Remove this in 3.0.0: see #2811

ConnectionError: ('Connection aborted.', OSError(22, 'Invalid argument'))
@escoolioinglesias
Copy link

@wastu01 were you ever able to successfully run it on M1?

@HrbustLSH
Copy link

were you ever able to successfully run it on M1?

@wastu01
Copy link
Author

wastu01 commented Oct 11, 2023

not working on May 7. maybe they already update and fixed after that day I using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants