pinkfloyded / video-ocr Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
tesserocr cannot specify language
I have Tesseract and Tesserocr installed an working on my Windows 11 machine.
I have been unable to install video-ocr using the either the .whl or the .tar.gz source.
Suggestions?
C:\Users\samsen\Projects\ToolsLib\Tesseract\video-ocr-0.0.2>c:\users\samsen\python\anaconda3\python.exe setup.py install
running install
c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
running egg_info
writing video_ocr.egg-info\PKG-INFO
writing dependency_links to video_ocr.egg-info\dependency_links.txt
writing entry points to video_ocr.egg-info\entry_points.txt
writing requirements to video_ocr.egg-info\requires.txt
writing top-level names to video_ocr.egg-info\top_level.txt
reading manifest file 'video_ocr.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'video_ocr.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
copying video_ocr.py -> build\lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
copying build\lib\video_ocr.py -> build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\video_ocr.py to video_ocr.cpython-311.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying video_ocr.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\video_ocr-0.0.2-py3.11.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing video_ocr-0.0.2-py3.11.egg
Copying video_ocr-0.0.2-py3.11.egg to c:\users\samsen\python\anaconda3\lib\site-packages
Adding video-ocr 0.0.2 to easy-install.pth file
Installing video-ocr-script.py script to c:\users\samsen\python\anaconda3\Scripts
Installing video-ocr.exe script to c:\users\samsen\python\anaconda3\Scripts
Installed c:\users\samsen\python\anaconda3\lib\site-packages\video_ocr-0.0.2-py3.11.egg
Processing dependencies for video-ocr==0.0.2
Searching for Pillow~=9.0.1
Reading https://pypi.org/simple/Pillow/
Downloading https://files.pythonhosted.org/packages/03/a3/f61a9a7ff7969cdef2a6e0383a346eb327495d20d25a2de5a088dbb543a6/Pillow-9.0.1.tar.gz#sha256=6c8bc8238a7dfdaf7a75f5ec5a663f4173f8c367e5a39f87e720495e1eed75fa
Best match: Pillow 9.0.1
Processing Pillow-9.0.1.tar.gz
Writing C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.cfg
Running Pillow-9.0.1\setup.py -q bdist_egg --dist-dir C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\egg-dist-tmp-0jqqt2_v
warning: no files found matching '.c'
warning: no files found matching '.h'
warning: no files found matching '.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
no previously-included directories found matching '.ci'
c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.py", line 989, in
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_init_.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\dist.py", line 968, in run_command
super().run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\dist.py", line 968, in run_command
super().run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\command\install_lib.py", line 110, in build
self.run_command('build_ext')
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\dist.py", line 968, in run_command
super().run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\build_ext.py", line 91, in run
_build_ext.run(self)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 359, in run
self.build_extensions()
File "C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.py", line 804, in build_extensions
RequiredDependencyException: zlib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 157, in save_modules
yield saved
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
yield
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 260, in run_setup
_execfile(setup_script, ns)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.py", line 1009, in
RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\samsen\Projects\ToolsLib\Tesseract\video-ocr-0.0.2\setup.py", line 6, in
setuptools.setup(
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_init_.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\dist.py", line 968, in run_command
super().run_command(command)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\install.py", line 87, in run
self.do_egg_install()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\install.py", line 148, in do_egg_install
cmd.run(show_deprecation=False)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 437, in run
self.easy_install(spec, not self.no_deps)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 686, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 736, in install_item
self.process_distribution(spec, dist, deps)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 785, in process_distribution
distros = WorkingSet([]).resolve(
^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\pkg_resources_init_.py", line 787, in resolve
dist = self.resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\pkg_resources_init.py", line 823, in resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\pkg_resources_init.py", line 1093, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\pkg_resources_init_.py", line 1104, in obtain
return installer(requirement) if installer else None
^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 709, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 734, in install_item
dists = self.install_eggs(spec, download, tmpdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 931, in install_eggs
return self.build_and_install(setup_script, setup_base)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 1203, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\command\easy_install.py", line 1189, in run_setup
run_setup(setup_script, args)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
with setup_context(setup_dir):
File "c:\users\samsen\python\anaconda3\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 191, in setup_context
with save_modules():
File "c:\users\samsen\python\anaconda3\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 170, in save_modules
saved_exc.resume()
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 144, in resume
raise exc.with_traceback(self._tb)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 157, in save_modules
yield saved
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
yield
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 260, in run_setup
_execfile(setup_script, ns)
File "c:\users\samsen\python\anaconda3\Lib\site-packages\setuptools\sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.py", line 1009, in
setuptools.sandbox.UnpickleableException: RequiredDependencyException('\n\nThe headers or library files could not be found for zlib,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n https://pillow.readthedocs.io/en/latest/installation.html\n\n')
C:\Users\samsen\AppData\Local\Temp\easy_install-364lene1\Pillow-9.0.1\setup.py:45: RuntimeWarning: Pillow 9.0.1 does not support Python 3.11 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.
C:\Users\samsen\Projects\ToolsLib\Tesseract\video-ocr-0.0.2>pip install "C:\Users\samsen\Projects\ToolsLib\Tesseract\video_ocr-0.0.2-py3-none-any.whl"
DEPRECATION: Loading egg at c:\users\samsen\python\anaconda3\lib\site-packages\video_ocr-0.0.2-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
Processing c:\users\samsen\projects\toolslib\tesseract\video_ocr-0.0.2-py3-none-any.whl
Collecting tesserocr~=2.5.2 (from video-ocr==0.0.2)
Using cached tesserocr-2.5.2.tar.gz (57 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
Failed to extract tesseract version from executable: [WinError 2] The system cannot find the file specified
Supporting tesseract v3.04.00
Tesseract major version 3
Traceback (most recent call last):
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 243, in get_build_args
build_args = package_config()
^^^^^^^^^^^^^^^^
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 99, in package_config
p = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "C:\Users\samsen\Python\Anaconda3\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\samsen\Python\Anaconda3\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 327, in <module>
ext_modules=[make_extension()],
^^^^^^^^^^^^^^^^
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 260, in make_extension
build_args = get_build_args()
^^^^^^^^^^^^^^^^
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 252, in get_build_args
build_args = get_tesseract_version()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samsen\AppData\Local\Temp\pip-install-0wxp50s6\tesserocr_225aef86934e423d86c75fbe12646e35\setup.py", line 216, in get_tesseract_version
raise RuntimeError(error)
RuntimeError: Tesseract library not found in LIBPATH: []
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
C:\Users\samsen\Projects\ToolsLib\Tesseract\video-ocr-0.0.2>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.