vbe0201 / 3DS.py

Python on your Nintendo 3DS
Apache License 2.0
134 stars 7 forks source link

_socket import error #12

Open ygboucherk opened 4 years ago

ygboucherk commented 4 years ago

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 commented 3 years ago

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