No module named 'PySide' when using Mu

271 Views Asked by At

I've read all the other questions referencing this issue and tried the solutions but can't seem to get pyperclip working in Mu.

When I try running:

>import pyperclip 
>pyperclip.copy('Hello, world') 
>pyperclip.paste()

I get the following error:

Traceback (most recent call last):
  File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/qtpy/__init__.py", line 204, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
ModuleNotFoundError: No module named 'PySide'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/andy/mu_code/.py", line 3, in <module>
    pyperclip.copy('hello')
  File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/pyperclip/__init__.py", line 658, in lazy_load_stub_copy
    copy, paste = determine_clipboard()
  File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/pyperclip/__init__.py", line 582, in determine_clipboard
    import qtpy  # check if qtpy is installed
  File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/qtpy/__init__.py", line 210, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
0

There are 0 best solutions below