nickliqian / cnn_captcha

use cnn recognize captcha by tensorflow. 本项目针对字符型图片验证码,使用tensorflow实现卷积神经网络,进行验证码识别。
Apache License 2.0
2.76k stars 783 forks source link

dockfile无法构建 #199

Open lqszsd opened 2 years ago

lqszsd commented 2 years ago

Version 0.1

`# 基础镜像 FROM python:3.8.12-buster

维护者信息

MAINTAINER lq@.com

镜像操作命令

RUN apt-get install git && cd / && mkdir cnn && cd cnn RUN cd /cnn&& git clone https://github.com/nickliqian/cnn_captcha.git /cnn/cnn_captcha RUN ls /cnn RUN cd /cnn/cnn_captcha && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple some-package RUN python /cnn/cnn_captcha/verify_and_split_data.py RUN python /cnn/cnn_captcha/train_model.py RUN python /cnn/cnn_captcha/test_batch.py RUN python /cnn/cnn_captcha/webserver_recognize_api.py EXPOSE 6000 `

` ERROR: Command errored out with exit status 1:

8 192.7 command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pb63xubh/matplotlib_dc15b2e5cad54848a8436afce8bda650/setup.py'"'"'; file='"'"'/tmp/pip-install-pb63xubh/matplotlib_dc15b2e5cad54848a8436afce8bda650/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-qchyozfo

8 192.7 cwd: /tmp/pip-install-pb63xubh/matplotlib_dc15b2e5cad54848a8436afce8bda650/

8 192.7 Complete output (171 lines):

8 192.7 ============================================================================

8 192.7 Edit setup.cfg to change the build options

8 192.7

8 192.7 BUILDING MATPLOTLIB

8 192.7 matplotlib: yes [2.1.0]

8 192.7 python: yes [3.8.12 (default, Feb 8 2022, 05:29:52) [GCC

8 192.7 8.3.0]]

8 192.7 platform: yes [linux]

8 192.7

8 192.7 REQUIRED DEPENDENCIES AND EXTENSIONS

8 192.7 numpy: yes [not found. pip may install it below.]

8 192.7 six: yes [six was not found.pip will attempt to install

8 192.7 it after matplotlib.]

8 192.7 dateutil: yes [dateutil was not found. It is required for date

8 192.7 axis support. pip/easy_install may attempt to

8 192.7 install it after matplotlib.]

8 192.7 backports.functools_lru_cache: yes [Not required]

8 192.7 subprocess32: yes [Not required]

8 192.7 pytz: yes [pytz was not found. pip/easy_install may

8 192.7 attempt to install it after matplotlib.]

8 192.7 cycler: yes [cycler was not found. pip/easy_install may

8 192.7 attempt to install it after matplotlib.]

8 192.7 tornado: yes [tornado was not found. It is required for the

8 192.7 WebAgg backend. pip/easy_install may attempt to

8 192.7 install it after matplotlib.]

8 192.7 pyparsing: yes [pyparsing was not found. It is required for

8 192.7 mathtext support. pip/easy_install may attempt to

8 192.7 install it after matplotlib.]

8 192.7 libagg: yes [pkg-config information for 'libagg' could not

8 192.7 be found. Using local copy.]

8 192.7 freetype: yes [version unknown]

8 192.7 png: yes [version 1.6.36]

8 192.7 qhull: yes [pkg-config information for 'libqhull' could not

8 192.7 be found. Using local copy.]

8 192.7

8 192.7 OPTIONAL SUBPACKAGES

8 192.7 sample_data: yes [installing]

8 192.7 toolkits: yes [installing]

8 192.7 tests: no [skipping due to configuration]

8 192.7 toolkits_tests: no [skipping due to configuration]

8 192.7

8 192.7 OPTIONAL BACKEND EXTENSIONS

8 192.7 macosx: no [Mac OS-X only]

8 192.7 qt5agg: no [PySide2 not found; PyQt5 not found]

8 192.7 qt4agg: no [PySide not found; PyQt4 not found]

8 192.7 gtk3agg: no [Requires pygobject to be installed.]

8 192.7 ERROR: Exception:

8 192.7 Traceback (most recent call last):

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher

8 192.7 yield

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 519, in read

8 192.7 data = self._fp.read(amt) if not fp_closed else b""

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 62, in read

8 192.7 data = self.__fp.read(amt)

8 192.7 File "/usr/local/lib/python3.8/http/client.py", line 459, in read

8 192.7 n = self.readinto(b)

8 192.7 File "/usr/local/lib/python3.8/http/client.py", line 503, in readinto

8 192.7 n = self.fp.readinto(b)

8 192.7 File "/usr/local/lib/python3.8/socket.py", line 669, in readinto

8 192.7 return self._sock.recv_into(b)

8 192.7 File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into

8 192.7 return self.read(nbytes, buffer)

8 192.7 File "/usr/local/lib/python3.8/ssl.py", line 1099, in read

8 192.7 return self._sslobj.read(len, buffer)

8 192.7 socket.timeout: The read operation timed out

8 192.7

8 192.7 During handling of the above exception, another exception occurred:

8 192.7

8 192.7 Traceback (most recent call last):

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 173, in _main

8 192.7 status = self.run(options, args)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper

8 192.7 return func(self, options, args)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/wheel.py", line 140, in run

8 192.7 requirement_set = resolver.resolve(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve

8 192.7 result = self._result = resolver.resolve(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 472, in resolve

8 192.7 state = resolution.resolve(requirements, max_rounds=max_rounds)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 341, in resolve

8 192.7 self._add_to_criteria(self.state.criteria, r, parent=None)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria

8 192.7 if not criterion.candidates:

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool

8 192.7 return bool(self._sequence)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 140, in bool

8 192.7 return any(self)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 128, in

8 192.7 return (c for c in iterator if id(c) not in self._incompatible_ids)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 32, in _iter_built

8 192.7 candidate = func()

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 204, in _make_candidate_from_link

8 192.7 self._link_candidate_cache[link] = LinkCandidate(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 295, in init

8 192.7 super().init(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in init

8 192.7 self.dist = self._prepare()

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare

8 192.7 dist = self._prepare_distribution()

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 305, in _prepare_distribution

8 192.7 return self._factory.preparer.prepare_linked_requirement(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 508, in prepare_linked_requirement

8 192.7 return self._prepare_linked_requirement(req, parallel_builds)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 550, in _prepare_linked_requirement

8 192.7 local_file = unpack_url(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 239, in unpack_url

8 192.7 file = get_http_url(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 102, in get_http_url

8 192.7 from_path, content_type = download(link, temp_dir.path)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/network/download.py", line 145, in call

8 192.7 for chunk in chunks:

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks

8 192.7 for chunk in response.raw.stream(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 576, in stream

8 192.7 data = self.read(amt=amt, decode_content=decode_content)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 541, in read

8 192.7 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)

8 192.7 File "/usr/local/lib/python3.8/contextlib.py", line 131, in exit

8 192.7 self.gen.throw(type, value, traceback)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher

8 192.7 raise ReadTimeoutError(self._pool, None, "Read timed out.")

8 192.7 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

8 192.7 Traceback (most recent call last):

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/installer.py", line 75, in fetch_build_egg

8 192.7 subprocess.check_call(cmd)

8 192.7 File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call

8 192.7 raise CalledProcessError(retcode, cmd)

8 192.7 subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpn0dpe_ef', '--quiet', 'numpy>=1.7.1']' returned non-zero exit status 2.

8 192.7

8 192.7 The above exception was the direct cause of the following exception:

8 192.7

8 192.7 Traceback (most recent call last):

8 192.7 File "", line 1, in

8 192.7 File "/tmp/pip-install-pb63xubh/matplotlib_dc15b2e5cad54848a8436afce8bda650/setup.py", line 262, in

8 192.7 distrib = setup(

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/init.py", line 152, in setup

8 192.7 _install_setup_requires(attrs)

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/init.py", line 147, in _install_setup_requires

8 192.7 dist.fetch_build_eggs(dist.setup_requires)

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 785, in fetch_build_eggs

8 192.7 resolved_dists = pkg_resources.working_set.resolve(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 766, in resolve

8 192.7 dist = best[req.key] = env.best_match(

8 192.7 File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 1051, in best_match

8 192.7 return self.obtain(req, installer)

8 192.7 File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 1063, in obtain

8 192.7 return installer(requirement)

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 844, in fetch_build_egg

8 192.7 return fetch_build_egg(self, req)

8 192.7 File "/usr/local/lib/python3.8/site-packages/setuptools/installer.py", line 77, in fetch_build_egg

8 192.7 raise DistutilsError(str(e)) from e

8 192.7 distutils.errors.DistutilsError: Command '['/usr/local/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpn0dpe_ef', '--quiet', 'numpy>=1.7.1']' returned non-zero exit status 2.

8 192.7 gtk3cairo: no [Requires cairocffi or pycairo to be installed.]

8 192.7 gtkagg: no [Requires pygtk]

8 192.7 tkagg: yes [installing; run-time loading from Python Tcl /

8 192.7 Tk]

8 192.7 wxagg: no [requires wxPython]

8 192.7 gtk: no [Requires pygtk]

8 192.7 agg: yes [installing]

8 192.7 cairo: no [cairocffi or pycairo not found]

8 192.7 windowing: no [Microsoft Windows only]

8 192.7

8 192.7 OPTIONAL LATEX DEPENDENCIES

8 192.7 dvipng: no

8 192.7 ghostscript: no

8 192.7 latex: no

8 192.7 pdftops: no

8 192.7

8 192.7 OPTIONAL PACKAGE DATA

8 192.7 dlls: no [skipping due to configuration]

8 192.7

8 192.7 ----------------------------------------

8 192.7 WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/6c/90/cf10bb2020d2811da811a49601f6eafcda022c6ccd296fd05aba093dee96/matplotlib-2.1.0.tar.gz#sha256=4b5f16c9cefde553ea79975305dcaa67c8e13d927b6e55aa14b4a8d867e25387 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

8 192.7 ERROR: Could not find a version that satisfies the requirement matplotlib==2.1.0 (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0rc1, 3.1.0rc2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0rc1, 3.2.0rc3, 3.2.0, 3.2.1, 3.2.2, 3.3.0rc1, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0rc1, 3.4.0rc2, 3.4.0rc3, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.5.0b1, 3.5.0rc1, 3.5.0, 3.5.1)

8 192.7 ERROR: No matching distribution found for matplotlib==2.1.0

8 194.7 WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available.

8 194.7 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.


executor failed running [/bin/sh -c cd /cnn/cnn_captcha && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple some-package]: exit code: 1`