Skip to content

What's the Python 3 status? #174

@timothywalsh

Description

@timothywalsh

Can someone in the know please give an overview of the status of pymodbus and Python 3?

I have managed to get pymodbus to work on python 2.7, however I have already developed the rest of my application using Python 3, and I'm not sure I want to go to the trouble to downgrade to 2.7 if there is another way around it.

I have installed pymodbus3 using pip3, however it doesn't work for me with Python 3.6. It only returns NoneType objects

When I try to install pymodbus for python3 using "sudo pip3 install pymodbus", I get the following error

Collecting pymodbus
  Using cached pymodbus-1.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-t1wyyv9y/pymodbus/setup.py", line 26, in <module>
        from pymodbus import __version__, __author__
      File "/tmp/pip-build-t1wyyv9y/pymodbus/pymodbus/__init__.py", line 37
        True, False = (1 == 1), (0 == 1)
           ^
    SyntaxError: can't assign to keyword
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-t1wyyv9y/pymodbus/

Which I have seen mentioned in other issues here.

So, where do I go from here?

--Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions