UFund-Me / Qbot

[🔥updating ...] AI 自动量化交易机器人(完全本地部署) AI-powered Quantitative Investment Research Platform. 📃 online docs: https://ufund-me.github.io/Qbot ✨ :news: qbot-mini: https://github.com/Charmve/iQuant
https://github.com/Charmve
MIT License
7.87k stars 1.1k forks source link

Many bugs when requirement installing #64

Open wudi1940 opened 1 year ago

wudi1940 commented 1 year ago

🐛 Bug Description

python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [28 lines of output] /usr/local/lib64/python3.9/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-43rjazef/thriftpy2_098466ab960645bcb88f3bcdffd1b7e4/thriftpy2/transport/cybase.pxd tree = Parsing.p_module(s, pxd, full_module_name)

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

      cdef int grow(self, int min_size):
          if min_size <= self.buf_size:
              return 0

          cdef int multiples = min_size / self.buf_size
                                        ^
  ------------------------------------------------------------

  thriftpy2/transport/cybase.pyx:90:38: Cannot assign type 'double' to 'int'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-43rjazef/thriftpy2_098466ab960645bcb88f3bcdffd1b7e4/setup.py", line 61, in <module>
      cythonize("thriftpy2/transport/cybase.pyx")
    File "/usr/local/lib64/python3.9/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib64/python3.9/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: thriftpy2/transport/cybase.pyx
  Compiling thriftpy2/transport/cybase.pyx because it changed.
  [1/1] Cythonizing thriftpy2/transport/cybase.pyx
  [end of output]

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information and paste them here directly.

github-actions[bot] commented 1 year ago

Hey @{user}! Welcome to the QBOT repo on Github.

Charmve commented 1 year ago

requirements 确实有些问题,已经修复 #commit https://github.com/UFund-Me/Qbot/commit/9ea335fa4839ba738e802564c783585cf6fb678a