Mnemosyne-2.4 install issue on Ubuntu 14.04 LTS

188 views
Skip to first unread message

jum...@gmail.com

unread,
Dec 9, 2016, 6:21:57 AM12/9/16
to mnemosyne-proj-users
Hi,

I am having difficulties upgrading to the latest version of Mnemosyne.

Upon running > sudo python3 setup.py install

I get >

Traceback (most recent call last):
File "setup.py", line 2, in <module>
from setuptools import setup, Command
ImportError: No module named 'setuptools'

I appear to have setuptools as shown by >

sudo apt-get install python3-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-setuptools is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 22 not to upgrade.

Not sure what I'm missing here, I'd appreciate any ideas.

Thanks,

Damian.

Peter Bienstman

unread,
Dec 9, 2016, 6:25:18 AM12/9/16
to mnemosyne-...@googlegroups.com
Hi,

This seems like an issue specific to your version of Ubuntu.

What happens if you upgrade setuptools outside of Ubuntu's packaging system:

sudo pip3 install --upgrade setuptools

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/5b864492-96f4-42c8-9591-0ce2b5aafef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jum...@gmail.com

unread,
Dec 10, 2016, 12:01:54 AM12/10/16
to mnemosyne-proj-users
Hi Peter,

Thanks for the quick reply.

I discovered I had pip for Python 2.7 and not Python 3. I rectified this successfully with;

sudo apt-get -y install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpython3-dev libpython3.4-dev python3-colorama python3-dev python3-distlib
python3-html5lib python3-wheel python3.4-dev
Suggested packages:
python3-genshi
The following NEW packages will be installed
libpython3-dev libpython3.4-dev python3-colorama python3-dev python3-distlib
python3-html5lib python3-pip python3-wheel python3.4-dev
0 to upgrade, 9 to newly install, 0 to remove and 18 not to upgrade.

and with;

sudo pip3 install --upgrade setuptools
Downloading/unpacking setuptools from https://pypi.python.org/packages/f3/5f/df3db5e01f268f53646f51f9b5063d6834a6744a0efdea4093bbcf86f83f/setuptools-30.3.0-py2.py3-none-any.whl#md5=f0b47405d391b1c744a28d1ef893f093
Downloading setuptools-30.3.0-py2.py3-none-any.whl (476kB): 476kB downloaded
Installing collected packages: setuptools
Found existing installation: setuptools 3.3
Not uninstalling setuptools at /usr/lib/python3/dist-packages, owned by OS
Successfully installed setuptools
Cleaning up...

Confirmed by;

sudo apt-get install python3-setuptools --upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-setuptools is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 18 not to upgrade.

and;

pip -V
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)

pip3 -V
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)


Alas, I am still getting this;

sudo python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from setuptools import setup, Command
ImportError: No module named 'setuptools'

Apologies, I'm a bit out of my depth here, any other ideas?

Thanks again,

Damian.

Peter Bienstman

unread,
Dec 10, 2016, 2:38:19 AM12/10/16
to mnemosyne-...@googlegroups.com
Hi,

This is not really a Mnemosyne issue, but there must be something wrong with your setuptools install...

If you start 'python3', and then type ' from setuptools import setup, Command', what happens?

Perhaps you have a different python interpreter in your path where setuptools is not installed, perhaps from some virtualenv?

Does 'which python3' give you the path you expect?

I'm also nearing the end of my line here, so if this doesn't work, perhaps it's best to ask help on a Ubuntu forum?

BTW, there have been reports of successful installs on later Ubuntu versions.

Good luck!

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of jum...@gmail.com
> Sent: 10 December 2016 06:02
> To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
> Subject: Re: [mnemosyne-proj-users] Mnemosyne-2.4 install issue on
> Ubuntu 14.04 LTS
>
> > 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/5b864492-
> 96f4-42c8-9591-0ce2b5aafef2%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/27015466-
> bf02-4736-a57c-e3c063afb271%40googlegroups.com.

jum...@gmail.com

unread,
Dec 19, 2016, 8:34:14 PM12/19/16
to mnemosyne-proj-users
Hi Peter,

I've made progress and have now been able to successfully install v2.4. However, when I execute it I get this error message and the app doesn't open.

libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[1219/194609:ERROR:browser_main_loop.cc(217)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on.
QIODevice::write (QProcess): device not open
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.4', 'mnemosyne')
File "/usr/local/lib/python3.5/site-packages/setuptools-32.1.2-py3.5.egg/pkg_resources/__init__.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python3.5/site-packages/setuptools-32.1.2-py3.5.egg/pkg_resources/__init__.py", line 1501, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/EGG-INFO/scripts/mnemosyne", line 229, in <module>
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/__init__.py", line 234, in initialise
self.main_widget().activate()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/pyqt_ui/main_wdgt.py", line 52, in activate
self.start_review()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/component.py", line 121, in start_review
self.review_controller().reset()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py", line 62, in reset
self.show_new_question()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py", line 123, in show_new_question
self.update_dialog()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py", line 200, in update_dialog
self.update_qa_area(redraw_all)
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py", line 237, in update_qa_area
w.clear_answer()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/pyqt_ui/review_wdgt.py", line 248, in clear_answer
self.update_stretch_factors()
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/pyqt_ui/review_wdgt.py", line 145, in update_stretch_factors
self.estimate_height(self.question_text)
File "/usr/local/lib/python3.5/site-packages/Mnemosyne-2.4-py3.5.egg/mnemosyne/pyqt_ui/review_wdgt.py", line 114, in estimate_height
from PIL import Image
ImportError: No module named 'PIL'

I have already installed:

sudo apt-get install python3-pil
sudo apt-get install python3-imaging

Got any more ideas?

Thanks,

Damian.

Peter Bienstman

unread,
Dec 20, 2016, 2:18:31 AM12/20/16
to mnemosyne-...@googlegroups.com
Hi,

Try 'sudo pip3 install pillow'

Cheers,

Peter
.

Damian

unread,
Dec 23, 2016, 12:06:02 AM12/23/16
to mnemosyne-...@googlegroups.com
Hi Peter,

Thanks for all your help. That did the trick and I was finally able to upgrade to 2.4. I will update my group post. 

Best regards, 

Damian.


--
You received this message because you are subscribed to a topic in the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mnemosyne-proj-users/hyxNS5a0exU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/600c79f1f28c4230983b4d7e8ce6fbce%40xmail102.UGent.be.

Damian

unread,
Dec 23, 2016, 7:30:26 AM12/23/16
to mnemosyne-...@googlegroups.com
Summary info for getting Mnemosyne 2.4 to work in Ubuntu 14.04 LTS

Python v3.5 is not currently available in the repos (using apt-get) for Ubuntu 14.04 LTS, you need to download and compile the source code from python.org. (You can check the current version in the repos prior to the installation of any package using apt-cache policy <package name>).

Before compiling the Python source code, install the following;

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils

Compile Python v3.5 and verify with python3 -V.

Install pip (a tool for installing and managing Python packages);

wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3

Check pip corresponds to your version of Python;

pip3 --version

Install setuptools with;

wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python3

Install PyQt5 with;

sudo pip3 install PyQt5

Install pillow with:

sudo pip3 install pillow

Installing the other dependencies was quite straightforward so I have not detailed them here.

Good luck!

Damian.


To unsubscribe from this group and all its topics, send an email to mnemosyne-proj-users+unsubscrib...@googlegroups.com.

To post to this group, send email to mnemosyne-proj-users@googlegroups.com.

Peter Bienstman

unread,
Dec 23, 2016, 7:35:45 AM12/23/16
to mnemosyne-...@googlegroups.com

Thanks for sharing this!

 

Peter

To unsubscribe from this group and all its topics, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@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.

Reply all
Reply to author
Forward
0 new messages