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

Create desktop error #51

Open
markox92 opened this issue Nov 23, 2024 · 2 comments
Open

Create desktop error #51

markox92 opened this issue Nov 23, 2024 · 2 comments

Comments

@markox92
Copy link

from pyvda import VirtualDesktop
VirtualDesktop.create()

It's back error

Traceback (most recent call last):
  File "C:\Users\marko\Desktop\xx.py", line 2, in <module>
    VirtualDesktop.create()
  File "C:\Users\marko\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyvda\pyvda.py", line 305, in create
    desktop = managers.manager_internal.create_desktop() # type: ignore
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marko\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyvda\com_defns.py", line 320, in create_desktop
    return self.CreateDesktopW() # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^
OSError: exception: access violation reading 0x0000000000000000

Windows 11 Pro
Ver: 24H2
Build: 26100.2454
Python 3.12.7

@mrob95
Copy link
Owner

mrob95 commented Dec 7, 2024

Thanks for reporting this. I don't have a machine to test on but could you try version 0.5.0 and see if this solves the problem?

@markox92
Copy link
Author

markox92 commented Dec 7, 2024

Thanks for reporting this. I don't have a machine to test on but could you try version 0.5.0 and see if this solves the problem?

Thank you, it's working now, just a question: I have found some fork of pyvda where it is possible to call VirtualDesktop(2).go(animation=True) and switch desktop with animation, maybe you can also include this?

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

No branches or pull requests

2 participants