Electron-cash: ModuleNotFoundError: No module named 'PyQt5.QtSvg'

Created on 8 Jun 2019  路  4Comments  路  Source: Electron-Cash/Electron-Cash

Crash Report

This crash report was reported through the automatic crash reporting system 馃

Traceback

```Python traceback
File "/home/sirius/Electron Cash-4.0.6/gui/qt/main_window.py", line 82, in onPress
self.func()
File "/home/sirius/Electron Cash-4.0.6/gui/qt/main_window.py", line 3290, in cashshuffle_icon_leftclick
self.toggle_cashshuffle()
File "/home/sirius/Electron Cash-4.0.6/gui/qt/main_window.py", line 3316, in toggle_cashshuffle
p = p0 or plugins.enable_internal_plugin("shuffle")
File "/home/sirius/Electron Cash-4.0.6/lib/plugins.py", line 228, in enable_internal_plugin
return self.get_internal_plugin(name, force_load=True)
File "/home/sirius/Electron Cash-4.0.6/lib/plugins.py", line 154, in get_internal_plugin
self.load_internal_plugin(name)
File "/home/sirius/Electron Cash-4.0.6/lib/plugins.py", line 177, in load_internal_plugin
p = loader.load_module(full_name)
File "", line 399, in _check_name_wrapper
File "", line 823, in load_module
File "", line 682, in load_module
File "", line 265, in _load_module_shim
File "", line 684, in _load
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/sirius/Electron Cash-4.0.6/plugins/shuffle/qt.py", line 47, in
from electroncash_gui.qt.utils import FixedAspectRatioSvgWidget
File "/home/sirius/Electron Cash-4.0.6/gui/qt/utils/__init__.py", line 27, in
from .aspect_svg_widget import FixedAspectRatioSvgWidget
File "/home/sirius/Electron Cash-4.0.6/gui/qt/utils/aspect_svg_widget.py", line 27, in
from PyQt5.QtSvg import QSvgWidget

ModuleNotFoundError: No module named 'PyQt5.QtSvg'
```

Reporter

This issue was reported by 7 user(s):

| Electron Cash Version | Python Version | Operating System | Wallet Type | Locale |
|---|---|---|---|---|
| 4.0.6 | 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] | Linux-4.15.0-51-generic-x86_64-with-LinuxMint-19.1-tessa | standard | de_DE |
| 4.0.6 | 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] | Linux-4.18.0-17-generic-x86_64-with-neon-18.04-bionic | standard | en_US |
| 4.0.6 | 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] | Linux-4.15.0-51-generic-x86_64-with-LinuxMint-19.1-tessa | standard | de_DE |
| 4.0.6 | 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] | Linux-4.15.0-51-generic-x86_64-with-Ubuntu-18.04-bionic | standard | en_US |
| 4.0.6 | 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] | Linux-4.15.0-50-generic-x86_64-with-LinuxMint-19.1-tessa | standard | en_US |
| 4.0.6 | 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] | Linux-4.18.0-17-generic-x86_64-with-neon-18.04-bionic | standard | en_US |
| 4.0.6 | 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] | Linux-4.15.0-52-generic-x86_64-with-LinuxMint-19.1-tessa | standard | de_DE |

Additional Information

Got "sorry something went wrong" message after upgrading from 4.0.5 to 4.0.6, re-opening wallet and re-enabling CashShuffle optional feature.


This error happened when I attempted to enable CashShuffle.


Checked "CashShuffle" box under Tools/Optional Features


Qt

Most helpful comment

I also had this on Xubuntu 19.04.

In this case, apt install python3-pyqt5.qtsvg solved it.

All 4 comments

People should install PyQt5.12 latest on Linux...

But QtSvg should be there in much earlier versions. The person having this crash runs from source and seems to just not have installed the package for QtSvg.

I also had this on Xubuntu 19.04.

In this case, apt install python3-pyqt5.qtsvg solved it.

Note also, several of the error reports above mention "bionic" which is ubuntu 18.04. That would be Qt 5.10 by the way...

Was this page helpful?
0 / 5 - 0 ratings