Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deb packages depend on leptonica, not libleptonica #15

Closed
GoogleCodeExporter opened this issue May 29, 2015 · 8 comments
Closed

deb packages depend on leptonica, not libleptonica #15

GoogleCodeExporter opened this issue May 29, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

On a clean Ubuntu install, follow the steps here doesn't work:
http://code.google.com/p/python-tesseract/wiki/HowToInstallPythonTesseractDeb

the error is:
 tesseract-ocr depends on leptonica; however:
  Package leptonica is not installed.


One option to fix is using the nutznboltz ppa that provides leptonica, but not 
for 11.10 oneiric and also the leptonica in oneiric itself is 1.68 already.

Workaround:
sudo apt-get install libleptonica
sudo dpkg -i --ignore-depends=leptonica /tmp/tesseract*.deb 
/tmp/python-tesseract_0.7-1.1_amd64.deb

This works just fine. Please change the dependency on leptonica to libleptonica.

Original issue reported on code.google.com by sander.k...@gmail.com on 21 Feb 2012 at 1:40

@GoogleCodeExporter
Copy link
Author

This brings more problems than just installing.
APT says I have both python-tesseract and tesseract-ocr packages broken because 
the leptonica dependency, and even the system update wants to remove these 
packages because of it.
Running linux mint 12

Original comment by pimentel...@gmail.com on 9 Mar 2012 at 11:23

@GoogleCodeExporter
Copy link
Author

You're right actually, this is not a good solution. But it shows that the 
packages *could* easily depend on the stock libleptonica package and work.

What I ended up doing was patching the debs provided here to depend on 
libleptonica rather than leptonica.

To do that, run the following commands for each .deb file (replacing 
packagename below with the package name):

#extract package contents
dpkg-deb -x pkgname.deb pkgname;
#extract CONTROL file from deb
dpkg-deb --control pkgname.deb pkgname/DEBIAN;
#replace leptonica dependency with libleptonica
sed -i "s/leptonica/libleptonica (>= 1\.68)/g" pkgname/DEBIAN/control;
#rebuild package with correct dependencies
dpkg -b pkgname pkgname.deb;

that will give you nice deb packages depending on libleptonica rather than 
leptonica


Original comment by sander.k...@gmail.com on 9 Mar 2012 at 11:43

@GoogleCodeExporter
Copy link
Author

Works like a charm. Thanks a lot!

Original comment by pimentel...@gmail.com on 9 Mar 2012 at 3:44

@GoogleCodeExporter
Copy link
Author

Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:42

3 similar comments
@GoogleCodeExporter
Copy link
Author

Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:42

@GoogleCodeExporter
Copy link
Author

Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:42

@GoogleCodeExporter
Copy link
Author

Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:42

@GoogleCodeExporter
Copy link
Author

Tesseract-ocr is now included in the download list
http://code.google.com/p/python-tesseract/downloads/list

Original comment by FreeT...@gmail.com on 12 Apr 2012 at 3:42

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant