Skip to content
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

BrokenPipeError during unlock #968

Open
damian-ds7 opened this issue Oct 30, 2024 · 16 comments
Open

BrokenPipeError during unlock #968

damian-ds7 opened this issue Oct 30, 2024 · 16 comments

Comments

@damian-ds7
Copy link

After updating Fedora to 41 whenever I use howdy in the terminal this error gets printed.

Exception ignored in: <_io.BufferedWriter name=4>
BrokenPipeError: [Errno 32] Broken pipe

Howdy still works everywhere and I didn't find any issues. Similar issue was created not long ago (#916 ) but that was only when using hotkey RubberStamp. I never set anything like that up.


I've searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable): Fedora 41

Howdy version (sudo howdy version): Howdy 3.0.0 BETA

@hnasheralneam
Copy link

I'm having the same issue on Fedora 41 (KDE spin)

@gguman
Copy link

gguman commented Dec 22, 2024

Has anyone been able to solve this problem?

@chenxiex
Copy link

Having the same issue on Arch Linux with howdy-beta-git installed from AUR.

@Hamster1962
Copy link

+1

1 similar comment
@a15355447898a
Copy link

+1

@rylos
Copy link

rylos commented Jan 16, 2025

I'm getting this too n arch and howdy-beta-git

@Hunter9812
Copy link

I wish somebody can fix this issue

@NoahHallows
Copy link

+1

1 similar comment
@awaLiny2333
Copy link

+1

@russ1217
Copy link

I think it is due to the howdy_gtk synchronization issue. I tried to modify the code at line 90 in compare.py to the following:

	try:
		if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe
			gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
			gtk_proc.stdin.flush()
	except IOError:
		pass

It seems that the Error message disappears.

@russ1217
Copy link

russ1217 commented Feb 12, 2025

BTW, I am using wayland KDE on archlinux. i think howdy_gtk cannot be initialized correctly. If I turn on option gtk_stdout to "true" in howdy config. Here is the runtime error message:

Traceback (most recent call last):
File "/usr/lib/howdy-gtk/init.py", line 5, in
import authsticky
File "/usr/lib/howdy-gtk/authsticky.py", line 158, in
window = StickyWindow()
File "/usr/lib/howdy-gtk/authsticky.py", line 33, in init
gtk.Window.init(self)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/lib/python3.13/site-packages/gi/overrides/Gtk.py", line 505, in init
raise RuntimeError(
"Gtk couldn't be initialized. "
"Use Gtk.init_check() if you want to handle this case.")
RuntimeError: Gtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.

That is why in the compare.py:

gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
gtk_proc.stdin.flush()

fails and generates the annoying error message.

@Hamster1962
Copy link

Hamster1962 commented Feb 12, 2025

Hi russ1217. The text you added above does seem to get rid of the error but afterwards i get other errors, reference tabs, spaces and indents. Can you please advise an idiots guide to adding the extra line
'if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe'

Is it the text editor I’m using?
Or can you link me to a modified Compare.py file please

We are nearly there.

@rylos
Copy link

rylos commented Feb 12, 2025

Hi russ1217. The text you added above does seem to get rid of the error but afterwards i get other errors, reference tabs, spaces and indents. Can you please advise an idiots guide to adding the extra line 'if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe'

Is it the text editor I’m using? Or can you link me to a modified Compare.py file please

We are nearly there.

Double check the indents, this is the screenshot so you can check it out.

Image

@Hamster1962
Copy link

That is helpful, which text editor are you using because my Micro spacing is all different. does that matter?

@Hamster1962
Copy link

Bingo, I did it, I used Sublime Text editor and it made it much clearer where the indents should be.

We did it ....... yay.

@russ1217
Copy link

russ1217 commented Feb 13, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests