Hi there hoping to get some help on this problem that's suddenly been 
encountered with a recent EC2 docker deployment. It was before for some 
time until recently:

Can anyone shed some insight into what may be needed to fix this problem?

 Step 40 : RUN pip install --no-cache-dir --upgrade tesserocr

   ---> Running in 15808fd20b75

  Collecting tesserocr

    Downloading tesserocr-2.1.2.tar.gz (47kB)

      Complete output from command python setup.py egg_info:

      running egg_info

      creating pip-egg-info/tesserocr.egg-info

      writing pip-egg-info/tesserocr.egg-info/PKG-INFO

      writing top-level names to 
pip-egg-info/tesserocr.egg-info/top_level.txt

      writing dependency_links to 
pip-egg-info/tesserocr.egg-info/dependency_links.txt

      writing manifest file 'pip-egg-info/tesserocr.egg-info/SOURCES.txt'

      warning: manifest_maker: standard file '-c' not found

      

      Supporting tesseract v3.05.00dev

      Configs from pkg-config: {'libraries': ['lept', 'tesseract'], 
'cython_compile_time_env': {'TESSERACT_VERSION': 197888}, 'library_dirs': 
['/usr/local/lib'], 'include_dirs': ['/usr/local/include']}

      

      Error compiling Cython file:

      ------------------------------------------------------------

      ...

                  bool b

                  bool font_info

                  TessResultRenderer *temp

                  TessResultRenderer *renderer = NULL

      

              IF TESSERACT_VERSION >= 0x030401:

                                  ^

      ------------------------------------------------------------

      

      tesserocr.pyx:1862:29: Compile-time name 'TESSERACT_VERSION' not 
defined

      

      Compiling tesserocr.pyx because it changed.

      [1/1] Cythonizing tesserocr.pyx

      Traceback (most recent call last):

        File "<string>", line 1, in <module>

        File "/tmp/pip-build-6f5Dq4/tesserocr/setup.py", line 166, in 
<module>

          test_suite='tests'

        File "/usr/local/lib/python2.7/distutils/core.py", line 151, in 
setup

          dist.run_commands()

        File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in 
run_commands

          self.run_command(cmd)

        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in 
run_command

          cmd_obj.run()

        File 
"/usr/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", 
line 186, in run

          self.find_sources()

        File 
"/usr/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", 
line 209, in find_sources

          mm.run()

        File 
"/usr/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", 
line 293, in run

          self.add_defaults()

        File 
"/usr/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", 
line 322, in add_defaults

          sdist.add_defaults(self)

        File 
"/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 
132, in add_defaults

          build_ext = self.get_finalized_command('build_ext')

        File "/usr/local/lib/python2.7/distutils/cmd.py", line 312, in 
get_finalized_command

          cmd_obj.ensure_finalized()

        File "/usr/local/lib/python2.7/distutils/cmd.py", line 109, in 
ensure_finalized

          self.finalize_options()

        File 
"/usr/local/lib/python2.7/site-packages/Cython/Distutils/build_ext.py", 
line 19, in finalize_options

          self.distribution.ext_modules)

        File 
"/usr/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 
925, in cythonize

          cythonize_one(*args)

        File 
"/usr/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 
1047, in cythonize_one

          raise CompileError(None, pyx_file)

      Cython.Compiler.Errors.CompileError: tesserocr.pyx

      

      ----------------------------------------

  Command "python setup.py egg_info" failed with error code 1 in 
/tmp/pip-build-6f5Dq4/tesserocr/

  The command '/bin/sh -c pip install --no-cache-dir --upgrade tesserocr' 
returned a non-zero code: 1

  Failed to build Docker image aws_beanstalk/staging-app: or code 1 in 
/tmp/pip-build-6f5Dq4/tesserocr/

  The command '/bin/sh -c pip install --no-cache-dir --upgrade tesserocr' 
returned a non-zero code: 1. Check snapshot logs for details. 
(Executor::NonZeroExitStatus)


-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" 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].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/428c2517-152c-4b09-8b00-436b93050a47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to