3DS.py
3DS.py copied to clipboard
_socket import error
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 ?
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