SunitRaut / pyMultiSerial

A Python module for simultaneous communication with multiple serial ports, based on pyserial module
GNU General Public License v3.0
11 stars 3 forks source link

Error occuring during the installation of pyMultiSerial #7

Closed Zubbyzer closed 2 years ago

Zubbyzer commented 2 years ago

I have tried a lot of things trying to solve these errors but i keep getting them while trying to install pyMultiSerial. ERROR: Could not find a version that satisfies the requirement threading (from pymultiserial) (from versions: none) ERROR: No matching distribution found for threading

SunitRaut commented 2 years ago

The library threading is not available in Python 2, So it won't be installed with pip command. Please try installing the pyMultiSerial library again with pip3 command instead of pip. Kindly let us know if it works. Thanks.

Zubbyzer commented 2 years ago

I used the pip3 command, tried on 2 different pcs without the same setup and it didn't work on any. Tried to install through conda too, didn't work.Thx for trying to help

SunitRaut commented 2 years ago

We will exclude threading from the requirements list as it is an in-built module. We will publish a new release in 1-2 weeks.

SunitRaut commented 2 years ago

Hello Zubbyzer, As a workaround, you can download this python script and save it as pyMultiSerial.py: https://github.com/SunitRaut/pyMultiSerial/blob/main/src/pyMultiSerial/__init__.py

Then import it into your script using statement: from pyMultiSerial import pyMultiSerial as p.

Make sure to save both scripts in same folder.

With this you can start using this module immediately.

Zubbyzer commented 2 years ago

Thanks a lot, I'm gonna try this out

Le lun. 30 mai 2022 à 05:28, Sunit Raut @.***> a écrit :

Hello Zubbyzer, As a workaround, you can download this python script and save it as pyMultiSerial.py:

https://github.com/SunitRaut/pyMultiSerial/blob/main/src/pyMultiSerial/__init__.py

Then import it into your script using statement: from pyMultiSerial import pyMultiSerial as p.

With this you can start using this module immediately.

— Reply to this email directly, view it on GitHub https://github.com/SunitRaut/pyMultiSerial/issues/7#issuecomment-1140648871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZJHMUF2DZVMF7JCNVKOXNTVMQYXRANCNFSM5WVCYQPQ . You are receiving this because you authored the thread.Message ID: @.***>

Zubbyzer commented 2 years ago

I think I have succefully imported it into my script but I'm actually struggling on the comprehension on how I should write the script using pyMultiSerial, could you send me a exemple of a simple script reading the data coming from a serial port. Thanks again.

SunitRaut commented 2 years ago

Hi,

You can use this script as an example: https://github.com/SunitRaut/pyMultiSerial/blob/main/Examples/1.Reading_from_All_Ports_Simultaneously.py

rfrost-xyz commented 2 years ago

Hello Zubbyzer, As a workaround, you can download this python script and save it as pyMultiSerial.py: https://github.com/SunitRaut/pyMultiSerial/blob/main/src/pyMultiSerial/__init__.py

Then import it into your script using statement: from pyMultiSerial import pyMultiSerial as p.

Make sure to save both scripts in same folder.

With this you can start using this module immediately.

Results in error: ImportError: cannot import name 'pyMultiSerial' from 'pyMultiSerial' (./pyMultiSerial.py)

Using the following works: import pyMultiSerial as p

SunitRaut commented 2 years ago

This issue has now been solved in release 1.1.1. Please reinstall the module.