Unable to install ESRally

  Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
Building wheels for collected packages: yappi
  Building wheel for yappi (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [78 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-cpython-311
      copying yappi/yappi.py -> build/lib.macosx-10.9-universal2-cpython-311
      running build_ext
      building '_yappi' extension
      creating build/temp.macosx-10.9-universal2-cpython-311
      creating build/temp.macosx-10.9-universal2-cpython-311/yappi
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/darshanj/Documents/rally/env/include -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c yappi/_yappi.c -o build/temp.macosx-10.9-universal2-cpython-311/yappi/_yappi.o
      yappi/_yappi.c:220:18: error: incomplete definition of type 'struct _frame'
          return (frame->f_state == FRAME_SUSPENDED);
                  ~~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      yappi/_yappi.c:220:31: error: use of undeclared identifier 'FRAME_SUSPENDED'; did you mean 'IS_SUSPENDED'?
          return (frame->f_state == FRAME_SUSPENDED);
                                    ^~~~~~~~~~~~~~~
                                    IS_SUSPENDED
      yappi/_yappi.c:217:1: note: 'IS_SUSPENDED' declared here
      IS_SUSPENDED(PyFrameObject *frame)
      ^
      yappi/_yappi.c:232:19: error: incomplete definition of type 'struct _frame'
          result = frame->f_code->co_flags & CO_COROUTINE ||
                   ~~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      yappi/_yappi.c:233:14: error: incomplete definition of type 'struct _frame'
              frame->f_code->co_flags & CO_ITERABLE_COROUTINE;
              ~~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      yappi/_yappi.c:236:29: error: incomplete definition of type 'struct _frame'
          result = result || frame->f_code->co_flags & CO_ASYNC_GENERATOR;
                             ~~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      yappi/_yappi.c:642:16: error: incomplete definition of type 'struct _frame'
          cobj = fobj->f_code;
                 ~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      yappi/_yappi.c:663:72: error: no member named 'co_varnames' in 'struct PyCodeObject'; did you mean 'co_names'?
              const char *firstarg = PyStr_AS_CSTRING(PyTuple_GET_ITEM(cobj->co_varnames, 0));
                                                                             ^~~~~~~~~~~
                                                                             co_names
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/tupleobject.h:30:52: note: expanded from macro 'PyTuple_GET_ITEM'
      #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
                                                         ^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/tupleobject.h:18:59: note: expanded from macro '_PyTuple_CAST'
          (assert(PyTuple_Check(op)), _Py_CAST(PyTupleObject*, (op)))
                                                                ^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:24:38: note: expanded from macro '_Py_CAST'
      #define _Py_CAST(type, expr) ((type)(expr))
                                           ^
      yappi/_yappi.c:182:46: note: expanded from macro 'PyStr_AS_CSTRING'
      #define PyStr_AS_CSTRING(s) PyUnicode_AsUTF8(s)
                                                   ^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/code.h:103:21: note: 'co_names' declared here
      struct PyCodeObject _PyCode_DEF(1);
                          ^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/code.h:61:15: note: expanded from macro '_PyCode_DEF'
          PyObject *co_names;            /* list of strings (names used) */          \
                    ^
      yappi/_yappi.c:666:36: error: incomplete definition of type 'struct _frame'
                  PyObject* locals = fobj->f_locals;
                                     ~~~~^
      /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
      typedef struct _frame PyFrameObject;
                     ^
      8 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 yappi
  Running setup.py clean for yappi
Failed to build yappi
ERROR: Could not build wheels for yappi, which is required to install pyproject.toml-based projects

I'm getting the above error while installing ESRally. Any solution to overcome this.

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the entire output in text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

1 Like

Are you using Python 3.11? Rally 2.7.1 does not support Python 3.11, only the development version does. We're planning to release Rally 2.8.0 it early next week though which will include Python 3.11 support.

In the meantime, please use Python 3.10 instead if it's an option.

Oh ok.. yaa Im using python 3.11.1

Hello, Rally 2.8.0 was just released with Python 3.11 support: Rally 2.8.0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.