JQ-Networks/UnifiedMessageRelay

docker 方案部署时报错

momo2366 opened this issue · 3 comments

制作ctb镜像时
Step 5/8 : RUN pipenv install -v
返回如下错误
File "/usr/local/bin/pipenv", line 11, in
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pipenv/cli.py", line 435, in install
selective_upgrade=selective_upgrade,
File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1943, in do_install
pypi_mirror=pypi_mirror,
File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1322, in do_init
pypi_mirror=pypi_mirror,
File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 813, in do_install_dependencies
cleanup_procs(procs, concurrent)
File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 718, in cleanup_procs
click.echo(crayons.blue(c.out or c.err))
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 117, in err
return self._pexpect_out
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 85, in _pexpect_out
result += self.subprocess.after
TypeError: must be str, not type

Z4HD commented

能否详细描述复现过程?

我在 CentOS 7 4.17.2-1.el7.elrepo.x86_64 Docker version 18.03.1-ce, build 9ee9f40 环境中无法复现。

软件环境:

OS/kernel:
Ubuntu 1604 4.16.0-041600-generic #201804012230 SMP Sun Apr 1 22:31:39 UTC 2018 x86_64

docker version:
Client:
Version: 18.06.0-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:11:02 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:09:05 2018
OS/Arch: linux/amd64
Experimental: false

复现步骤:

  1. git clone https://github.com/jqqqqqqqqqq/coolq-telegram-bot.git
  2. 修改sample.env 中 CQHTTP_ACCESS_TOKEN CQHTTP_SECRET COOLQ_ACCOUNT
    VNC_PASSWD 字段并重名为.env
  3. mkdir ~/coolq-data
  4. 修改bot_constant-sample.json 中 ACCESS_TOKEN SECRET HOST TOKEN QQ_BOT_ID FORWARD_LIST SERVER_PIC_URL PROXY_URL 字段,并mv 至 ~/coolq-data/bot_constant.json
  5. docker-compose up

结果:
build ctb镜像时执行RUN pipenv install -v 失败
TypeError: must be str, not type

Z4HD commented
Ubuntu 18.04   4.15.0-29-generic

Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:09:54 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:07:56 2018
  OS/Arch:          linux/amd64
  Experimental:     false

成功构建并能运行。

从您提供的错误信息来看,应该是 pipenv 在安装依赖时出现问题。但由于使用 master 分支 commit 4a6d43014d217130cae68c5778bac94ae4294357 仍无法复现问题,建议您执行 git pull 拉取提交后再行尝试。