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

Travis CI Build fails when importing KeyboardEmulator #59

Open
GeorgeCiesinski opened this issue Mar 23, 2020 · 4 comments
Open

Travis CI Build fails when importing KeyboardEmulator #59

GeorgeCiesinski opened this issue Mar 23, 2020 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@GeorgeCiesinski
Copy link
Owner

Describe the bug
The test_TextController.py test has been added. This test imports Wordcatcher and KeyboardEmulator. One of the KeyboardEmulator dependencies is causing the build to fail on Travis. This is probably because of a lack of physical keyboard in this VM. Testing may need to be adjusted to run without these dependencies if possible.

Travis CI Build
https://travis-ci.com/github/GeorgeCiesinski/text-script/builds/154513129

Expected behavior
Build should be passing as this is a blank template test. The imports are causing it to fail.

Screenshots
Build errors:
build-fail

Trvis CI Environment

  • platform linux -- Python 3.8.0, pytest-5.2.1, py-1.8.0, pluggy-0.13.0
  • rootdir: /home/travis/build/GeorgeCiesinski/text-script
  • collected 7 items / 1 errors / 6 selected

Additional context
Running pytest locally works without issues. This is likely caused by running on a VM.

@GeorgeCiesinski GeorgeCiesinski added this to the 1.3.2 Bugfix milestone Mar 23, 2020
@GeorgeCiesinski GeorgeCiesinski self-assigned this Mar 23, 2020
@GeorgeCiesinski GeorgeCiesinski added the bug Something isn't working label Mar 23, 2020
@jwlodek
Copy link
Contributor

jwlodek commented Mar 23, 2020

Travis runs the tests in an ubuntu server version, so any imports for displays may fail, as you said. You can probably manually install them by finding the required packages and adding them to requirements_dev.txt. It's worth trying anyway. From what I can tell the offending package is XLib, which is the linux display server.

@jwlodek
Copy link
Contributor

jwlodek commented Mar 23, 2020

Actually, take a look here: moses-palmer/pynput#6. Similar issue with the same library

@GeorgeCiesinski
Copy link
Owner Author

Many thanks jwlodek! I will go through this issue today and try your suggestion.

@GeorgeCiesinski
Copy link
Owner Author

@nulldozer I assigned this to you as you are working on the test_TextController.py script. Feel free to close this issue if you resolve this error, or if you find a way around using the imports during testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants