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

'SelectReactor' object has no attribute 'doPoll' #287

Closed
JackYrp opened this issue Jun 9, 2024 · 3 comments
Closed

'SelectReactor' object has no attribute 'doPoll' #287

JackYrp opened this issue Jun 9, 2024 · 3 comments
Labels

Comments

@JackYrp
Copy link

JackYrp commented Jun 9, 2024

When I use mouseDrag function ,this error has occurred:

 File "C:\ProgramData\Anaconda3\envs\mh\lib\site-packages\vncdotool\api.py", line 119, in callable_threaded_proxy
    result.raiseException()
  File "C:\ProgramData\Anaconda3\envs\mh\lib\site-packages\twisted\python\failure.py", line 475, in raiseException
    raise self.value.with_traceback(self.tb)
AttributeError: 'SelectReactor' object has no attribute 'doPoll'

What should I do now,I am in hurry
Thank you very much guys

@pmhahn pmhahn added the bug label Jun 10, 2024
@JackYrp
Copy link
Author

JackYrp commented Jun 12, 2024

can some one help me?

pmhahn added a commit to univention/vncdotool that referenced this issue Jun 17, 2024
move mouse diagonally instead of first going up/down and then
left/right.

Do not use `time.sleep()` with Twisted reactor as it will also pause all
other event processing.

Patch `vncev` to print all mouse events, including those where not button
is pressed / released.

Issue sibson#287
@pmhahn
Copy link
Collaborator

pmhahn commented Jun 17, 2024

can some one help me?

OpenSource if about being able to contribute to others, not demanding help from others ;-)

Nevertheless you might want to try the branch from #289 I just pushed which gets rid of some nastiness in mouseDrag(), which

  • used time.sleep() with is a no-no with Twisted
  • used some internal knowledge of the SelectReactor

pip install git+https://github.com/univention/vncdotool.git@drag

@pmhahn
Copy link
Collaborator

pmhahn commented Jun 17, 2024

Even a duplicate of #260 — please search for existing issues first next time before opening another issue. Thanks.

@pmhahn pmhahn closed this as completed Jun 17, 2024
sibson pushed a commit that referenced this issue Jun 22, 2024
* test: keys are released in reverse order

Since: a4bb988

* ci: Add Python 3.12 as supported

* ci: Quote shell variables

* ci: Move vncdo from /tmp/ to $PWD/.vncdo

Hard-coded paths below /tmp/ are a security issue on shared hosts.

/tmp/ is (often) cleaned up on reboot.

* doc: Fix building documentation

* doc: Improve documentation

Fix spelling errors.

Fix broken links, e.g. https:// everywhere.

Fix Sphinx reST markup.

* doc: Document API shutdown

Issue #288

* refactor: modernize type annotations

pyupgrade --py38-plus
ruff check --fix setup.py vncdotool/*.py

* fix: mouseDrag diagonally

move mouse diagonally instead of first going up/down and then
left/right.

Do not use `time.sleep()` with Twisted reactor as it will also pause all
other event processing.

Patch `vncev` to print all mouse events, including those where not button
is pressed / released.

Issue #287

* fixup! ci: Add Python 3.12 as supported

* fixup! doc: Improve documentation
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

2 participants