On Sunday, 15 September 2019 06:04:05 UTC-4, Oisín Mac Fhearaí wrote:

Greetings Oisin.
Thank you for taking an interest in this thread.

I'm curious if your active Python is not the system installed one.
>
> Perhaps you could try these commands:
>
> which python3
>
 
Produced: 
kevin@Frodo4-MSI:~$ which python3
/usr/bin/python3

 

> pip3 install PyQtWebEngine
>
Produced:
 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] 
Permission denied: '/usr/local/lib/python3.6/dist-packages/PyQt5'
Consider using the `--user` option or check the permissions.

Therefore I tried...

>
> If the install fails due to a permission error, try:
>
> pip3 install --user PyQtWebEngine
>

Requirement already satisfied: PyQt5>=5.13 in 
./.local/lib/python3.6/site-packages (from PyQtWebEngine) (5.13.0)
Requirement already satisfied: PyQt5_sip<13,>=4.19.14 in 
./.local/lib/python3.6/site-packages (from PyQt5>=5.13->PyQtWebEngine) 
(4.19.18)
Installing collected packages: PyQtWebEngine
*Successfully installed PyQtWebEngine-5.13.1*

Then I ran mnemosyne from the command line:

kevin@Frodo4-MSI:~$ mnemosyne
An unexpected error has occurred.
Please forward the following info to the developers:

 Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 132, in <module>
    from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some 
reason.
 *RuntimeError: the sip module implements API v12.0 to v12.6 but the 
PyQt5.QtWebEngineWidgets module requires API v12.7*
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 132, in <module>
    from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some 
reason.
 *RuntimeError: the sip module implements API v12.0 to v12.6 but the 
PyQt5.QtWebEngineWidgets module requires API v12.7*

Noticing the RuntimeError related to '*sip*' I tried:

pip3 install PyQt5-sip
Requirement already satisfied: PyQt5-sip in 
./.local/lib/python3.6/site-packages (4.19.18)

But nothing related to API v12.7
I attempted to run Mnemosyne from the command line again and received the 
same (last) error message.

Again I'm stumped and I am at a loss as to how to proceed.
However I do thank you for your suggestions and assistance. It's 
appreciated.

Kevin

===============




