pyvda icon indicating copy to clipboard operation
pyvda copied to clipboard

Create desktop error

Open markox92 opened this issue 1 year ago • 2 comments

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

markox92 avatar Nov 23 '24 12:11 markox92

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?

mirober avatar Dec 07 '24 21:12 mirober

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?

markox92 avatar Dec 07 '24 22:12 markox92