Hi, I isolated just one single import to get to the bottom of this issue. I opened my own test.py file to see whats going on. I am able to successfully install PyQt5, and import it into my test.py file. However, when I inspect the contents of the PyQt5 package (module? I don't have the right language yet) I notice that the QtWebEngineWidgets module isn't listed. It appears that it has now been moved to a separate package, aptly named PyQtWebEngine. So, I installed the PyQtWebEngine module without issue, and verified that it now appears as a part of the PyQt5 package.
This is the weird part, I can import certain modules from PyQt5 without error, for example Qt. However, if I try to import other modules (which are clearly present in the package PyQt5), like QtCore or QtWebEngineWidgets. I'll ask around on the Linux Mint forums, but could you take 30 seconds just to check out these screenshots? Any ideas why the importing would be successful for certain modules, and then lead to an error for others? All within the same package! Anyways, I appreciate your time and I'm super bummed that I can't get this up and running because I love Mnemosyne so much!!! Cheers, ejovo On Sunday, January 31, 2021 at 5:08:21 PM UTC+1 Peter Bienstman wrote: > Hi, > > Alternatively you could also try asking on a Linux Mint forum on how to > install Pyqt if the standard 'pip install PyQt5' does not work. > > Cheers, > > Peter > > > On Sun, 31 Jan 2021, 17:05 'ejovo' via mnemosyne-proj-users, < > [email protected]> wrote: > >> Hey guys, I recently switched to linux and wanted to get mnemosyne up and >> running on my new machine. However, when I try to run mnemosyne, I'm >> running into an error with PyQt. I've already installed the dependencies >> that are specified in the readme file, and I've tried exporting my >> LD_LIBRARY_PATH where the PyQt module gets installed. Still haven't had any >> luck. I unfortunately don't have a lot of experience with Python so I don't >> know how to hack a solution, but here is the error messages that I get: >> >> Log body: >> An unexpected error has occurred. >> Please forward the following info to the developers: >> >> Traceback (innermost last): >> File "/usr/local/bin/mnemosyne", line 4, in <module> >> __import__('pkg_resources').run_script('Mnemosyne==2.7.3', >> 'mnemosyne') >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 667, in run_script >> self.require(requires)[0].run_script(script_name, ns) >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 1463, in run_script >> exec(code, namespace, namespace) >> File >> "/usr/local/lib/python3.8/dist-packages/Mnemosyne-2.7.3-py3.8.egg/EGG-INFO/scripts/mnemosyne", >> >> line 150, in <module> >> from PyQt5 import QtWebEngineWidgets # Needs to happen first for >> some reason. >> ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version >> `Qt_5.15' not found (required by >> /home/ejovo13/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so) >> >> An unexpected error has occurred. >> Please forward the following info to the developers: >> >> Traceback (innermost last): >> File "/usr/local/bin/mnemosyne", line 4, in <module> >> __import__('pkg_resources').run_script('Mnemosyne==2.7.3', >> 'mnemosyne') >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 667, in run_script >> self.require(requires)[0].run_script(script_name, ns) >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 1463, in run_script >> exec(code, namespace, namespace) >> File >> "/usr/local/lib/python3.8/dist-packages/Mnemosyne-2.7.3-py3.8.egg/EGG-INFO/scripts/mnemosyne", >> >> line 150, in <module> >> from PyQt5 import QtWebEngineWidgets # Needs to happen first for >> some reason. >> ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version >> `Qt_5.15' not found (required by >> /home/ejovo13/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so) >> An unexpected error has occurred. >> Please forward the following info to the developers: >> >> Traceback (innermost last): >> File "/usr/local/bin/mnemosyne", line 4, in <module> >> __import__('pkg_resources').run_script('Mnemosyne==2.7.3', >> 'mnemosyne') >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 667, in run_script >> self.require(requires)[0].run_script(script_name, ns) >> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line >> 1463, in run_script >> exec(code, namespace, namespace) >> File >> "/usr/local/lib/python3.8/dist-packages/Mnemosyne-2.7.3-py3.8.egg/EGG-INFO/scripts/mnemosyne", >> >> line 150, in <module> >> from PyQt5 import QtWebEngineWidgets # Needs to happen first for >> some reason. >> ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version >> `Qt_5.15' not found (required by >> /home/ejovo13/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so) >> >> If any Linux power users who are experienced with Python could suggest >> some possible approaches, I'd be more than happy. >> >> Cheers, >> ejovo >> >> -- >> You received this message because you are subscribed to the Google Groups >> "mnemosyne-proj-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mnemosyne-proj-users/0bcf3772-7b7b-4d95-a049-0c7e91bbea13n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/mnemosyne-proj-users/0bcf3772-7b7b-4d95-a049-0c7e91bbea13n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/56470c2b-37eb-4471-b43e-c202e2bab79en%40googlegroups.com.
