Skip to content

docker 有问题 #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Septrum101 opened this issue Mar 1, 2022 · 7 comments
Closed

docker 有问题 #144

Septrum101 opened this issue Mar 1, 2022 · 7 comments
Assignees
Labels

Comments

@Septrum101
Copy link

proxypool          | Traceback (most recent call last):
proxypool          |   File "run.py", line 1, in <module>
proxypool          |     from proxypool.scheduler import Scheduler
proxypool          |   File "/app/proxypool/scheduler.py", line 3, in <module>
proxypool          |     from proxypool.processors.server import app
proxypool          |   File "/app/proxypool/processors/server.py", line 1, in <module>
proxypool          |     from flask import Flask, g
proxypool          |   File "/root/.local/lib/python3.7/site-packages/flask/__init__.py", line 19, in <module>
proxypool          |     from . import json
proxypool          |   File "/root/.local/lib/python3.7/site-packages/flask/json/__init__.py", line 15, in <module>
proxypool          |     from itsdangerous import json as _json
proxypool          | ImportError: cannot import name 'json' from 'itsdangerous' (/root/.local/lib/python3.7/site-packages/itsdangerous/__init__.py)

应该是flask的版本问题。

@Ecalose
Copy link

Ecalose commented Mar 2, 2022

@LF502
Copy link

LF502 commented Mar 2, 2022

一样

@bigbigmyworld
Copy link

有解决方案了吗

@LF502
Copy link

LF502 commented Mar 3, 2022

requirements.txt 第二行前加上
itsdangerous==0.24
然后docker删除这个container重新docker-compose up以下
没学过docker但这么做确实有用

@Septrum101
Copy link
Author

requirements.txt 第二行前加上 itsdangerous==0.24 然后docker删除这个container重新docker-compose up以下 没学过docker但这么做确实有用

因为有这么一句

COPY requirements.txt .

@xwqsean
Copy link

xwqsean commented Mar 4, 2022

requirements.txt 第二行前加上 itsdangerous==0.24 然后docker删除这个container重新docker-compose up以下 没学过docker但这么做确实有用

因为有这么一句

COPY requirements.txt .

重新拉代码或镜像吧,bug已经被修复了

@Germey
Copy link
Member

Germey commented Mar 6, 2022

已经修复,感谢大家的提醒!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants