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

_socket import error #12

Open
ygboucherk opened this issue Aug 2, 2020 · 1 comment
Open

_socket import error #12

ygboucherk opened this issue Aug 2, 2020 · 1 comment

Comments

@ygboucherk
Copy link

When I run a script using network, I've this error message :
File "/3ds/3ds.py/lib/python3.6/socket.py", line 49, in <module> import _socket ModuleNotFoundError: No module named '_socket'`

Is it normal ?

@vbe0201
Copy link
Owner

vbe0201 commented Oct 23, 2020

If you're using the currently only release build of the master branch, yes. At this time, socket support was not implemented for the 3DS. The rewrite branch has functional socket and SSL support.

You can either build it yourself or join the 3DS.py Discord server (invite link in README) where we have some nightly builds that you could use.

For SSL networking, you're going to need a monkey patch on the SSL module due to a currently unresolved bug.

# Paste the following code before anything else with sockets is done.

import ssl

ssl._create_default_https_context = ssl._create_unverified_context

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

2 participants