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

TypeError: 'str' does not support the buffer interface #100

Closed
aditiapratama opened this issue Sep 29, 2015 · 6 comments
Closed

TypeError: 'str' does not support the buffer interface #100

aditiapratama opened this issue Sep 29, 2015 · 6 comments
Labels

Comments

@aditiapratama
Copy link

I've updated to the recent version, and when I try to run it, I've got following error

Traceback (most recent call last):
  File "script.py", line 461, in <module>
    if detect_de() in ("pantheon", "xfce"):
  File "script.py", line 60, in detect_de
    if " = \"xfce4\"" in out:
TypeError: 'str' does not support the buffer interface
@bilelmoussaoui
Copy link
Owner

Which distro you're using ?

@aditiapratama
Copy link
Author

I'm using xubuntu 15.04

@bilelmoussaoui
Copy link
Owner

Add this after the line 59
print(out) and paste the output here

@aditiapratama
Copy link
Author

still got same error

b''
Traceback (most recent call last):
  File "script.py", line 462, in <module>
    if detect_de() in ("pantheon", "xfce"):
  File "script.py", line 61, in detect_de
    if " = \"xfce4\"" in out:
TypeError: 'str' does not support the buffer interface

@andia89
Copy link
Collaborator

andia89 commented Sep 29, 2015

Should be fixed now, @aditiapratama please try again

@aditiapratama
Copy link
Author

Sorry, for delay, yes it's already fixed. Thank you

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

No branches or pull requests

3 participants