Skip to content
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

3.12安装的时候出现兼容性问题 #91

Open
fzmili opened this issue Nov 10, 2024 · 0 comments
Open

3.12安装的时候出现兼容性问题 #91

fzmili opened this issue Nov 10, 2024 · 0 comments

Comments

@fzmili
Copy link

fzmili commented Nov 10, 2024

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting gevent==20.12.1 (from -r requirement.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/98/d9/6811589dd5de85b3a911d547d43f43c5c8bdf4397ffdfbaefea7c373b7f6/gevent-20.12.1.tar.gz (5.9 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [152 lines of output]
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting setuptools>=40.8.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/12/282ee9bce8b58130cb762fbc9beabd531549952cac11fc56add11dcb7ea0/setuptools-75.3.0-py3-none-any.whl (1.3 MB)
Collecting wheel
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/92/81/65ae90d584a73ca976d8f1eb83e2f58447a4055a9fb3ae69b28721070bdf/wheel-0.45.0-py3-none-any.whl (72 kB)
Collecting Cython>=3.0a5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/92/46/d5e4ce602d7476a65b0a8cd47c8ffda9f819fa51cf76a33b4290a28547e1/Cython-3.1.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting cffi>=1.12.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479 kB)
Collecting greenlet<2.0,>=0.4.17
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/37/e54ce453b298e890f59dba3db32461579328a07d5b65e3eabf80f971c099/greenlet-1.1.3.post0.tar.gz (91 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pycparser (from cffi>=1.12.3)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py): started
Building wheel for greenlet (setup.py): finished with status 'error'
error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [122 lines of output]
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-cpython-312
        creating build/lib.linux-x86_64-cpython-312/greenlet
        copying src/greenlet/__init__.py -> build/lib.linux-x86_64-cpython-312/greenlet
        creating build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_leaks.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_gc.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_version.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_contextvars.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_greenlet.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_extension_interface.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_cpp.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_generator_nested.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_tracing.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/__init__.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_stack_saved.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_throw.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_weakref.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/test_generator.py -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        creating build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/__init__.py -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        running egg_info
        writing src/greenlet.egg-info/PKG-INFO
        writing dependency_links to src/greenlet.egg-info/dependency_links.txt
        writing requirements to src/greenlet.egg-info/requires.txt
        writing top-level names to src/greenlet.egg-info/top_level.txt
        reading manifest file 'src/greenlet.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        no previously-included directories found matching 'docs/_build'
        warning: no files found matching '*.py' under directory 'appveyor'
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
        warning: no previously-included files matching '*.pyd' found anywhere in distribution
        warning: no previously-included files matching '*.so' found anywhere in distribution
        warning: no previously-included files matching '.coverage' found anywhere in distribution
        adding license file 'LICENSE'
        adding license file 'LICENSE.PSF'
        adding license file 'AUTHORS'
        writing manifest file 'src/greenlet.egg-info/SOURCES.txt'
        copying src/greenlet/greenlet.c -> build/lib.linux-x86_64-cpython-312/greenlet
        copying src/greenlet/greenlet.h -> build/lib.linux-x86_64-cpython-312/greenlet
        copying src/greenlet/slp_platformselect.h -> build/lib.linux-x86_64-cpython-312/greenlet
        copying src/greenlet/tests/_test_extension.c -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.linux-x86_64-cpython-312/greenlet/tests
        copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_mips_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_s390_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x32_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        copying src/greenlet/platform/switch_x86_unix.h -> build/lib.linux-x86_64-cpython-312/greenlet/platform
        running build_ext
        building 'greenlet._greenlet' extension
        creating build/temp.linux-x86_64-cpython-312
        creating build/temp.linux-x86_64-cpython-312/src
        creating build/temp.linux-x86_64-cpython-312/src/greenlet
        gcc -pthread -B /home/mili/miniconda3/envs/base_t/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mili/miniconda3/envs/base_t/include -fPIC -O2 -isystem /home/mili/miniconda3/envs/base_t/include -fPIC -I/home/mili/miniconda3/envs/base_t/include/python3.12 -c src/greenlet/greenlet.c -o build/temp.linux-x86_64-cpython-312/src/greenlet/greenlet.o
        src/greenlet/greenlet.c: In function ‘g_switchstack’:
        src/greenlet/greenlet.c:531:45: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_limit’; did you mean ‘py_recursion_limit’?
          531 |         current->recursion_depth = (tstate->recursion_limit
              |                                             ^~~~~~~~~~~~~~~
              |                                             py_recursion_limit
        src/greenlet/greenlet.c:532:47: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
          532 |                                     - tstate->recursion_remaining);
              |                                               ^~~~~~~~~~~~~~~~~~~
              |                                               c_recursion_remaining
        src/greenlet/greenlet.c:560:55: error: ‘_PyCFrame’ has no member named ‘use_tracing’
          560 |         ts__g_switchstack_use_tracing = tstate->cframe->use_tracing;
              |                                                       ^~
        src/greenlet/greenlet.c:621:23: error: ‘_PyCFrame’ has no member named ‘use_tracing’
          621 |         tstate->cframe->use_tracing = ts__g_switchstack_use_tracing;
              |                       ^~
        src/greenlet/greenlet.c:624:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
          624 |         tstate->recursion_remaining = (tstate->recursion_limit
              |                 ^~~~~~~~~~~~~~~~~~~
              |                 c_recursion_remaining
        src/greenlet/greenlet.c:624:48: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_limit’; did you mean ‘py_recursion_limit’?
          624 |         tstate->recursion_remaining = (tstate->recursion_limit
              |                                                ^~~~~~~~~~~~~~~
              |                                                py_recursion_limit
        src/greenlet/greenlet.c: In function ‘g_calltrace’:
        src/greenlet/greenlet.c:105:51: error: ‘_PyCFrame’ has no member named ‘use_tracing’
          105 | #define TSTATE_USE_TRACING(tstate) (tstate->cframe->use_tracing)
              |                                                   ^~
        src/greenlet/greenlet.c:654:5: note: in expansion of macro ‘TSTATE_USE_TRACING’
          654 |     TSTATE_USE_TRACING(tstate) = 0;
              |     ^~~~~~~~~~~~~~~~~~
        src/greenlet/greenlet.c:105:51: error: ‘_PyCFrame’ has no member named ‘use_tracing’
          105 | #define TSTATE_USE_TRACING(tstate) (tstate->cframe->use_tracing)
              |                                                   ^~
        src/greenlet/greenlet.c:657:5: note: in expansion of macro ‘TSTATE_USE_TRACING’
          657 |     TSTATE_USE_TRACING(tstate) =
              |     ^~~~~~~~~~~~~~~~~~
        src/greenlet/greenlet.c: In function ‘g_initialstub’:
        src/greenlet/greenlet.c:903:51: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_limit’; did you mean ‘py_recursion_limit’?
          903 |     self->recursion_depth = (PyThreadState_GET()->recursion_limit
              |                                                   ^~~~~~~~~~~~~~~
              |                                                   py_recursion_limit
        src/greenlet/greenlet.c:904:53: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
          904 |                              - PyThreadState_GET()->recursion_remaining);
              |                                                     ^~~~~~~~~~~~~~~~~~~
              |                                                     c_recursion_remaining
        error: command '/usr/bin/gcc' failed with exit code 1
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for greenlet
    Running setup.py clean for greenlet
  Failed to build greenlet
  ERROR: Could not build wheels for greenlet, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

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

No branches or pull requests

1 participant