modbus-simulator icon indicating copy to clipboard operation
modbus-simulator copied to clipboard

How did you install a dependency KIVY == 1.10.1?

Open ZergOfSwarm opened this issue 3 years ago • 4 comments

I have Debian 11 and cant to install a dependency KIVY == 1.10.1! Could you tell me how do you do it?

ZergOfSwarm avatar Jan 13 '22 10:01 ZergOfSwarm

The project is very old and probably requires an update. I believe there are some changes in the latest Kivy which breaks things.

dhoomakethu avatar Jan 13 '22 11:01 dhoomakethu

I tried to install python2/python3 environment... But all times get some errors. Probably I do something wrong! :(

ZergOfSwarm avatar Jan 13 '22 11:01 ZergOfSwarm

  • I have tried with pipenv with different versionss of python to install modbus-simulator with no success. Had installation errors with kivy, and couple of version conflicts with pip packages. Below instruction may help for workaround:

    • system: Ubuntu 20.04

    • pip3 version on host system: 22.1.2

    • install virtualenv and activate(check for more kivy installation)

      pip3 install virtualenv==20.0.23 virtualenv -p /usr/bin/python2.7 modbus-sim . modbus-sim/bin/activate

    • install pip requirements

      pip install -r requirements

    • requirements

      Click==7.0 Cython==0.29.2 docutils==0.13.1 Kivy==1.10.1 Kivy-Garden==0.1.4 pygame==1.9.4 pyglet==1.2.4 Pygments==2.1.3 pymodbus==2.1.0 pyserial==3.4 requests==2.12.4 six==1.11.0

modisnuqa avatar Jun 03 '22 14:06 modisnuqa

The dependencies are very old, the project has not been updated with the latest package upgrades and upgraded kivy version. You can install cython first and try installing the other requirements if you are still using python2.7.

dhoomakethu avatar Jun 04 '22 05:06 dhoomakethu