xiongyihui / pqcom

A simple and handy serial tool for Linux/Windows/Mac - 简单的跨平台串口工具
MIT License
37 stars 22 forks source link

ModuleNotFoundError: No module named 'Queue' #8

Open diogob003 opened 3 months ago

diogob003 commented 3 months ago
→ pqcom python3 pqcom.py
Traceback (most recent call last):
  File "~/Library/Python/3.12/lib/python/site-packages/pqcom/./pqcom.py", line 41, in <module>
    import pqcom_serial
  File "~/Library/Python/3.12/lib/python/site-packages/pqcom/pqcom_serial.py", line 5, in <module>
    import Queue
ModuleNotFoundError: No module named 'Queue'

https://stackoverflow.com/questions/33432426/importerror-no-module-named-queue

diogob003 commented 3 months ago

README.md instructions are contradictory

The program only worked on mac after manually download and install python 3.11 and pqcom-0.7.1-py3-none-any.whl

sudo port install python311 py311-pip py311-pyqt5
cd ~/Downloads
python3.11 -m pip install ./pqcom-0.7.1-py3-none-any.whl pyserial pyqt5
python3.11 ~/Library/Python/3.11/bin/pqcom