Comments (17)
I get an error trying to run it from source too:
$ python3 __main__.py
guiscrcpy v1.10.0-release
by srevinsaju
************************************
released on 24082019 GMT+0300 2048
************************************
User configuration file not found!
output: <_io.BufferedReader name=18>
Traceback (most recent call last):
File "__main__.py", line 1301, in <module>
prog = MyApp(window)
File "__main__.py", line 963, in __init__
self.setupUi(MainWindow)
File "/home/logix/guiscrcpy/mainui.py", line 110, in setupUi
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
AttributeError: type object 'QPalette' has no attribute 'PlaceholderText'
This is using the instructions from the readme.
Maybe you can compile the binary on something older, at least Ubuntu 18.04, so it has wider compatibility?
from guiscrcpy.
It was indeed a new learning experience for me. Thank you very much :)
from guiscrcpy.
OK, that's a bug. Did you try with the source code? I compiled it on 19.04, so the compatibility is from that version onwards. Thanks for testing and finding vulnerabilities
from guiscrcpy.
I don't have Ubuntu 18.04, I will try it with a live CD.
from guiscrcpy.
You can also use it in a virtual machine.
from guiscrcpy.
from guiscrcpy.
Yes, the binary error occurs on my device too, running Ubuntu 18.04 LTS. The rot cause is the native Python 3.6 as the interpreter. Hence Python 3.7 modules cannot be loaded onto the memory.
I shall compile another Linux version, using Python 3.6 modules.
However, the source code works perfectly, provided the up to date Python interpreter is used. Idk what is causing that error, but try apt install python3-pyqt5
, if an option is available like that. But for me, I made it run on the LiveCD without that apt package
from guiscrcpy.
I just tried it, and the exact same error occurs when trying to run it from source on Ubuntu 19.04 too. And Ubuntu 19.04 has Python 3.7 by default.
from guiscrcpy.
I have added another commit adding a variable called dimension
, try running python3 .
after cloning the new source, and try again, hopefully, it should work. :)
from guiscrcpy.
Is the binary working on 19.04?
edit: I am currently packaging for 18.04 Ubuntu, I am extremely sorry, if I couldn't help you out.
from guiscrcpy.
@logix2 please try the latest 18.04 specific release for guiscrcpy, put on the README.md file Download section. Please update with the outcomes.
Happy to help
from guiscrcpy.
Hi.
I have added another commit adding a variable called dimension, try running python3 . after cloning the new source, and try again, hopefully, it should work. :)
Running it from source still fails. This is on Ubuntu 19.04:
$ python3 .
guiscrcpy v1.10.0-release
by srevinsaju
************************************
released on 24082019 GMT+0300 2048
************************************
User configuration file found!
cfg: ['#########################\n', 'Created by Srevin Saju\n', '#########################\n', '1567074229.4807978\n', '8000\n', 'None\n', 'False\n', 'False\n', 'False\n']
SUCCESS dispRO
Bitrate : 8000 + Dimensions None
8000
dispRO: False
(python3:1262): Gtk-WARNING **: 12:54:05.439: Theme parsing error: gtk.css:1:114: Failed to import: Error opening file /home/logix/.local/share/gnome-shell/extensions/[email protected]/stylesheet.css: No such file or directory
(python3:1262): Gtk-WARNING **: 12:54:05.439: Theme parsing error: gtk.css:2:120: Failed to import: Error opening file /home/logix/.local/share/gnome-shell/extensions/[email protected]/stylesheet-tiled.css: No such file or directory
QApplication: invalid style override passed, ignoring it.
output: <_io.BufferedReader name=18>
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "./__main__.py", line 1302, in <module>
prog = MyApp(window)
File "./__main__.py", line 964, in __init__
self.setupUi(MainWindow)
File "./mainui.py", line 110, in setupUi
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
AttributeError: type object 'QPalette' has no attribute 'PlaceholderText'
Is the binary working on 19.04?
Yes.
@logix2 please try the latest 18.04 specific release for guiscrcpy, put on the README.md file Download section. Please update with the outcomes.
This build works on Ubuntu 18.04, thank you!
from guiscrcpy.
This is the live example of running guiscrcpy from source on 18.04 LTS. I had no problem in installing so.
As the binary works fine, I am removing the bug
label, and might close this issue soon. It looks like there has been an unwanted extension on your gnome-shell, which is raising this error. Seems like https://extensions.gnome.org/extension/1267/no-title-bar/ had been creating the problems all day.
Please let me know, running from source, after disabling this gnome extension
from guiscrcpy.
That extension shows that output no matter what GUI app I launch from the command line, it's not related. And this issue is identical for me on both Ubuntu 19.04 (where I have that extension), and Ubuntu 18.04 (where I don't have that extension).
I'm just trying to make a blog post on my website https://www.linuxuprising.com about this scrcpy GUI which I find very interesting, but there are going to be users wanting to run it from source, that's why I want to see exactly how to do that... Maybe I have a missing dependency (which you forgot to mention in the readme) or something, given that it works for you?
from guiscrcpy.
I am indeed interested in your blog and the website mentioned above. I apologise for the uncapability of me understanding your error, (I am 16, so..), but I have created a workaround for the above mentioned problem in the latest commit (today). Hopefully this fixes your error, and get the source running. The file from which the error is raised, is actually created automatically by pyuic5, a component of PyQt5 from the UI xml file. If this commit, helps to solve your problem, I am glad to help you out. In the case, this creates another problem, please put the output in this thread. I am grateful to be able to work with you.
from guiscrcpy.
You don't have to apologise for anything, bugs happen, don't worry about it. Using the latest Git works and I can now run it from source, thank you very much! I'll make a post about guiscrcpy on my blog probably tomorrow.
from guiscrcpy.
As promised, I wrote an article on my blog about guiscrcpy. Thanks for this nice tool!
from guiscrcpy.
Related Issues (20)
- [FR] Integration of scrcpy 2.0's new native audio forwarding
- [BUG] guiscrcpy.exe won't start HOT 3
- BUG guiscrcpy report HOT 4
- [BUG] scrcpy gave me a error when starting
- Doesn't download the music
- [BUG] Won't open and mount a disk volume for me. Really annoying!
- BUG both tablets not recognized
- [BUG] Does not support m1 mac. HOT 4
- [BUG] CANT CROP (Steam deck)
- [BUG]qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. HOT 1
- could not install guiscrpy well wtih the scrpy. how do i delete in order to install a new one?[BUG]
- [BUG] Software freezes on loading logo
- [BUG] ModuleNotFoundError coloredlogs, but python-coloredlogs is installed HOT 1
- Guiscrcpy screen not displaying HOT 2
- [forwarded audio not getting recorded]
- [BUG]
- [BUG] Guiscrcpy wont show android device HOT 2
- [BUG] AppImage missing libcrypt.so.1
- Mirrored screen not loading HOT 4
- [BUG] arguments passed to setSizePolicy are not in the expected format HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guiscrcpy.