Thanks for sharing!

Peter

On Tue, Feb 23, 2021 at 3:01 PM MTSowbug <mtsow...@gmail.com> wrote:

> I was experiencing the same issue as Ejovo upon upgrading Ubuntu from
> 18.04 to 20.04 - a PyQt5 ImportError prevented Mnemosyne from launching.
> The only thing was worked was downgrading PyQtt, PyQt5-sip, and
> PyQtWebEngine as Ejovo described. I am extremely grateful for this thread!
> After many hours of unsuccessful troubleshooting, I was growing worried
> that I would have to abandon Mnemosyne.
>
> On Sunday, January 31, 2021 at 11:08:28 AM UTC-6 ejo...@yahoo.com wrote:
>
>> I'll try a fresh build using apt-get, but it's important to note that
>> this is an issue with python imports, not mnemosyne itself. In fact, I was
>> able to fix the import issue by rolling back the version of PyQt5 and
>> PyQtWebEngine to an arbitrary earlier build.
>>
>> I'm now able to launch Mnemosyne (and don't hate me but I downloaded Anki
>> as a second option, which was also failing thanks to the errors while
>> importing - but it's now working), so I actually don't need reinstall
>> anything. If anyone runs into this issue in the future, here are the
>> versions of PyQt5 and QtWebEngine that are working:
>>
>> PyQt5                    5.12
>> PyQt5-sip                12.8.1
>> PyQtWebEngine            5.12
>>
>> I'm sorry if this was the wrong forum to post to, I didn't know in the
>> beginning that it was an issue with Qt, and not Mnemosyne. However, I'm now
>> able to get my cards back up and running again, so cheers!!!! Feel free to
>> close the forum as my issue has been resolved.
>>
>> Ejovo
>>
>>
>>
>> On Sunday, January 31, 2021 at 5:56:49 PM UTC+1 Bithov Vinu wrote:
>>
>>> I find that error only comes up when installing from source. Remove
>>> Mnemosyne using dpkg and install it using apt-get.
>>>
>>> On Sun, 31 Jan 2021, 16:08 Peter Bienstman, <peter.b...@gmail.com>
>>> 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, <
>>>> mnemosyne-...@googlegroups.com> 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 mnemosyne-proj-u...@googlegroups.com.
>>>>> 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 mnemosyne-proj-u...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/mnemosyne-proj-users/CAMdxoPG8NHBSUe4bzmf%3D8Lqo1Cuw%3DhHZfjLdfonxr0k-AWgFCQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/CAMdxoPG8NHBSUe4bzmf%3D8Lqo1Cuw%3DhHZfjLdfonxr0k-AWgFCQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>> Student Account
>>> Calday Grange Grammar School is a charitable company limited by
>>> guarantee and registered in England and Wales with company number 8332696.
>>> The Registered Office is at Grammar School Lane, West Kirby, Wirral,
>>> CH48 8GG
>>
>> --
> 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 mnemosyne-proj-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/244e4c97-6281-422c-a315-d4c6de228058n%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/244e4c97-6281-422c-a315-d4c6de228058n%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 mnemosyne-proj-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CAMdxoPHF51O%3DxSzdUQU7FWoV2Cd3-WRa09yDq%3DKUGxvnbag%2BFA%40mail.gmail.com.

Reply via email to