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

cannot import name 'DEFAULT_WEBSOCKET_TIMEOUT' #3076

Closed
viponedream opened this issue Aug 14, 2023 · 1 comment · Fixed by #3077
Closed

cannot import name 'DEFAULT_WEBSOCKET_TIMEOUT' #3076

viponedream opened this issue Aug 14, 2023 · 1 comment · Fixed by #3077

Comments

@viponedream
Copy link

ImportError: cannot import name 'DEFAULT_WEBSOCKET_TIMEOUT' from 'web3.providers.websocket' (C:\Python310\lib\site-packages\web3\providers\websocket_init_.py)

any one know what happened?

@fselmo fselmo mentioned this issue Aug 14, 2023
1 task
@fselmo
Copy link
Collaborator

fselmo commented Aug 14, 2023

Hey @viponedream, thanks for the issue. There was only one file named websocket.py where these were exposed and this has since turned into a module / directory. We need to re-expose them. It should be addressed in PR #3077 and likely released in the next version of web3.py. Currently, the same constant is exposed via from web3.websocket.websocket import DEFAULT_WEBSOCKET_TIMEOUT.

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

Successfully merging a pull request may close this issue.

2 participants