srevinsaju / guiscrcpy

A full fledged GUI integration for the award winning open-source android screen mirroring system -- scrcpy located on https://github.com/genymobile/scrcpy/ by @rom1v
https://guiscrcpy.srev.in
GNU General Public License v3.0
2.84k stars 211 forks source link

MacOS support for guiscrcpy #338

Open yuanweize opened 1 year ago

yuanweize commented 1 year ago

Describe the bug MacOS can not open guiscrcpy

To Reproduce Steps to reproduce the behavior:

  1. install requirements by command pip install pyqt5 PySide6
  2. install guiscrcpy by command pip install guiscrcpy
  3. and run command guiscrcpy

Expected behavior Use guiscrcpy command in terminal to open guiscrcpy

Screenshots image image pip list guiscrcpy image

Desktop (please complete the following information):

Additional context Python 3.10.7 pip 22.3 NO requirements.txt and setup.py in main branch, please add it with correct requirements, thanks

srevinsaju commented 1 year ago

We use pyproject.toml. Requirements.txt is not a "requirement" anymore for python project. Please use poetry to use it.

yuanweize commented 1 year ago

We use pyproject.toml. Requirements.txt is not a "requirement" anymore for python project. Please use poetry to use it.

Thanks for your reply. I install poetry run poetry install, poetry run python launcher.py but not work. I also think these command maybe not correct. python version 3.8.15 I make a requirements.txt and install it. cat requirements.txt psutil ~= 5.8.0 pynput ~= 1.6.8 colorama ~= 0.4.4 click ~= 8.0.1 QtPy ~= 1.9.0 PyQt5 ~= 5.15.4 PySide2 ~= 5.15.2 CairoSVG ~=2.5.2 coloredlogs ~= 15.0.1 black ~= 22.3.0

After I use command python -m pip install guiscrcpy to install guiscrcpy. And run guscrcpy but have following error output. image

srevinsaju commented 1 year ago

The correct command should be

poetry install
poetry run guiscrcpy

From your error log, it seems to be conflicting with the versions of PyQt on your host. You don't seem to be using a virtual environment, which is why you are running into this issue.

yuanweize commented 1 year ago

The correct command should be

poetry install
poetry run guiscrcpy

From your error log, it seems to be conflicting with the versions of PyQt on your host. You don't seem to be using a virtual environment, which is why you are running into this issue.

I usepoetry install and poetry run guiscrcpy and also tried first withpoetry shell and run the command but not work. sad....

without poetry shell image

with poetry shell image

srevinsaju commented 1 year ago

After poetry shell, try pip install PyQt5

mtt0 commented 1 year ago

Install pyside2 can fix this.

pip install pyside2

https://stackoverflow.com/a/65110892

manybot commented 1 year ago

I've tried the above, does not work. could you make a guide on how to install on m1 latest os. please