xray-code-snippets
xray-code-snippets copied to clipboard
Cannot run testrail2Xray.py due to dependencies import issue
trafficstars
Multiple errors when trying to install requirements. Looks like some of the dependencies are old and need updating.
(mainenv) victtsl: import_from_testrail/server$ pip install -r requirements.txt
Requirement already satisfied: aiofiles==0.6.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 1)) (0.6.0)
Collecting aiohttp==3.8.3 (from -r requirements.txt (line 2))
Using cached aiohttp-3.8.3.tar.gz (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: aiohttp-socks==0.7.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 3)) (0.7.1)
Requirement already satisfied: aiosignal==1.3.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 4)) (1.3.1)
Requirement already satisfied: anaconda==0.0.1.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 5)) (0.0.1.1)
Requirement already satisfied: async-timeout==4.0.2 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 6)) (4.0.2)
Requirement already satisfied: attrs==21.4.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 7)) (21.4.0)
Requirement already satisfied: beautifulsoup4==4.12.2 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 8)) (4.12.2)
Requirement already satisfied: behave2cucumber==1.0.3 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 9)) (1.0.3)
Requirement already satisfied: behave2cucumber-py3==1.0.4 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 10)) (1.0.4)
Requirement already satisfied: Brotli==1.0.9 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 11)) (1.0.9)
Requirement already satisfied: certifi==2022.12.7 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 12)) (2022.12.7)
Requirement already satisfied: charset-normalizer==2.0.6 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 13)) (2.0.6)
Requirement already satisfied: click==8.0.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 14)) (8.0.1)
Requirement already satisfied: colorama==0.4.6 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 15)) (0.4.6)
Requirement already satisfied: ConfigArgParse==1.5.2 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 16)) (1.5.2)
Requirement already satisfied: configparser==5.3.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 17)) (5.3.0)
Requirement already satisfied: discord==2.1.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 18)) (2.1.0)
Requirement already satisfied: discord.py==2.1.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 19)) (2.1.0)
Requirement already satisfied: distlib==0.3.4 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 20)) (0.3.4)
Requirement already satisfied: filelock==3.7.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 21)) (3.7.1)
Requirement already satisfied: Flask==2.0.1 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 22)) (2.0.1)
Requirement already satisfied: Flask-BasicAuth==0.2.0 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 23)) (0.2.0)
Requirement already satisfied: Flask-Cors==3.0.10 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 24)) (3.0.10)
Collecting frozenlist==1.3.3 (from -r requirements.txt (line 25))
Using cached frozenlist-1.3.3.tar.gz (66 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: future==0.18.3 in /Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/lib/python3.13/site-packages (from -r requirements.txt (line 26)) (0.18.3)
Collecting gevent==21.8.0 (from -r requirements.txt (line 27))
Using cached gevent-21.8.0.tar.gz (6.2 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [228 lines of output]
Collecting setuptools>=40.8.0
Using cached setuptools-80.8.0-py3-none-any.whl.metadata (6.6 kB)
Collecting wheel
Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
Collecting Cython>=3.0a9
Downloading cython-3.1.1-cp313-cp313-macosx_11_0_arm64.whl.metadata (3.5 kB)
Collecting cffi>=1.12.3
Using cached cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl.metadata (1.5 kB)
Collecting greenlet<2.0,>=0.4.17
Using cached greenlet-1.1.3.post0.tar.gz (91 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pycparser (from cffi>=1.12.3)
Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached setuptools-80.8.0-py3-none-any.whl (1.2 MB)
Using cached wheel-0.45.1-py3-none-any.whl (72 kB)
Downloading cython-3.1.1-cp313-cp313-macosx_11_0_arm64.whl (2.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 59.0 MB/s eta 0:00:00
Using cached cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl (178 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: greenlet
Building wheel for greenlet (pyproject.toml): started
Building wheel for greenlet (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for greenlet (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [190 lines of output]
/private/var/folders/xk/296sd82x1nl5n6cqs_hyf0600000gq/T/pip-build-env-fn8hvvo_/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.macosx-15.0-arm64-cpython-313/greenlet
copying src/greenlet/__init__.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet
creating build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/__init__.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
creating build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_version.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_weakref.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_gc.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_generator.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_throw.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_tracing.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_cpp.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_contextvars.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_greenlet.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_extension_interface.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/__init__.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_generator_nested.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_stack_saved.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/test_leaks.py -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
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.macosx-15.0-arm64-cpython-313/greenlet
copying src/greenlet/greenlet.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet
copying src/greenlet/slp_platformselect.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet
copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_mips_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_s390_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x32_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/platform/switch_x86_unix.h -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/platform
copying src/greenlet/tests/_test_extension.c -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.macosx-15.0-arm64-cpython-313/greenlet/tests
running build_ext
building 'greenlet._greenlet' extension
creating build/temp.macosx-15.0-arm64-cpython-313/src/greenlet
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -I/opt/homebrew/opt/node@20/include -I/Users/Victor.Tan/code/ext-training/xray-code-snippets/mainenv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c src/greenlet/greenlet.c -o build/temp.macosx-15.0-arm64-cpython-313/src/greenlet/greenlet.o
In file included from src/greenlet/greenlet.c:11:
In file included from src/greenlet/greenlet.h:20:
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_frame.h:8:4: error: "this header requires Py_BUILD_CORE define"
8 | # error "this header requires Py_BUILD_CORE define"
| ^
In file included from src/greenlet/greenlet.c:11:
In file included from src/greenlet/greenlet.h:20:
In file included from /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_frame.h:13:
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_code.h:8:4: error: "this header requires Py_BUILD_CORE define"
8 | # error "this header requires Py_BUILD_CORE define"
| ^
In file included from src/greenlet/greenlet.c:11:
In file included from src/greenlet/greenlet.h:20:
In file included from /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_frame.h:13:
In file included from /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_code.h:11:
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_lock.h:13:4: error: "this header requires Py_BUILD_CORE define"
13 | # error "this header requires Py_BUILD_CORE define"
| ^
In file included from src/greenlet/greenlet.c:11:
In file included from src/greenlet/greenlet.h:20:
In file included from /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_frame.h:13:
In file included from /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_code.h:12:
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/internal/pycore_backoff.h:9:4: error: "this header requires Py_BUILD_CORE define"
9 | # error "this header requires Py_BUILD_CORE define"
| ^
In file included from src/greenlet/greenlet.c:11:
src/greenlet/greenlet.h:57:5: error: unknown type name '_PyCFrame'
57 | _PyCFrame* cframe;
| ^
In file included from src/greenlet/greenlet.c:372:
In file included from src/greenlet/slp_platformselect.h:49:
src/greenlet/platform/switch_aarch64_gcc.h:62:51: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
62 | __asm__ volatile ("mov %0, #0" : "=r" (err));
| ^
src/greenlet/platform/switch_aarch64_gcc.h:62:35: note: use constraint modifier "w"
62 | __asm__ volatile ("mov %0, #0" : "=r" (err));
| ^~
| %w0
src/greenlet/greenlet.c:531:45: error: no member named 'recursion_limit' in 'struct _ts'; did you mean 'py_recursion_limit'?
531 | current->recursion_depth = (tstate->recursion_limit
| ^~~~~~~~~~~~~~~
| py_recursion_limit
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/pystate.h:113:9: note: 'py_recursion_limit' declared here
113 | int py_recursion_limit;
| ^
src/greenlet/greenlet.c:532:47: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
532 | - tstate->recursion_remaining);
| ^~~~~~~~~~~~~~~~~~~
| c_recursion_remaining
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/pystate.h:115:9: note: 'c_recursion_remaining' declared here
115 | int c_recursion_remaining;
| ^
src/greenlet/greenlet.c:559:35: error: no member named 'cframe' in 'struct _ts'
559 | current->cframe = tstate->cframe;
| ~~~~~~ ^
src/greenlet/greenlet.c:560:49: error: no member named 'cframe' in 'struct _ts'
560 | ts__g_switchstack_use_tracing = tstate->cframe->use_tracing;
| ~~~~~~ ^
src/greenlet/greenlet.c:562:42: error: no member named 'cframe' in 'struct _ts'
562 | current->current_frame = tstate->cframe->current_frame;
| ~~~~~~ ^
src/greenlet/greenlet.c:614:17: error: no member named 'cframe' in 'struct _ts'
614 | tstate->cframe = target->cframe;
| ~~~~~~ ^
src/greenlet/greenlet.c:621:17: error: no member named 'cframe' in 'struct _ts'
621 | tstate->cframe->use_tracing = ts__g_switchstack_use_tracing;
| ~~~~~~ ^
src/greenlet/greenlet.c:624:48: error: no member named 'recursion_limit' in 'struct _ts'; did you mean 'py_recursion_limit'?
624 | tstate->recursion_remaining = (tstate->recursion_limit
| ^~~~~~~~~~~~~~~
| py_recursion_limit
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/pystate.h:113:9: note: 'py_recursion_limit' declared here
113 | int py_recursion_limit;
| ^
src/greenlet/greenlet.c:624:17: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
624 | tstate->recursion_remaining = (tstate->recursion_limit
| ^~~~~~~~~~~~~~~~~~~
| c_recursion_remaining
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/pystate.h:115:9: note: 'c_recursion_remaining' declared here
115 | int c_recursion_remaining;
| ^
src/greenlet/greenlet.c:626:17: error: no member named 'cframe' in 'struct _ts'
626 | tstate->cframe->current_frame = target->current_frame;
| ~~~~~~ ^
src/greenlet/greenlet.c:654:5: error: no member named 'cframe' in 'struct _ts'
654 | TSTATE_USE_TRACING(tstate) = 0;
| ^ ~~~~~~
src/greenlet/greenlet.c:105:45: note: expanded from macro 'TSTATE_USE_TRACING'
105 | #define TSTATE_USE_TRACING(tstate) (tstate->cframe->use_tracing)
| ~~~~~~ ^
src/greenlet/greenlet.c:657:5: error: no member named 'cframe' in 'struct _ts'
657 | TSTATE_USE_TRACING(tstate) =
| ^ ~~~~~~
src/greenlet/greenlet.c:105:45: note: expanded from macro 'TSTATE_USE_TRACING'
105 | #define TSTATE_USE_TRACING(tstate) (tstate->cframe->use_tracing)
| ~~~~~~ ^
src/greenlet/greenlet.c:837:5: error: use of undeclared identifier '_PyCFrame'
837 | _PyCFrame trace_info;
| ^
src/greenlet/greenlet.c:881:5: error: use of undeclared identifier 'trace_info'
881 | trace_info = *PyThreadState_GET()->cframe;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
error: command '/usr/bin/clang' 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
Failed to build greenlet
ERROR: Failed to build installable wheels for some pyproject.toml based projects (greenlet)
[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.
note: This error originates from a subprocess, and is likely not a problem with pip.