*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
<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
<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.


On 23 Dec 2016 4:06 PM, "Damian" <[email protected]> wrote:

> 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.
>
>
> On 20 Dec 2016 18:18, "Peter Bienstman" <[email protected]> wrote:
>
> Hi,
>
> Try 'sudo pip3 install pillow'
>
> Cheers,
>
> Peter
> >
> > 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_s
> > uid_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.
> .
>
> --
> 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/to
> pic/mnemosyne-proj-users/hyxNS5a0exU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected]
> .
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/mnemosyne-proj-users/600c79f1f28c4230983b4d7e8ce6fbce%
> 40xmail102.UGent.be.
> 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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CAChNkTVNcFyGsbiDomBU7O1wR0zn45LUcXc%3Dx%3DWTasGF-y7Qtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to