lost on 3.6.1

38 views
Skip to first unread message

Matthew Brin

unread,
Dec 18, 2018, 3:22:01 PM12/18/18
to mnemosyne-proj-users
I tried to upgrade to 3.6.1 and followed the README as far as all the dependencies.  I am confused about Python versions, but I did that first.  All other dependencies seemed to install without much protest, but perhaps under my older python?  I could not get python3 to import well.

# python3 --version
Python 3.7.2rc1

is what I have.



Now revving up mnemosyne gets the following:

Warning: Could not import OpenGL. Might cause a black screen on some Linux distributions. Try installing python3-opengl in that case.
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/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 664, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1444, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.7/site-packages/Mnemosyne-2.6.1-py3.7.egg/EGG-INFO/scripts/mnemosyne", line 145, in <module>
    from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some reason.
 ModuleNotFoundError: No module named 'PyQt5'

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/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 664, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1444, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.7/site-packages/Mnemosyne-2.6.1-py3.7.egg/EGG-INFO/scripts/mnemosyne", line 145, in <module>
    from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some reason.
 ModuleNotFoundError: No module named 'PyQt5'
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/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 664, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1444, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.7/site-packages/Mnemosyne-2.6.1-py3.7.egg/EGG-INFO/scripts/mnemosyne", line 145, in <module>
    from PyQt5 import QtWebEngineWidgets  # Needs to happen first for some reason.
 ModuleNotFoundError: No module named 'PyQt5'


I am quite lost.

Peter Bienstman

unread,
Dec 19, 2018, 2:53:37 AM12/19/18
to mnemosyne-...@googlegroups.com

Hi,

 

It’s indeed very likely that you’ve installed these dependencies for Python2. Your distro will probably have two variants for these packages, one for Python2 and one for Python3, so double check which one you’ve installed.

 

Alternatively, you can also use Python’s own installation mechanism, e.g. ‘sudo pip3 install PyQt5’

 

Cheers,

 

Peter

--
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 post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/c012f420-6ccc-41e1-8a4a-bac4ce93e4cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Brin

unread,
Dec 19, 2018, 11:52:30 AM12/19/18
to mnemosyne-proj-users
I seem to have a problem that interferes with the fix you suggest.



# pip3 install PyQt5
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting PyQt5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
  Could not fetch URL https://pypi.org/simple/pyqt5/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyqt5/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement PyQt5 (from versions: )
No matching distribution found for PyQt5
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
To post to this group, send email to mnemosyne...@googlegroups.com.

Peter Bienstman

unread,
Dec 20, 2018, 3:48:34 AM12/20/18
to mnemosyne-...@googlegroups.com

Hi,

 

I’m afraid you’re better off asking on a forum specific for your distribution, as these issues have nothing to do with Mnemosyne itself anymore.

 

Most distributions have a prebuilt packages for Mnemosyne, so I suggest you try to install those first. Even if they are not the very latest version, they will pull in the required dependencies, which will make it easier to install the latest version from source.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.

--

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 post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/00e4b388-4d7d-45ac-8a50-53476585ea84%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages