Giter Site home page Giter Site logo

Comments (2)

abrichr avatar abrichr commented on July 22, 2024

https://github.com/MLDSAI/puterbot/new/main?filename=.github%2Fworkflows%2Fpython-publish.yml&workflow_template=ci%2Fpython-publish

from openadapt.

Mustaballer avatar Mustaballer commented on July 22, 2024

@abrichr

I created a PR to address this ticket. So far I have been able to successfullly install all dependencies and run black. However I am being blocked by the pytest test cases failing due to import errors. You can see the failed Github Action attempt here: https://github.com/Mustaballer/puterbot/actions

This is my Github actions script: https://github.com/MLDSAI/OpenAdapt/pull/138/files#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3

This is the output I am getting:

________________ ERROR collecting tests/puterbot/test_events.py ________________
ImportError while importing test module '/home/runner/work/puterbot/puterbot/tests/puterbot/test_events.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/importlib/__init__.py:1[26](https://github.com/Mustaballer/puterbot/actions/runs/4951391799/jobs/8856295760#step:8:27): in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/puterbot/test_events.py:9: in <module>
    from puterbot.models import ActionEvent, WindowEvent
puterbot/models.py:4: in <module>
    from pynput import keyboard
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/pynput/__init__.py:40: in <module>
    from . import keyboard
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/pynput/keyboard/__init__.py:[31](https://github.com/Mustaballer/puterbot/actions/runs/4951391799/jobs/8856295760#step:8:32): in <module>
    backend = backend(__name__)
/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packages/pynput/_util/__init__.py:78: in backend
    raise ImportError('this platform is not supported: {}'.format(
E   ImportError: this platform is not supported: ('failed to acquire X connection: Bad display name ""', DisplayNameError(''))
E   
E   Try one of the following resolutions:
E   
E    * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
=========================== short test summary info ============================
ERROR tests/puterbot/test_events.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.42s ===============================```


from openadapt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.