preheatedKD / python-tesseract

Automatically exported from code.google.com/p/python-tesseract
0 stars 0 forks source link

macos 10.9 install python-tesserac homebrew #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just do it from

How to compile python-tesseract for Homebrew(Mac Mountain Lion/Maverick)

but, when i exec the step, it error
python setup.py clean

it shows

os=darwin
Current Version : tesseract
~~~cv_pc~~~
{'extra_link_args': 
['/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_nonfree.dy
lib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_ts.a', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_videostab.d
ylib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_video.dylib
', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_features2d.
dylib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_stitching.d
ylib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_imgproc.dyl
ib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_photo.dylib
', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_highgui.dyl
ib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_calib3d.dyl
ib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_superres.dy
lib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_core.dylib'
, 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_legacy.dyli
b', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_ocl.dylib',

'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_objdetect.d
ylib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_gpu.dylib',

'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_flann.dylib
', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_contrib.dyl
ib', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/lib/libopencv_ml.dylib'],
 'include_dirs': 
['/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/include/opencv', 
'/Users/lee/Code/homebrew-master/Cellar/opencv/2.4.7.1/include']}
['extra_link_args', 'include_dirs']
add lib: opencv_nonfree
add lib: opencv_ts
add lib: opencv_videostab
add lib: opencv_video
add lib: opencv_features2d
add lib: opencv_stitching
add lib: opencv_imgproc
add lib: opencv_photo
add lib: opencv_highgui
add lib: opencv_calib3d
add lib: opencv_superres
add lib: opencv_core
add lib: opencv_legacy
add lib: opencv_ocl
add lib: opencv_objdetect
add lib: opencv_gpu
add lib: opencv_flann
add lib: opencv_contrib
add lib: opencv_ml
===========['stdc++', 'tesseract', 'lept', 'opencv_nonfree', 'opencv_ts', 
'opencv_videostab', 'opencv_video', 'opencv_features2d', 'opencv_stitching', 
'opencv_imgproc', 'opencv_photo', 'opencv_highgui', 'opencv_calib3d', 
'opencv_superres', 'opencv_core', 'opencv_legacy', 'opencv_ocl', 
'opencv_objdetect', 'opencv_gpu', 'opencv_flann', 'opencv_contrib', 
'opencv_ml']===========
['.']
Traceback (most recent call last):
  File "setup.py", line 251, in <module>
    swig_opts=["-c++", "-I"+inclpath('tesseract'),
TypeError: cannot concatenate 'str' and 'NoneType' objects

Original issue reported on code.google.com by avincr...@gmail.com on 11 Jan 2014 at 11:04

GoogleCodeExporter commented 8 years ago
And my homebrew is not in "/usr/local/",
i unzip it ~user/code/, and $ln -s /xx/code/homebrew/bin/brew 
/usr/local/bin/brew

so, someone could tell me how to continue?

Original comment by avincr...@gmail.com on 11 Jan 2014 at 11:12

GoogleCodeExporter commented 8 years ago
check whether the following address exists:['.', 
'/usr/local/include/tesseract', '/usr/local/include/leptonica', 
'/usr/local/include/opencv2', '/usr/local/include/opencv']

Original comment by FreeT...@gmail.com on 12 Jan 2014 at 3:57

GoogleCodeExporter commented 8 years ago

Original comment by FreeT...@gmail.com on 9 May 2014 at 7:50