Skip to content
New issue

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

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

Already on GitHub? # to your account

requirements.txt modified #187

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

MGMCN
Copy link
Contributor

@MGMCN MGMCN commented Feb 27, 2023

当我试图调用docker-compose -f build.yaml up时候我先得到了一个错误->

Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cdef load_traceback
      cdef Waiter
      cdef wait
      cdef iwait
      cdef reraise
      cpdef GEVENT_CONFIG
            ^
      ------------------------------------------------------------
      
      src/gevent/_gevent_cgreenlet.pxd:182:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
      Compiling src/gevent/greenlet.py because it changed.

然后我去gevent的github仓库查看issue,发现将gevent设置为>=21.8.0,<22.0.0即可,于是我修改为了gevent>=21.8.0,<22.0.0。
这时我又跑了docker-compose指令得到了新的错误

The conflict is caused by:
    gevent 21.8.0 depends on greenlet<2.0 and >=1.1.0; platform_python_implementation == "CPython"
    meinheld 1.0.0 depends on greenlet<0.5 and >=0.4.5

于是我移除了meinheld这个下载选项,因为我发现meinheld已经很长时间没更新了,并且对greenlet的支持版本很低。但是我不知道我这样移除了是否会影响代码本身什么功能?
如果有什么错误操作希望您能指正!(还是新手正在学习中,如有错误请见谅。)
期待您的回复!

@Germey
Copy link
Member

Germey commented Mar 1, 2023

多谢贡献,的确这个meinheld已经很长时间没更新了,您的修改我觉得不会带来什么问题,也能修复其中问题。merge 了~

@Germey Germey merged commit 0fd5e6c into Python3WebSpider:master Mar 1, 2023
@MGMCN
Copy link
Contributor Author

MGMCN commented Mar 1, 2023

Thank you!

@MGMCN MGMCN deleted the dependencies_fix branch March 3, 2023 01:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants