Closed Zubbyzer closed 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.
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
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.
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.
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: @.***>
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.
Hi,
You can use this script as an example: https://github.com/SunitRaut/pyMultiSerial/blob/main/Examples/1.Reading_from_All_Ports_Simultaneously.py
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
This issue has now been solved in release 1.1.1. Please reinstall the module.
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