3DS.py icon indicating copy to clipboard operation
3DS.py copied to clipboard

_socket import error

Open ygboucherk opened this issue 5 years ago • 1 comments

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 ?

ygboucherk avatar Aug 02 '20 11:08 ygboucherk

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

vbe0201 avatar Oct 23 '20 15:10 vbe0201