Visitar URL original
Failed to import socketserver in Python 2.7 · Issue #83 · AdvancedClimateSystems/uModbus · GitHub
Skip to content

Failed to import socketserver in Python 2.7 #83

Open

Description

@iliyas18

Hello,
I'm using python 2.7 in ubuntu and I'm creating a modbus TCP server while running the code for modbus TCP. I'm getting an error i.e

File "modbus.py", line 4, in <module>
    from socketserver import TCPServer
ImportError: No module named socketserver

Activity

  1. OrangeTux commented on Jan 29, 2020

    @OrangeTux
    Collaborator

    Hello, first of all I highly recommend to update to a more recent version of Python because Python 2.7 has reached EOL. That means that this version is not supported anymore by the Python Foundation and it won't receive any updates anymore.

    Second socketserver doesn't exists in Python 2.7. In Python 2.7 it is called SocketServer.

  2. changed the title [-]Libraries error[/-] [+]Failed to import socketserver in Python 2.7[/+] on Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions