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

Can not install dxfeed #8

Open
Mahmoud-Elbahnasawy opened this issue Jul 6, 2024 · 0 comments
Open

Can not install dxfeed #8

Mahmoud-Elbahnasawy opened this issue Jul 6, 2024 · 0 comments

Comments

@Mahmoud-Elbahnasawy
Copy link

When i run pip3 install dxfeed it gives me this error

`Building wheels for collected packages: dxfeed
Building wheel for dxfeed (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for dxfeed (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [267 lines of output]
Downloading the "https://github.com/dxFeed/dxfeed-c-api/releases/download/8.3.0/dxfeed-c-api-8.3.0-windows-no-tls.zip"
Extracting to "C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\dxfeed\tmp"
Copying all headers
Copying the required libraries
C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\dxfeed\tmp\dxfeed-c-api-8.3.0-no-tls\bin\x64\DXFeed_64.dll -> C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\dxfeed\core\DXFeed_64.dll
C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\dxfeed\tmp\dxfeed-c-api-8.3.0-no-tls\bin\x64\DXFeed_64.lib -> C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\dxfeed\core\DXFeed_64.lib
Compiling dxfeed/core/utils/helpers.pyx because it changed.
Compiling dxfeed/core/utils/handler.pyx because it changed.
Compiling dxfeed/core/listeners/listener.pyx because it changed.
Compiling dxfeed/core/DXFeedPy.pyx because it changed.
[1/4] Cythonizing dxfeed/core/DXFeedPy.pyx

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      # ctypedef static dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_ASK_STR = L"COMPOSITE_ASK"

      # cdef static dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_BID_STR = "COMPOSITE_BID"
      # cdef static dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_ASK_STR = "COMPOSITE_ASK"

      cdef dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_BID_STR = "COMPOSITE_BID"
                                                                ^
  ------------------------------------------------------------

  dxfeed\core\pxd_include\EventData.pxd:391:62: Unicode literals do not support coercion to C types other than Py_UNICODE/Py_UCS4 (for characters) or Py_UNICODE* (for strings).

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

      # cdef static dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_BID_STR = "COMPOSITE_BID"
      # cdef static dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_ASK_STR = "COMPOSITE_ASK"

      cdef dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_BID_STR = "COMPOSITE_BID"
      cdef dxt.dxf_const_string_t DXF_ORDER_COMPOSITE_ASK_STR = "COMPOSITE_ASK"
                                                                ^
  ------------------------------------------------------------

  dxfeed\core\pxd_include\EventData.pxd:392:62: Unicode literals do not support coercion to C types other than Py_UNICODE/Py_UCS4 (for characters) or Py_UNICODE* (for strings).

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
           'by name in custom event handler.',
           FutureWarning)

      if sc.event_type_str == 'Trade':
          event_handler.columns = lis.TRADE_COLUMNS
          sc.listener = lis.trade_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:314:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'trade_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      if sc.event_type_str == 'Trade':
          event_handler.columns = lis.TRADE_COLUMNS
          sc.listener = lis.trade_default_listener
      elif sc.event_type_str == 'Quote':
          event_handler.columns = lis.QUOTE_COLUMNS
          sc.listener = lis.quote_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:317:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'quote_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Quote':
          event_handler.columns = lis.QUOTE_COLUMNS
          sc.listener = lis.quote_default_listener
      elif sc.event_type_str == 'Summary':
          event_handler.columns = lis.SUMMARY_COLUMNS
          sc.listener = lis.summary_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:320:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'summary_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Summary':
          event_handler.columns = lis.SUMMARY_COLUMNS
          sc.listener = lis.summary_default_listener
      elif sc.event_type_str == 'Profile':
          event_handler.columns = lis.PROFILE_COLUMNS
          sc.listener = lis.profile_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:323:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'profile_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Profile':
          event_handler.columns = lis.PROFILE_COLUMNS
          sc.listener = lis.profile_default_listener
      elif sc.event_type_str == 'TimeAndSale':
          event_handler.columns = lis.TIME_AND_SALE_COLUMNS
          sc.listener = lis.time_and_sale_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:326:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'time_and_sale_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'TimeAndSale':
          event_handler.columns = lis.TIME_AND_SALE_COLUMNS
          sc.listener = lis.time_and_sale_default_listener
      elif sc.event_type_str == 'Candle':
          event_handler.columns = lis.CANDLE_COLUMNS
          sc.listener = lis.candle_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:329:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'candle_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Candle':
          event_handler.columns = lis.CANDLE_COLUMNS
          sc.listener = lis.candle_default_listener
      elif sc.event_type_str == 'Order':
          event_handler.columns = lis.ORDER_COLUMNS
          sc.listener = lis.order_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:332:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'order_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Order':
          event_handler.columns = lis.ORDER_COLUMNS
          sc.listener = lis.order_default_listener
      elif sc.event_type_str == 'TradeETH':
          event_handler.columns = lis.TRADE_COLUMNS
          sc.listener = lis.trade_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:335:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'trade_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'TradeETH':
          event_handler.columns = lis.TRADE_COLUMNS
          sc.listener = lis.trade_default_listener
      elif sc.event_type_str == 'SpreadOrder':
          event_handler.columns = lis.ORDER_COLUMNS
          sc.listener = lis.order_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:338:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'order_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'SpreadOrder':
          event_handler.columns = lis.ORDER_COLUMNS
          sc.listener = lis.order_default_listener
      elif sc.event_type_str == 'Greeks':
          event_handler.columns = lis.GREEKS_COLUMNS
          sc.listener = lis.greeks_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:341:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'greeks_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Greeks':
          event_handler.columns = lis.GREEKS_COLUMNS
          sc.listener = lis.greeks_default_listener
      elif sc.event_type_str == 'TheoPrice':
          event_handler.columns = lis.THEO_PRICE_COLUMNS
          sc.listener = lis.theo_price_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:344:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'theo_price_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'TheoPrice':
          event_handler.columns = lis.THEO_PRICE_COLUMNS
          sc.listener = lis.theo_price_default_listener
      elif sc.event_type_str == 'Underlying':
          event_handler.columns = lis.UNDERLYING_COLUMNS
          sc.listener = lis.underlying_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:347:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'underlying_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Underlying':
          event_handler.columns = lis.UNDERLYING_COLUMNS
          sc.listener = lis.underlying_default_listener
      elif sc.event_type_str == 'Series':
          event_handler.columns = lis.SERIES_COLUMNS
          sc.listener = lis.series_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:350:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'series_default_listener'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      elif sc.event_type_str == 'Series':
          event_handler.columns = lis.SERIES_COLUMNS
          sc.listener = lis.series_default_listener
      elif sc.event_type_str == 'Configuration':
          event_handler.columns = lis.CONFIGURATION_COLUMNS
          sc.listener = lis.configuration_default_listener
                           ^
  ------------------------------------------------------------

  dxfeed\core\DXFeedPy.pyx:353:25: Cannot assign type 'void (int, dxf_const_string_t, const dxf_event_data_t *, int, void *) except * nogil' to 'dxf_event_listener_t' (alias of 'void (*)(int, dxf_const_string_t, const dxf_event_data_t *, int, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'configuration_default_listener'.
  Traceback (most recent call last):
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-install-gcnd0ltk\dxfeed_a355cb73b34c4259b4e1a89b05d8f8e6\build.py", line 178, in <module>
      extensions = cythonize(extensions, language_level=3)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: dxfeed/core/DXFeedPy.pyx
  Traceback (most recent call last):
    File "D:\Projects\Deephaven_iceberg\redpanda-dxfeed-financial-data\deephaven_env\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "D:\Projects\Deephaven_iceberg\redpanda-dxfeed-financial-data\deephaven_env\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projects\Deephaven_iceberg\redpanda-dxfeed-financial-data\deephaven_env\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 58, in build_wheel
      return WheelBuilder.make_in(
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 88, in make_in
      wb.build(target_dir=directory)
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 123, in build
      self._build(zip_file)
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 172, in _build
      self._run_build_script(self._package.build_script)
    File "C:\Users\GAMING STORE\AppData\Local\Temp\pip-build-env-mqpzfy3b\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 262, in _run_build_script          subprocess.check_call([self.executable.as_posix(), build_script])
    File "D:\setup_path\Lib\subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['D:/Projects/Deephaven_iceberg/redpanda-dxfeed-financial-data/deephaven_env/Scripts/python.exe', 'build.py']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dxfeed
Failed to build dxfeed
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dxfeed)`
I am using windows 11
with a virtual environment created by venv and this is my python version 3.12.1

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