Giter VIP home page Giter VIP logo

pytess's People

Watchers

 avatar

pytess's Issues

Can't import _tess when running tess-lines

After running 

  sudo python setup.py install (first fixing the includes), 

I attempted to run

  tess-lines alice.png

on the example file, but it died immediately claiming to be unable to import 
_tess

After poking around a bit, I discovered that 
/usr/local/lib/python2.7/dist-packages/_tess.so was missing world read & 
execute permissions.

Adding them with sudo chmod +rx _tess.so fixed things up so the import worked.


Original issue reported on code.google.com by tfmorris on 20 Nov 2012 at 4:44

Compilation fails to find apitypes.h on Ubuntu 12.04.1 LTS

setup.py specifies /usr/local/include and /usr/include/tesseract for includes, 
but with the latest tesseract built from SVN on my system by following the 
instructions in the tesseract wiki, the apitypes.h file actually ends up in 
/usr/local/include/tesseract, not /usr/include/tesseract.

Patching setup.py allowed the build to complete

diff -r b4c26aa2af8c setup.py
--- a/setup.py  Tue Nov 20 15:00:56 2012 +0100
+++ b/setup.py  Tue Nov 20 10:24:28 2012 -0500
@@ -9,7 +9,7 @@
 opts = [x for x in opt.split() if "-W" not in x]
 os.environ["OPT"] = " ".join(opts)

-include_dirs = ['/usr/local/include',"/usr/include/tesseract"]
+include_dirs = ['/usr/local/include',"/usr/local/include/tesseract"]
 swig_opts = ["-c++"] + ["-I" + d for d in include_dirs]
 swiglib = os.popen("swig -swiglib").read()[:-1]



Original issue reported on code.google.com by tfmorris on 20 Nov 2012 at 3:25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.