-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with pypr commands #22
Comments
same here with AUR package |
Two remarks here:
There is a high chance you have a problem with your python setup (maybe not using the OS packaging system 100% ?). Check the errors by logging the output of pypr, it is likely it has a problem, replace:
with
And check the log files, something is going wrong here. Also I thought I had improved the logging in such case to indicate pypr daemon didn't start, which version are you running? Edit: try to uninstall pyprland from pipx or pip to simplify the situation |
If you didn't install it with pip or pipx I'm very interested in the outcome of your test and the different logs for pypr & hyprland, since one fails to start the other... |
Some exception wasn't caught, the error message you should get is: |
|
Yes, I figured out after writing this that that branch was probably merged long ago as you mentioned.
|
And here is the pyprland version as stated by pipx:
|
And here is my updated {
"pyprland": {
"plugins": [
"scratchpads"
]
},
"scratchpads": {
"volume": {
"command": "pavucontrol",
"animation": "fromRight"
}
}
} |
And about the pypr daemon running, yes there is a process running with command: |
I'm not sure why you lost every newline, but check the line 15 of your config, there is a syntax error. |
The errors are completely different this time, looks like your environment is instable. Original issue is fixed I guess, now it looks like you have another problem: the volume app window isn't showing. In the logs you see the PID of the program, in I don't know exactly why but the app takes more than 5s to start, which is not supported:
Do you have the issue for every app ? |
Okay so I did not do anything since last night, logged in today, and i tried |
Im very confused maybe it needed a good old reboot after installing? |
Because I really did not alter anything other than removing discord from my scratchpad config. And I dont think that was the issue. |
I could close this if you do not need any more information from me. If it works I'll leave it alone. But the system shouldn't be instable its almost a fresh install. |
Ok I did some digging around because I dont like leaving things like this. So basically I re-introduced discord into my pyprland.json on |
So after debugging I think there really is a specific issue with discord. |
I don't know pipx to be honest, but I know it's very easy to get confused with multiple "transparent" environments running in parallel. I would recomment sticking to using the operating system packages or explicit python virtual environments. About discord, I don't use the desktop app, but I know a couple of apps may manage the GUI separately to the daemon, making PID matching impossible. I consider it closed. |
Last 3 -4 reboots i've been getting this in the logs with pypr daemon not starting because of this.
|
This error is relatively clear, and line 11 of the JSON config file you had a syntax error. |
my problem were json config error, changed to toml format and all work as expected. Tank you !!!! |
Yea I also ported to the TOML format and I had a stupid trailing comma in the json. Everything works fine. Thank you so much for the help! |
First of all I want to say that I am sorry if I am missing something obvious here.
I have pypr installed from the lazy branch as was documented here:
For anyone else wondering I used
To install it
Originally posted by @redsteadz in #19 (comment)
Here is my
.config/hypr/hyprland.conf
:here is my pyprland.json:
Through some debugging I noticed if i ran
pypr
inside the terminal discord and pavucontrol start up, but when i runpypr toggle volume
in order to toggle pavucontrol I get an unhandled exception:The output for the show command is the same:
Any
pypr
commands will have the same problem with discord or any other scratchpad.I also installed it with
pipx install pyprland
before all of this and the behaviour was the same.The text was updated successfully, but these errors were encountered: