LIOS On Ubuntu 14.04

Linux-Intelligent-Ocr-Solution (LIOS)
Easy-OCR solution and Tesseract trainer for GNU/Linux
Download link: https://sourceforge.net/projects/lios
Currently I got the package (.deb) is version 2.5 but I got some bugs

So I tried to install the newest version (version 3) from the source in https://github.com/Nalin-x-Linux/lios-3:

  1. Clone the repository

     
  2. Before install this python package, it’d be much better to use virtualenv to do that because we’ll install some packages. I already install virtualenv and use python 3 there. Read the tutorial http://myprojects.advchaweb.com/index.php/2016/08/24/my-ubuntu-14-04-and-apps-installation-error-and-solution/. Create a new virtualenv ‘lios’

    NOTE: if the virtualenv ‘lios’ already exists, we can go into it via ‘workon lios’ command!
    check python version

     
  3. Go to the local ‘lios-3’ directory
  4. Install

     
  5. Run the program ‘lios’ BUT I GOT AN ERROR

    Solution: Install ‘gi’ module via pip

    Run the program again but another error:

    Solution: This error occured because in python 3, the ‘print’ must be followed by parentheses! like print(‘Hello’) NOT print ‘Hello’. So modify the file in ‘/home/teddy/.virtualenvs/lios/lib/python3.4/site-packages/gi/__init__.py’ like this

    Run the program again, another error:

    Solution: This problem really made me headache. I installed pacman (NO.THIS IS FOR ARCHLINUX. REMOVE IT IN No package for ‘gi.repository’ but this link http://stackoverflow.com/questions/31324430/installing-pygobject-via-pip-in-virtualenv?rq=1 gave me a way to solve this problem. I see in ‘/usr/lib/python3/dist-packages/gi/’ directory, there is a directory ‘_gobject’ that I think I can use it so I just ‘symlink’ the dir to ‘lios’ virtual env like this:

    NOTE: I need to rename the old ‘gi’ directory I installed before so the symlink can works.
    DO THE SAME FOR THE OTHERS MODULES ‘enchant’ and ‘speechd’ LIKE THIS:

    RUN AGAIN AND THE GUI IS APPEARED BUT FOLLOWED WITH MANY ERRORS AND THE VERSION DONT CHANGE (STILL VERSION 2.0)!!! –>DON’T USE IT BECAUSE IT CAN’T BE CLOSED!!!!

    I HAVE TO KILL THE TERMINAL MANUALLY!!!
    OK. THIS PROBLEM ONLY IF I RUN ‘LIOS’ FROM VIRTUALENV. BUT I RUN IT LIKE USUAL, IT’D BE NO PROBLEM!

Leave a Reply

Your email address will not be published. Required fields are marked *