You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried a project which used python-xlib on OS X EI Capitan. And the bottom is backtraces.
And I have found some issue on stackexchange. It's seems not a
bug related to python-xlib, but the X11 on Mac os has changed the socket path from /tmp to /private/tmp. I tried to change host.startswith('/tmp/'): to host.startswith('/private/tmp/'):, and then
the backtraces go away.
I also saw a similar ticket http://sourceforge.net/p/python-xlib/bugs/27/ which claimed fixed. I am not sure its the same issue.
I am just adding an issue here in case others come across the same problem. Hope not to bother you.
Hi @declanqian, thank you for the issue investigation. Sorry for the delayed reply, I went back from vacation just yesterday. I had no chance to test the fix on at least 2 OS X versions yet. If you were confirmed it's OK on earlier OS X, I would merge the pull request. Peter is not active enough so I'm trying to migrate the project to GitHub and there are still plenty of work. Any help would be great.
Nope, I don't have access to a OS X machine. The problem with this test is it's highly dependent on the keymap being used, so maybe we should just drop it.
It's an helper script provided by the package on Arch Linux / Ubuntu. And running manually with (export DISPLAY=:99; Xvfb -ac :99 & xvfb_pid=$!; sleep 3; nosetests test/test_xlib_display.py; kill $xvfb_pid; wait $xvfb_pid)?
Activity
vasily-v-ryabov commentedon Jan 12, 2016
Hi @declanqian, thank you for the issue investigation. Sorry for the delayed reply, I went back from vacation just yesterday. I had no chance to test the fix on at least 2 OS X versions yet. If you were confirmed it's OK on earlier OS X, I would merge the pull request. Peter is not active enough so I'm trying to migrate the project to GitHub and there are still plenty of work. Any help would be great.
Merge pull request #1 from python-xlib/master
ezfe commentedon Mar 13, 2016
I just ran into this problem with my Python application. I am currently running from https://github.com/declanqian/python-xlib/tree/66b67e7725346b0924fe1f57992a5e30f630fac6 and I am no longer getting this error.
vasily-v-ryabov commentedon Mar 13, 2016
Hi @ezfe , which OS X version do you use?
ezfe commentedon Mar 13, 2016
@vasily-v-ryabov I'm using El Capitan
vasily-v-ryabov commentedon Jul 1, 2016
Now I can check the tests on OS X El Capitan. The fix is working. But we have 1 test failure though:
I'm going to merge #2 but will keep the issue open until all the tests are fixed. Will check on other OS X version later.
benoit-pierre commentedon Jul 1, 2016
Isn't the
Deletekey non-standard on some Apple keyboards? What do you get withxmodmap -pk | grep Delete?Maybe testing something else, like
Escapeis more robust:vasily-v-ryabov commentedon Jul 1, 2016
xmodmap -pk | grep Deleteprints code 125.With your suggestion it fails with
61 != 9.I'm running it on VirtualBox image (host system is Win8.1, guest one is El Capitan). So it's not an Apple keyboard. Are you able to run it on Mac?
BTW
pyautoguilibrary uses its own key mapping for OS X.benoit-pierre commentedon Jul 1, 2016
Nope, I don't have access to a OS X machine. The problem with this test is it's highly dependent on the keymap being used, so maybe we should just drop it.
benoit-pierre commentedon Jul 1, 2016
Does it work when run under
Xvfb?vasily-v-ryabov commentedon Jul 1, 2016
I don't have such a command on OS X. Help for
xvfbalso doesn't list words likerun.benoit-pierre commentedon Jul 1, 2016
It's an helper script provided by the package on Arch Linux / Ubuntu. And running manually with
(export DISPLAY=:99; Xvfb -ac :99 & xvfb_pid=$!; sleep 3; nosetests test/test_xlib_display.py; kill $xvfb_pid; wait $xvfb_pid)?vasily-v-ryabov commentedon Jul 1, 2016
It prints
-bash: !: event not foundbenoit-pierre commentedon Jul 1, 2016
Damn! (I use ZSH). With
(export DISPLAY=:99; Xvfb -ac :99 & sleep 3; nosetests test/test_xlib_display.py; pkill Xvfb)then.vasily-v-ryabov commentedon Jul 1, 2016
Now the failure is different:
BTW I will have a chance to test it on Macbook next week.
petli commentedon Jul 1, 2016
I just tested git master on a native El Capitan, and get this error:
Running against the native X display, not Xvfb since I didn't get that running immediately.
My hunch is that these tests are about the keycode/keysym cache. Perhaps they can be reformulated to not be device-dependent.
opoplawski commentedon Apr 14, 2018
Seeing this when running on with the Xdummy driver on Fedora: