CentOS Installation Error

164 views
Skip to first unread message

s.pur...@gmail.com

unread,
Jan 13, 2015, 4:11:41 PM1/13/15
to mnemosyne-...@googlegroups.com
Hi, I'm on

~]$ cat /proc/version
Linux version 3.10.0-123.13.2.el7.x86_64 (bui...@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Thu Dec 18 14:09:13 UTC 2014

and I get this error:

~]$ mnemosyne

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
File "/usr/bin/mnemosyne", line 4, in <module>
__import__('pkg_resources').run_script('Mnemosyne==2.3.1', 'mnemosyne')
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 696, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1621, in run_script
exec(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/Mnemosyne-2.3.1-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 191, in <module>
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 172, in initialise
self.register_components()
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 242, in register_components
exec("from %s import %s" % (module_name, class_name))
File "<string>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/mnemosyne/pyqt_ui/review_wdgt.py", line 5, in <module>
ImportError: cannot import name QtWebKit

Any thoughts? As far as I can tell I have downloaded and installed all the dependencies listed in the README, but I'm still learning here.

Peter Bienstman

unread,
Jan 14, 2015, 2:44:06 AM1/14/15
to mnemosyne-...@googlegroups.com
Hi,

Qt webkit is not installed. I'm not familiar with CentOS, so perhaps you can ask on a CentOS forum what package you need to install?

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-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/7140ab46-
> 456f-4905-b222-b98eb7c9d033%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

s.pur...@gmail.com

unread,
Jan 14, 2015, 12:12:53 PM1/14/15
to mnemosyne-...@googlegroups.com
Hello,
Ran this command:
~]$ sudo yum --nogpgcheck install PyQt4-web*

Seems to have resolved some dependencies and installed the missing components of QtWebKit.

I now get a different error message when attempting to start Mnemosyne:

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
File "/usr/bin/mnemosyne", line 4, in <module>
__import__('pkg_resources').run_script('Mnemosyne==2.3.1', 'mnemosyne')
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 696, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1621, in run_script
exec(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/Mnemosyne-2.3.1-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 191, in <module>
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 172, in initialise
self.register_components()
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 242, in register_components
exec("from %s import %s" % (module_name, class_name))
File "<string>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py", line 9, in <module>
ImportError: No module named backend_qt4agg

So, what to make of this?

Peter Bienstman

unread,
Jan 14, 2015, 12:16:43 PM1/14/15
to mnemosyne-...@googlegroups.com
That's related to matplotlib not being properly installed.

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of s.pur...@gmail.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-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/06969227-
> d6c9-43c4-8d51-59e3980bb5e6%40googlegroups.com.

s.pur...@gmail.com

unread,
Jan 14, 2015, 4:07:14 PM1/14/15
to mnemosyne-...@googlegroups.com
Thanks Peter,

After running this command Mnemosyne ran fine, the same as the Windows/Mac versions. Much appreciated!

~]$ sudo yum install python-matplotlib*

At some point I will put together the commands needed to install the dependencies for Mnemosyne from the CentOS repositories, rather than downloading the packages individually and installing manually. If I ever do that I will post here. (The install process for CentOS *should* be the same as for RedHat distros, as CentOS is a fork that removes RedHat enterprise trademark stuff and doesn't generally change a whole lot else.)

s.pur...@gmail.com

unread,
Jan 14, 2015, 7:57:42 PM1/14/15
to mnemosyne-...@googlegroups.com, s.pur...@gmail.com
Quick update, did a quick test from a virtual machine with a fresh install of CentOS 7:

From a fresh install of CentOS 7.0.1406 Server with GUI option
No-Latex install of Mnemosyne-2.3.1
]$ sudo yum update
]$ sudo yum groupinstall "Development tools"
]$ sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
]$ sudo yum install PyQt4*
]$ sudo yum install python-matplotlib*
]$ sudo curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo python -
]$ sudo curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | sudo python -
]$ sudo yum install python-webob*
]$ sudo yum install epel-release
]$ sudo yum --nogpgcheck install PyQt4-web*
]$ sudo pip install cherrypy
]$ sudo python setup.py install | echo WHILE IN DIRECTORY, SEE README
]$ mnemosyne

Well isn't that just awesome! Thanks for your help Peter.
Reply all
Reply to author
Forward
0 new messages