> Oisín
>
> On Sun, 15 Sep 2019, 05:12 Peter Bienstman, <peter.b...@ugent.be 
> <javascript:>> wrote:
>
>> Hi, 
>>
>> I'm afraid I don't have expertise in this particular matter, as I'm not 
>> the one building the Ubuntu packages. 
>>
>> If you don't want to use a non-LTS version, I suggested you contact the 
>> Ubuntu developer that maintains the Mnemosyne package. They should 
>> certainly know what the best way is to deal with Mnemosyne's dependencies. 
>>
>> Other crazy option, but not sure if it will work, is run the Windows 
>> version under Wine. 
>>
>> Cheers, 
>>
>> Peter 
>>
>>
>> ------------------------------
>> *From:* MrJay <kj....@sympatico.ca <javascript:>>
>> *Sent:* Sunday, 15 September 2019 02:27
>> *To:* mnemosyne-proj-users
>> *Subject:* Re: [mnemosyne-proj-users] Mnemosyne will not launch -- 
>> Import error - QtWebEngineWidgets
>>
>>
>>
>> On Friday, 6 September 2019 06:44:23 UTC-4, Peter Bienstman wrote: 
>>>
>>> Hi,
>>>
>>>  
>>>
>>> Which version of Mnemosyne did Ubuntu install? If it’s 2.4, then it will 
>>> be too old to help with the dependencies of the new Mnemosyne.
>>>
>>
>> There was no Mnemosyne available in the Ubuntu "Software Center" 
>> listings. However version 2.4 installed from the command line.
>>  
>>
>>>  
>>>
>>> Newer versions of Ubuntu have a more up-to-date version of Mnemosyne, so 
>>> perhaps it’s worthwhile updating your system?
>>>
>>
>> My Ubuntu version is 18.04.3 LTS which is the latest version. (Please 
>> note I only use LTS versions(. The Mnemosyne version it installed is 2.4
>>
>>>  
>>>
>>> You can also try to install Ubuntu packages with the extra dependences 
>>> manually, like webenginewidgets, but that could be quite time consuming.
>>>
>>
>> I attempted to install webenginewidgets via...
>>     sudo apt-get install python3-pyqt5.qtwebengine
>> Reading state information... Done
>> RESPONSE:
>> python3-pyqt5.qtwebengine is already the newest version 
>> (5.10.1+dfsg-1ubuntu2).
>>
>> AND
>> sudo apt install qtwebengine5-dev
>> RESPONSE:
>> qtwebengine5-dev is already the newest version (5.9.5+dfsg-0ubuntu2)
>>
>> Again mnemosyne will not run via the GUI / Desktop
>> Using the Command line:
>>
>> *kevin@Frodo4-MSI:~$ mnemosyne*
>>
>> *An unexpected error has occurred. Please forward the following info to 
>> the developers:*
>>
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>> An unexpected error has occurred.
>> Please forward the following info to the developers:
>>
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>> kevin@Frodo4-MSI:~$ mnemosyne --version
>> Mnemosyne 2.4
>> ========
>>
>> FROM the QT Website: *" https://wiki.qt.io/QtWebEngine/How_to_Try 
>> <https://wiki.qt.io/QtWebEngine/How_to_Try> "*
>> I tried: 
>>
>> Installing dependencies on Ubuntu 
>>
>> sudo apt-get install bison build-essential gperf flex ruby python 
>> libasound2-dev libbz2-dev libcap-dev \libcups2-dev libdrm-dev 
>> libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev 
>> libudev-dev \libxtst-dev gyp ninja-build
>>
>> Again running mnemosyne from the command line....
>>
>>
>> *kevin@Frodo4-MSI:~$ mnemosyneAn unexpected error has occurred.Please 
>> forward the following info to the developers*:
>>
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some 
>> reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>> An unexpected error has occurred.
>> Please forward the following info to the developers:
>>
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some 
>> reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>>
>>  
>>
>> I'm really struggling here and hope you could provide some detailed 
>> instruction on how to properly install the Qtwebenginewidgets. manually 
>> if necessary, to get Mnemosyne working properly.
>> I now into my 3rd week of the current semester and hope I don't fall too 
>> far behind in using this awesome flash card tool.
>>
>> Again I thank you in advance for your expertise in this matter.
>>
>> Cheers
>> Kevin
>>
>>  
>>
>> *From:* mnemosyne...@googlegroups.com <javascript:> <
>> mnemosyne-...@googlegroups.com <javascript:>> *On Behalf Of *MrJay
>> *Sent:* 05 September 2019 22:44
>> *To:* mnemosyne-proj-users <mnemosyne-...@googlegroups.com <javascript:>>
>> *Subject:* Re: [mnemosyne-proj-users] Mnemosyne will not launch -- 
>> Import error - QtWebEngineWidgets
>>
>>  
>>
>> Greetings Peter,
>>
>> Pleased to meet you.
>>
>>  
>>
>> Following your suggestion I was able to install Mnemosyne via the package 
>> manager via:
>>
>> sudo apt install mnemosyne
>>
>>  
>>
>> However that was not without encountering errors which were eliminated 
>> when I remove the "...2.6.1 Python3 install" via:
>>
>> a)  sudo python3 setup.py install *--record files.txt*
>> b)  sudo rm -rf Mnemosyne-2.6.1-py3.6.eggudo xargs rm -rf < files.txt
>> c)  sudo rm -rf Mnemosyne-2.6.1-py3.6.egg   (From the 
>> */usr/local/lib/python3.6/dist-packages/Mnemosyne-2.6-py3.6.egg*/   
>> folder)
>>
>>  
>>
>> After which I got what appeared to be a clean install.
>>
>>  
>>
>> HOWEVER:
>>
>> Upon running Mnemosyne from the GUI Mnemosyne failed to launch.
>>
>> Upon running Mnemosyne from terminal I got back:
>>
>>  
>>
>> kevin@Frodo4-MSI:~$ mnemosyne
>> An unexpected error has occurred.
>>
>> *===========*
>>
>>
>> *Please forward the following info to the developers: *
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>> An unexpected error has occurred.
>> Please forward the following info to the developers:
>>
>> Traceback (innermost last):
>>   File "/usr/bin/mnemosyne", line 132, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>>
>> *===========*
>>
>> Again I call upon your invaluable expertise to help me resolve this 
>> install successfully.
>>
>> Thanks and
>>
>> Cheers
>>
>> Kevin
>>
>>  
>>
>> **********************
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>
>> On Tuesday, 3 September 2019 23:49:12 UTC-4, Peter Bienstman wrote:
>>
>> Hi,
>>
>> I would suggest you first try to install Mnemosyne from Ubuntu's package 
>> manager. Even if it's not the latest version, it will pull in all the 
>> dependencies, so that you'll have an easier time manually installing the 
>> latest version. 
>>
>> Cheers, 
>>
>> Peter 
>>
>>  
>>
>>  
>> ------------------------------
>>
>> *From:* MrJay <kj....@sympatico.ca>
>> *Sent:* Tuesday, 3 September 2019 21:15
>> *To:* mnemosyne-proj-users
>> *Subject:* [mnemosyne-proj-users] Mnemosyne will not launch -- Import 
>> error - QtWebEngineWidgets
>>
>>  
>>
>> Greetings,
>>
>>  
>>
>> After doing battle for many days installing the various components I 
>> finally got Mnemosyne to compile, only to have it NOT LAUNCH with the 
>> following errors (below).
>>
>>  
>>
>> *My system*" Ubuntu 18.03.3 LTS, (uname = Linux Frodo4-MSI 
>> 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 
>> x86_64 x86_64 GNU/Linux)
>>
>>  
>>
>> *Attempting to install:* Mnamosyne 2.6.1
>>
>>  
>>
>> *Error output =:*
>>
>>  
>>
>> *ke...@Frodo4-MSI:~/Downloads/Extracted3/Mnemosyne-2.6.1$ <javascript:>* 
>> mnemosyne
>> 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.6.1', 
>> 'mnemosyne')
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 658, in run_script
>>     self.require(requires)[0].run_script(script_name, ns)
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 1438, in run_script
>>     exec(code, namespace, namespace)
>>   File 
>> "/usr/local/lib/python3.6/dist-packages/Mnemosyne-2.6.1-py3.6.egg/EGG-INFO/scripts/mnemosyne",
>>  
>> line 145, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>>
>> 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.6.1', 
>> 'mnemosyne')
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 658, in run_script
>>     self.require(requires)[0].run_script(script_name, ns)
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 1438, in run_script
>>     exec(code, namespace, namespace)
>>   File 
>> "/usr/local/lib/python3.6/dist-packages/Mnemosyne-2.6.1-py3.6.egg/EGG-INFO/scripts/mnemosyne",
>>  
>> line 145, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>> 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.6.1', 
>> 'mnemosyne')
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 658, in run_script
>>     self.require(requires)[0].run_script(script_name, ns)
>>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
>> 1438, in run_script
>>     exec(code, namespace, namespace)
>>   File 
>> "/usr/local/lib/python3.6/dist-packages/Mnemosyne-2.6.1-py3.6.egg/EGG-INFO/scripts/mnemosyne",
>>  
>> line 145, in <module>
>>     from PyQt5 import QtWebEngineWidgets  # Needs to happen first for 
>> some reason.
>>  ImportError: cannot import name 'QtWebEngineWidgets'
>>
>>  
>>
>> Any assistance you can offer to get this package working would be greatly 
>> appreciated. 
>>
>> FYI I use Mnemosyne extensive in my college pursuits, which start again, 
>> tomorrow.
>>
>> Thanks for you help
>>
>> Kevin
>>
>>  =================
>>
>>  
>>
>> -- 
>> 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/b111adaa-42c5-432d-921f-0646384a7065%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/b111adaa-42c5-432d-921f-0646384a7065%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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mnemosyne-proj-users/546d8123-e477-49c6-9cf8-cf37110ab1c7%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/546d8123-e477-49c6-9cf8-cf37110ab1c7%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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mnemosyne-proj-users/b9948b5d-0f5c-4d2c-9a95-c531ab319e90%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/b9948b5d-0f5c-4d2c-9a95-c531ab319e90%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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mnemosyne-proj-users/e81dcba4-0368-4782-a62b-5b06698ec141%40owa.ugent.be
>>  
>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/e81dcba4-0368-4782-a62b-5b06698ec141%40owa.ugent.be?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/8445a0c3-ba46-4f76-83c9-2a2e2f0c428e%40googlegroups.com.

Reply via email to