-
-
Notifications
You must be signed in to change notification settings - Fork 221
Building from Source (system-wide) #62
Comments
@tukusejssirs Yup, you missed an installation step,
If you are building the current build
The documentation is quite out of date, (its not your fault, i had exams for a month, now I am free) |
@srevinsaju, I thought that Anyway, the After running Running guiscrcpy as a python module
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "guiscrcpy/__main__.py", line 22, in <module>
from guiscrcpy.launcher import bootstrap
File "/usr/local/lib/python3.6/site-packages/guiscrcpy-3.0.post25.dev0-py3.6.egg/guiscrcpy/launcher.py", line 34, in <module>
from PyQt5.QtWidgets import QMainWindow, QApplication
ModuleNotFoundError: No module named 'PyQt5.sip' I have tried to install |
Seems like you haven't followed the right path to install the packages: The installation for guiscrcpy is short
The problem is the conflicting
items you have installed, python3-qt5 is not the correct Qt we want here, |
And also the right way to execute is
or
|
After doing a quick search, I found the source of your problem @tukusejssirs The current version is 5.14, and sip came in only later.
and then finally
The official python version guiscrcpy is looking forward is python 3.8, but in the OP you have mentioned python 3.6 If you are looking foraward in methods to make a RPM for guiscrcpy, let me know, so that I can target the methods to help you out in that case, for basic use
should do everything for you If you are looking for development builds
And, btw, never use sudo with a pip, it is likely to mess up your system If you are a consumer / normal user, you could download the AppImage after installing python3.8, this is the link to the AppImage https://github.com/srevinsaju/guiscrcpy/suites/465401706/artifacts/1971949 |
and I would be happy to help you, to know why
failed on your system |
I want to build
Yes, I use
Here you go:
|
Okay, I have install Python 3.8.1 from source using this guide. Then I have cleaned the repo and run
|
@tukusejssirs can you send me your Does
work for you?, I mean with the |
Here you go: Memory: 7518MiB / 11659MiB' | column -ts:
OS CentOS Linux release 8.1.1911 (Core) x86_64
Host 688598G ThinkPad Edge E531
Kernel 4.18.0-168.el8.x86_64
Packages 2252 (rpm)
Shell bash 4.4.19
Resolution 1366x768
DE GNOME
WM Mutter
WM Theme Adwaita
Theme Adwaita-dark [GTK2/3]
Icons Adwaita [GTK2/3]
Terminal gnome-terminal
CPU Intel i5-3230M (4) @ 3.200GHz
GPU Intel 3rd Gen Core processor Graphics Controller Of course, the $ python3 -m pip install guiscrcpy --user
Requirement already satisfied: guiscrcpy in /usr/local/lib/python3.6/site-packages/guiscrcpy-3.0.post25.dev0-py3.6.egg
Requirement already satisfied: PyQt5==5.14.1 in /usr/local/lib/python3.6/site-packages/PyQt5-5.14.1-py3.6-linux-x86_64.egg (from guiscrcpy)
Requirement already satisfied: psutil in /usr/local/lib64/python3.6/site-packages (from guiscrcpy)
Requirement already satisfied: pynput in /usr/local/lib/python3.6/site-packages (from guiscrcpy)
Requirement already satisfied: gitpython in /usr/local/lib/python3.6/site-packages (from guiscrcpy)
Requirement already satisfied: PyQt5-sip<13,>=12.7 in /usr/local/lib64/python3.6/site-packages (from PyQt5==5.14.1->guiscrcpy)
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from pynput->guiscrcpy)
Requirement already satisfied: python-xlib>=0.17; "linux" in sys_platform in /usr/local/lib/python3.6/site-packages (from pynput->guiscrcpy)
Requirement already satisfied: gitdb2>=3 in /usr/local/lib/python3.6/site-packages (from gitpython->guiscrcpy)
Requirement already satisfied: smmap2>=2.0.0 in /usr/local/lib/python3.6/site-packages (from gitdb2>=3->gitpython->guiscrcpy) |
@tukusejssirs are you on IRC/Discord, where I can help you out realtime? You have to remove the system packages from /usr/local/* etc
and then check
If those packages still lies hanging without being uninstalled
Replace guiscrcpy with the rest of packages |
Okay, I’ve create a Discord account, https://discord.gg/HnxvGr.
I have removed them, now waiting for |
Other wise we will fall back to the same error as previous |
@srevinsaju, FYI, I fixed the issue with the Python libraries with discussed at Discord, using TEST_PYTHONPATH=$(grep -c '/opt/lib/python3.8/site-packages' <<< "$PYTHONPATH")
if [ -e /opt/lib/python3.8/site-packages ]; then
if [ "$TEST_PYTHONPATH" = "0" ]; then
if [ "$PYTHONPATH" ]; then
export PYTHONPATH="$PYTHONPATH:/opt/lib/python3.8/site-packages"
else
export PYTHONPATH='/opt/lib/python3.8/site-packages'
fi
fi
fi |
ModuleNotFoundError
on CentOS 8
@tukusejssirs Please review Wiki. I have updated it |
This is a issue for CentOS, the title has been modified to help future users
I like your project very much! But I could not run it.
What I have done
scrcpy
from source. It runs successfully.python3 guiscrcpy
, it fails:Anyway, how could I build it from source? Could you give me the instructions? 😃
The text was updated successfully, but these errors were encountered: