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
Struct() argument 1 must be string, not unicode #277
Labels
Comments
Hmm, I thought I fixed that.. Anyway, the below should fix the problem, please report if this solved it. diff --git a/blueman/Functions.py b/blueman/Functions.py
index 29494a1..8e924e7 100644
--- a/blueman/Functions.py
+++ b/blueman/Functions.py
@@ -49,7 +49,7 @@ YELLOW = lambda x: "\x1b[33;01m" + x + "\x1b[39;49;00m"
import fcntl, struct, termios
try:
- in_fg = os.getpgrp() == struct.unpack('h', fcntl.ioctl(0, termios.TIOCGPGRP, " "))[0]
+ in_fg = os.getpgrp() == struct.unpack(str('h'), fcntl.ioctl(0, termios.TIOCGPGRP, " "))[0]
except IOError:
in_fg = 'DEBUG' in os.environ |
Thanks for patch. But I have a new issue:
|
Sorry, I fix it by running |
See #274 (comment) |
Ok, I pushes the fix to master so closing 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks,
I have a issue when trying to run latest blueman snapshot (since may-07-2015). There are:
That is on Slackware64-14.1, Bluez-5.29 and python-2.7.5. UTF8 is system encoding.
The text was updated successfully, but these errors were encountered: