SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
500 stars 132 forks source link

Unable to pip install pyrfc on linux #331

Closed spacca84 closed 11 months ago

spacca84 commented 1 year ago

Describe the bug

Unable to install pyrfc even though SAP NW SDK is working.

To Reproduce

root@devserver ~]# pip install pyrfc
Collecting pyrfc
  Using cached pyrfc-2.8.2.tar.gz (284 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpq93o49lh
       cwd: /tmp/pip-install-5u3v9fjy/pyrfc_ab940dbb671c4636b8d19c1a534042df
  Complete output (124 lines):
  750 Patch Level 12
  /tmp/pip-build-env-qqjip9p7/overlay/lib64/python3.6/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-5u3v9fjy/pyrfc_ab940dbb671c4636b8d19c1a534042df/src/pyrfc/_cyrfc.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1898:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CHECK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1899:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_COMMIT_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1900:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_ROLLBACK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1901:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CONFIRM_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                              Server.__onGetStateFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1902:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *, RFC_UNIT_STATE *) except * nogil' to 'RFC_ON_GET_UNIT_STATE'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1956:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1956:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  pyrfc version 2.8.2
  Compiling src/pyrfc/_cyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_cyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-qqjip9p7/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-qqjip9p7/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-qqjip9p7/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 236, in <module>
      if BUILD_CYTHON
    File "/tmp/pip-build-env-qqjip9p7/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-qqjip9p7/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_cyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c2/3f/282b01c8a76da8610b76209ffd825ce999797b7aef2974acbb55ad43ab1d/pyrfc-2.8.2.tar.gz#sha256=6877afd984dce907e47dfd5bee01aacab31148bf76ffebcddcafd5ec111e5141 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpq93o49lh Check the logs for full command output.
  Using cached pyrfc-2.8.1.tar.gz (301 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... -^canceled
ERROR: Operation cancelled by user
[root@devserver ~]# pip install pyrfc
Collecting pyrfc
  Using cached pyrfc-2.8.2.tar.gz (284 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpkp2gmesg
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_e173988c840647b794d2ae125c93379e
  Complete output (124 lines):
  750 Patch Level 12
  /tmp/pip-build-env-llz43s8f/overlay/lib64/python3.6/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-b2wtiye4/pyrfc_e173988c840647b794d2ae125c93379e/src/pyrfc/_cyrfc.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1898:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CHECK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1899:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_COMMIT_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1900:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_ROLLBACK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1901:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CONFIRM_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                              Server.__onGetStateFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1902:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *, RFC_UNIT_STATE *) except * nogil' to 'RFC_ON_GET_UNIT_STATE'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1956:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1956:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  pyrfc version 2.8.2
  Compiling src/pyrfc/_cyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_cyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-llz43s8f/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-llz43s8f/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-llz43s8f/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 236, in <module>
      if BUILD_CYTHON
    File "/tmp/pip-build-env-llz43s8f/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-llz43s8f/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_cyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c2/3f/282b01c8a76da8610b76209ffd825ce999797b7aef2974acbb55ad43ab1d/pyrfc-2.8.2.tar.gz#sha256=6877afd984dce907e47dfd5bee01aacab31148bf76ffebcddcafd5ec111e5141 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpkp2gmesg Check the logs for full command output.
  Using cached pyrfc-2.8.1.tar.gz (301 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpdygqdm5g
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_85501a80da484b01a3a99118755aba82
  Complete output (122 lines):
  750 Patch Level 12

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:418:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CHECK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          ucSysId = fillString(sysId) if sysId is not None else NULL
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:419:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_COMMIT_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:420:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_ROLLBACK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef RFC_RC rc = RfcInstallBgRfcHandlers(
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:421:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CONFIRM_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
                              ucSysId,
                              Server.__onCheckFunction,
                              Server.__onCommitFunction,
                              Server.__onRollbackFunction,
                              Server.__onConfirmFunction,
                              Server.__onGetStateFunction,
                                    ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:422:34: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *, RFC_UNIT_STATE *) except * nogil' to 'RFC_ON_GET_UNIT_STATE'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:476:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/server.pyx:476:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  pyrfc version 2.8.1
  Compiling src/pyrfc/_cyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_cyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-tiedhm77/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-tiedhm77/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-tiedhm77/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 236, in <module>
      if BUILD_CYTHON
    File "/tmp/pip-build-env-tiedhm77/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-tiedhm77/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_cyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/74/eb/6e8e2b6b37d49bbab5fb06569b8fba2c80941529586d2934267471a89c58/pyrfc-2.8.1.tar.gz#sha256=ea7e09d6949cbba8949b8051db90d972734bd354794ce7947484427d1b3c348d (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpdygqdm5g Check the logs for full command output.
  Using cached pyrfc-2.8.0.tar.gz (301 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpbp8mvtae
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_af48974dc258420c902ac7cd393d8f45
  Complete output (16 lines):
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-7658wu94/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-7658wu94/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-7658wu94/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 10, in <module>
      from src.pyrfc import __version__
  ModuleNotFoundError: No module named 'src'
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/58/29/6e43529abab2f8385ec70756a336a8803cf1dd51774e29ff4a187000a5df/pyrfc-2.8.0.tar.gz#sha256=2397f22ecb4771e2ae263c348b06dadff7f786290eb0586c997391e5025faa38 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpbp8mvtae Check the logs for full command output.
  Using cached pyrfc-2.7.2.tar.gz (294 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcid6gzsh
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_3cedb7cddc2c45118e2cd325d3f099d7
  Complete output (121 lines):
  750 Patch Level 12

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.install_bgrfc_handlers(sysId)

      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId)
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers (ucSysId, Server.__onCheckFunction, Server.__onCommitFunction, Server.__onRollbackFunction, Server.__onConfirmFunction, Server.__onGetStateFunction, &errorInfo)
                                                                   ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1710:65: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CHECK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.install_bgrfc_handlers(sysId)

      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId)
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers (ucSysId, Server.__onCheckFunction, Server.__onCommitFunction, Server.__onRollbackFunction, Server.__onConfirmFunction, Server.__onGetStateFunction, &errorInfo)
                                                                                             ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1710:91: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_COMMIT_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.install_bgrfc_handlers(sysId)

      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId)
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers (ucSysId, Server.__onCheckFunction, Server.__onCommitFunction, Server.__onRollbackFunction, Server.__onConfirmFunction, Server.__onGetStateFunction, &errorInfo)
                                                                                                                        ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1710:118: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_ROLLBACK_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.install_bgrfc_handlers(sysId)

      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId)
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers (ucSysId, Server.__onCheckFunction, Server.__onCommitFunction, Server.__onRollbackFunction, Server.__onConfirmFunction, Server.__onGetStateFunction, &errorInfo)
                                                                                                                                                     ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1710:147: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *) except * nogil' to 'RFC_ON_CONFIRM_UNIT'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.install_bgrfc_handlers(sysId)

      def install_bgrfc_handlers(self, sysId):
          ucSysId = fillString(sysId)
          cdef RFC_ERROR_INFO errorInfo
          cdef RFC_RC rc = RfcInstallBgRfcHandlers (ucSysId, Server.__onCheckFunction, Server.__onCommitFunction, Server.__onRollbackFunction, Server.__onConfirmFunction, Server.__onGetStateFunction, &errorInfo)
                                                                                                                                                                                 ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1710:175: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, const RFC_UNIT_IDENTIFIER *, RFC_UNIT_STATE *) except * nogil' to 'RFC_ON_GET_UNIT_STATE'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1762:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_cyrfc.pyx:1762:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Compiling src/pyrfc/_cyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_cyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-rim_njj9/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-rim_njj9/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-rim_njj9/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 229, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True) if BUILD_CYTHON else [PYRFC_EXT],  # type: ignore
    File "/tmp/pip-build-env-rim_njj9/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-rim_njj9/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_cyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/11/ad/bcaee5c976ef3d80947de9ee64907a73bcf8f38874882b9a6f2d2261fda1/pyrfc-2.7.2.tar.gz#sha256=a57129366ba1c60bc0f991ca9f97289375e8fc3cc59c859d2eed0075d69af069 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcid6gzsh Check the logs for full command output.
  Using cached pyrfc-2.7.1.tar.gz (262 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpnjnn7i8d
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_48ffa0de6e70410082ba38f9eb89394b
  Complete output (51 lines):
  750 Patch Level 12

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1560:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          :raises: :exc:`~pyrfc.RFCError` or a subclass
                   thereof if the server processing fails.
          """
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1560:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-97hvjhq2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-97hvjhq2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-97hvjhq2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 228, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True) if BUILD_CYTHON else [PYRFC_EXT],
    File "/tmp/pip-build-env-97hvjhq2/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-97hvjhq2/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/90/e6/4766ab8b362f91c57d8369930aa42ec845e5022b3d9ef69df9af215bc72f/pyrfc-2.7.1.tar.gz#sha256=f032ea2783d6973c0e5c6461fb452fa490d12386d2faed1934300534a50ab59a (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpnjnn7i8d Check the logs for full command output.
  Using cached pyrfc-2.7.0.tar.gz (259 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpsubq852p
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_8dc2f61587f8458e9ab28defc8e7f01f
  Complete output (51 lines):
  strings: '/usr/sap/nwrfcsdk/lib/libsapnwrfc.dylib': No such file

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1516:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1516:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-qbgoj50a/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-qbgoj50a/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-qbgoj50a/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 228, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True) if BUILD_CYTHON else [PYRFC_EXT],
    File "/tmp/pip-build-env-qbgoj50a/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-qbgoj50a/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a5/72/a68d8c6b4311540e870e42492ee0b3c1953692684a1907639fe9ee59cd78/pyrfc-2.7.0.tar.gz#sha256=c740afb117cbf2756d953dbbb438b72ecfda52a9cde1a532e7fcf1a2ae1d089e (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpsubq852p Check the logs for full command output.
  Using cached pyrfc-2.5.1.tar.gz (262 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpr0dv8uhy
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_4443ec54694c46ae808fffaef52614c6
  Complete output (51 lines):
  750 Patch Level 12

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1526:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1526:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-f_5t10js/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-f_5t10js/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-f_5t10js/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 230, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True) if BUILD_CYTHON else [PYRFC_EXT],
    File "/tmp/pip-build-env-f_5t10js/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-f_5t10js/overlay/lib64/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/66/bd/1f0fc859274e469af2bdb564b3546af8d77cf371a84feecc572d925df55d/pyrfc-2.5.1.tar.gz#sha256=d7749649a83c515ce75144ff2bead4f6b8850ad2cd97cea38bc08a71ec2626aa (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpr0dv8uhy Check the logs for full command output.
  Using cached pyrfc-2.5.0.tar.gz (258 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b2wtiye4/pyrfc_d608402c53284af589d0761fd0a05218/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b2wtiye4/pyrfc_d608402c53284af589d0761fd0a05218/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-qmvajnh9
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_d608402c53284af589d0761fd0a05218/
  Complete output (40 lines):
  750 Patch Level 12

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1526:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1526:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-b2wtiye4/pyrfc_d608402c53284af589d0761fd0a05218/setup.py", line 229, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True, language_level="3") if BUILD_CYTHON else [PYRFC_EXT],
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/cb/a3/39c24eb01a23b129b83b829f805eedceede48b40977e493c6a6cc200704e/pyrfc-2.5.0.tar.gz#sha256=434cd49b975feddc19ce21f1623b494e525a3505dd8ae22cb3b5af033464d499 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Using cached pyrfc-2.4.2.tar.gz (258 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b2wtiye4/pyrfc_d5861cc8d2ef4ad7becdefcf06d94de6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b2wtiye4/pyrfc_d5861cc8d2ef4ad7becdefcf06d94de6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-7h47u01i
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_d5861cc8d2ef4ad7becdefcf06d94de6/
  Complete output (40 lines):
  750 Patch Level 12

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1522:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1522:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-b2wtiye4/pyrfc_d5861cc8d2ef4ad7becdefcf06d94de6/setup.py", line 228, in <module>
      if BUILD_CYTHON
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/18/ce/81134b962227e60170678b628140de918dcee386af291b8df8a4e26c1a12/pyrfc-2.4.2.tar.gz#sha256=7fe4cc931beaff1665669d43b6fbf595ed24de8b1ca3a359ebc673f80e2ec347 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Using cached pyrfc-2.4.1.tar.gz (257 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b2wtiye4/pyrfc_a20e69d0cb9a4984a2b3a249157c4e28/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b2wtiye4/pyrfc_a20e69d0cb9a4984a2b3a249157c4e28/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ujudmkvj
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_a20e69d0cb9a4984a2b3a249157c4e28/
  Complete output (40 lines):
  750 Patch Level 12

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1505:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1505:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-b2wtiye4/pyrfc_a20e69d0cb9a4984a2b3a249157c4e28/setup.py", line 228, in <module>
      if BUILD_CYTHON
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/9b/d3/b77749717a04f1c57aa380398fdf29fe159cefedb5be82760c348f89275c/pyrfc-2.4.1.tar.gz#sha256=4aacff1ff7477a576043fdfa495902bcf58e28896c4e1a51e08557e1e246cae8 (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pyrfc-2.4.0.tar.gz (260 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b2wtiye4/pyrfc_6136bdb6a50740599634b67155c348c1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b2wtiye4/pyrfc_6136bdb6a50740599634b67155c348c1/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hh88k9wd
       cwd: /tmp/pip-install-b2wtiye4/pyrfc_6136bdb6a50740599634b67155c348c1/
  Complete output (40 lines):
  750 Patch Level 12

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1482:57: Cannot assign type 'RFC_RC (RFC_CONNECTION_HANDLE, RFC_FUNCTION_HANDLE, RFC_ERROR_INFO *) except * nogil' to 'RFC_SERVER_FUNCTION'

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

      def serve(self, timeout=None):
          cdef RFC_ERROR_INFO errorInfo

          cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo)
                                                                           ^
  ------------------------------------------------------------

  src/pyrfc/_pyrfc.pyx:1482:73: Cannot assign type 'RFC_RC (const SAP_UC *, RFC_ATTRIBUTES, RFC_FUNCTION_DESC_HANDLE *) except * nogil' to 'RFC_FUNC_DESC_CALLBACK'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-b2wtiye4/pyrfc_6136bdb6a50740599634b67155c348c1/setup.py", line 225, in <module>
      ext_modules=cythonize(PYRFC_EXT, annotate=True, language_level="3") if BUILD_CYTHON else [PYRFC_EXT],
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "/usr/local/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/pyrfc/_pyrfc.pyx
  Compiling src/pyrfc/_pyrfc.pyx because it changed.
  [1/1] Cythonizing src/pyrfc/_pyrfc.pyx
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/de/19/89a2e3f82a9fc03eb4aa97579776166b7601585ab7d8fba4533399bb46ec/pyrfc-2.4.0.tar.gz#sha256=76f4dbc3f57443f5c0c85bee5795d2d888349df8249672d46569e8ff19503c2a (from https://pypi.org/simple/pyrfc/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyrfc (from versions: 2.4.0, 2.4.1, 2.4.2, 2.5.0, 2.5.1, 2.7.0, 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.8.2)
ERROR: No matching distribution found for pyrfc
`

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment**
 - OS: Oracle Linux 7.9
 - Running in docker? NO
 - PyRFC version: 2.4.0, 2.4.1, 2.4.2, 2.5.0, 2.5.1, 2.7.0, 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.8.2

**Additional context**
Add any other context about the problem here.
bsrdjan commented 1 year ago

hello @spacca84,

the error log shows Python version 3.6 on your system. It is probably the default Python on your Linux system and that older version is not supported. You need Python 3.8 or newer, in virtual environment for example.

bsrdjan commented 1 year ago

See also #332

bsrdjan commented 11 months ago

Please re-open is issue still persists.