IronLanguages / ironpython2

Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).

Home Page:http://ironpython.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import socket does not work in Core but in full framework

AndersMalmgren opened this issue · comments

It seems this is a regression when going from Full framework to netstandard and DynamicLanguage runtime etc.

import socket

Works in version 2.7.5 (full framework version only)

In any later version for ,NET5 / Core3.1 I get

No module named socket

Using same pylib folder in both cases

Not really clear what version you're using, but the built-in socket module got renamed to _socket in 2.7.8 to more closely mimic what CPython does. You need a matching version of the standard library which includes a socket.py file.

Thansk that did the trick!