Help installing/ running Pymodbus on Python 3.4.2@Windows -> Or simple alternatives

1,088 views
Skip to first unread message

Peter Kallus

unread,
Jan 13, 2015, 6:06:09 PM1/13/15
to pymo...@googlegroups.com
Dear Pymodbus friends.

I do have already a working python application written und working with Python 3.4  under Windows. ( distributed as single exe Using CX freeze)
This application has already more than 2000 lines of code, so   back porting to 2.7 is not really an option.
Now it happens that I need to add some very basic Modbus functionality.
As Modbus-TK  (which seems to be simpler) does not support Python 3, it looked for me like the python 3 branch is my favourite choice..

My target device is a one single TCP Modbus server, with about  50 Modbus Subdevices (50 Modbus Unit ID`s)
Speed is not Critical in this application, so I feel like Async  is not needed here.. ( so  I don't need twisted and Pyserial)

I have spend the last 5 nights  playing Try+Error  to install  and bring to operation Pymodbus.

The bashwork Python3 branch installation  using setup.py is throwing about 20 failures,  which can seen in the Patch  


The Moltob fork python 3 branch seems to install  pymodbus without  errors, and I end up wit the  egg file inside C:\Python342\Lib\site-packages
Prior the setup I have  removed  Twisted and pyserial from setup.py

Now such simple request like:

from pymodbus.client.sync import ModbusTcpClient as MClient

 throws error  as due to missing pyserial 
This makes no sense to me, why the ModbusTcpClient needs PYserial..

Anyway -> Again install with Pyserial, but then I have again different failures...  I could post each of those failures, butI feel like I  am doing something significantly wrong during the installation, or I do use the wrong imports.

My Target just to read from one single IP address values for 50 Modbus id´s.

I would appreciate any help  how this could be achieved..
Also Alternatives ( using external command line tool  via subprocess )  could be an option... Recommendations are welcome.

Thank You  + best regards

Peter

Reply all
Reply to author
Forward
0 new messages