Sitelet https://web.archive.org/web/20210106130914/https://github.com/python-xlib/python-xlib/issues/149
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

Bad display name, macOS #149

Open
alexwms opened this issue Sep 6, 2019 · 0 comments
Open

Bad display name, macOS #149

alexwms opened this issue Sep 6, 2019 · 0 comments
Labels

Comments

@alexwms
Copy link

@alexwms alexwms commented Sep 6, 2019 •

Hello,
I am running macOS Mojave and I am trying to use python-xlib. I am using version 0.25 of python-xlib.

Here is the traceback that I am getting:

python3 main.py
{'style': PosixPath('/Users/alex/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/Users/alex/.config/inkscape-shortcut-manager/objects')}
Traceback (most recent call last):
  File "main.py", line 106, in <module>
    main()
  File "main.py", line 78, in main
    disp = Display()
  File "/usr/local/lib/python3.7/site-packages/Xlib/display.py", line 89, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/local/lib/python3.7/site-packages/Xlib/display.py", line 71, in __init__
    protocol_display.Display.__init__(self, *args, **keys)
  File "/usr/local/lib/python3.7/site-packages/Xlib/protocol/display.py", line 84, in __init__
    name, protocol, host, displayno, screenno = connect.get_display(display)
  File "/usr/local/lib/python3.7/site-packages/Xlib/support/connect.py", line 73, in get_display
    return mod.get_display(display)
  File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 76, in get_display
    raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name "/private/tmp/com.apple.launchd.kzHzmjnNw7/org.macosforge.xquartz:0"

It seems that the regex match that is being performed on the string "/private/tmp/com.apple.launchd.kzHzmjnNw7/org.macosforge.xquartz:0" is failing, but I have no idea what is wrong (I have no programming experience with python-xlib/xquartz). I would be grateful if someone could help me out!

Best,
Alex

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.