Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.37k stars 764 forks source link

cant install. #1939

Closed anakein closed 1 year ago

anakein commented 2 years ago

Im trying install by python code.

// paste your log here


Collecting OctoBot-Trading
  Using cached OctoBot-Trading-2.1.2.tar.gz (276 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zyjuyfva
         cwd: /tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/
    Complete output (338 lines):
    Compiling octobot_trading/octobot_channel_consumer.py because it changed.
    Compiling octobot_trading/util/initializable.py because it changed.
    Compiling octobot_trading/util/config_util.py because it changed.
    Compiling octobot_trading/exchange_data/exchange_symbols_data.py because it changed.
    Compiling octobot_trading/exchange_data/exchange_symbol_data.py because it changed.
    Compiling octobot_trading/exchange_data/ticker/ticker_manager.py because it changed.
    Compiling octobot_trading/exchange_data/ticker/channel/ticker.py because it changed.
    Compiling octobot_trading/exchange_data/ticker/channel/ticker_updater.py because it changed.
    Compiling octobot_trading/exchange_data/ticker/channel/ticker_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/contracts/margin_contract.py because it changed.
    Compiling octobot_trading/exchange_data/contracts/future_contract.py because it changed.
    Compiling octobot_trading/exchange_data/order_book/order_book_manager.py because it changed.
    Compiling octobot_trading/exchange_data/order_book/channel/order_book.py because it changed.
    Compiling octobot_trading/exchange_data/order_book/channel/order_book_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/order_book/channel/order_book_updater.py because it changed.
    Compiling octobot_trading/exchange_data/funding/funding_manager.py because it changed.
    Compiling octobot_trading/exchange_data/funding/channel/funding.py because it changed.
    Compiling octobot_trading/exchange_data/funding/channel/funding_updater.py because it changed.
    Compiling octobot_trading/exchange_data/funding/channel/funding_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/kline/kline_manager.py because it changed.
    Compiling octobot_trading/exchange_data/kline/channel/kline.py because it changed.
    Compiling octobot_trading/exchange_data/kline/channel/kline_updater.py because it changed.
    Compiling octobot_trading/exchange_data/kline/channel/kline_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/recent_trades/recent_trades_manager.py because it changed.
    Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade.py because it changed.
    Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade_updater.py because it changed.
    Compiling octobot_trading/exchange_data/prices/price_events_manager.py because it changed.
    Compiling octobot_trading/exchange_data/prices/prices_manager.py because it changed.
    Compiling octobot_trading/exchange_data/prices/channel/price.py because it changed.
    Compiling octobot_trading/exchange_data/prices/channel/prices_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/prices/channel/prices_updater.py because it changed.
    Compiling octobot_trading/exchange_data/ohlcv/candles_manager.py because it changed.
    Compiling octobot_trading/exchange_data/ohlcv/candles_adapter.py because it changed.
    Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv_updater.py because it changed.
    Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv_updater_simulator.py because it changed.
    Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv.py because it changed.
    Compiling octobot_trading/personal_data/exchange_personal_data.py because it changed.
    Compiling octobot_trading/personal_data/state.py because it changed.
    Compiling octobot_trading/personal_data/trades/trades_manager.py because it changed.
    Compiling octobot_trading/personal_data/trades/trade.py because it changed.
    Compiling octobot_trading/personal_data/trades/trade_factory.py because it changed.
    Compiling octobot_trading/personal_data/trades/channel/trades_updater.py because it changed.
    Compiling octobot_trading/personal_data/trades/channel/trades.py because it changed.
    Compiling octobot_trading/personal_data/orders/order.py because it changed.
    Compiling octobot_trading/personal_data/orders/order_adapter.py because it changed.
    Compiling octobot_trading/personal_data/orders/decimal_order_adapter.py because it changed.
    Compiling octobot_trading/personal_data/orders/orders_manager.py because it changed.
    Compiling octobot_trading/personal_data/orders/order_state.py because it changed.
    Compiling octobot_trading/personal_data/orders/order_util.py because it changed.
    Compiling octobot_trading/personal_data/orders/order_factory.py because it changed.
    Compiling octobot_trading/personal_data/orders/states/fill_order_state.py because it changed.
    Compiling octobot_trading/personal_data/orders/states/cancel_order_state.py because it changed.
    Compiling octobot_trading/personal_data/orders/states/close_order_state.py because it changed.
    Compiling octobot_trading/personal_data/orders/states/order_state_factory.py because it changed.
    Compiling octobot_trading/personal_data/orders/states/open_order_state.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/unknown_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/market/buy_market_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/market/market_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/market/sell_market_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/trailing/trailing_stop_limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/trailing/trailing_stop_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/take_profit_limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/stop_loss_limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/sell_limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/stop_loss_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/buy_limit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/types/limit/take_profit_order.py because it changed.
    Compiling octobot_trading/personal_data/orders/channel/orders_updater_simulator.py because it changed.
    Compiling octobot_trading/personal_data/orders/channel/orders.py because it changed.
    Compiling octobot_trading/personal_data/orders/channel/orders_updater.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio_value_holder.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio_manager.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/sub_portfolio.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/asset.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio_factory.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio_profitability.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/portfolio_util.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/assets/future_asset.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/assets/margin_asset.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/assets/spot_asset.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/types/spot_portfolio.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/types/future_portfolio.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/types/margin_portfolio.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/channel/balance_updater.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/channel/balance_updater_simulator.py because it changed.
    Compiling octobot_trading/personal_data/portfolios/channel/balance.py because it changed.

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    #  Lesser General Public License for more details.
    #
    #  You should have received a copy of the GNU Lesser General Public
    #  License along with this library.
    cimport async_channel.channels as channels
           ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:17:8: 'async_channel/channels.pxd' not found

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    #  Lesser General Public License for more details.
    #
    #  You should have received a copy of the GNU Lesser General Public
    #  License along with this library.
    cimport async_channel.channels as channels
    cimport async_channel.consumer as consumers
           ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:18:8: 'async_channel/consumer.pxd' not found

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    #
    #  You should have received a copy of the GNU Lesser General Public
    #  License along with this library.
    cimport async_channel.channels as channels
    cimport async_channel.consumer as consumers
    cimport async_channel.producer as producers
           ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:19:8: 'async_channel/producer.pxd' not found

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    #  License along with this library.
    cimport async_channel.channels as channels
    cimport async_channel.consumer as consumers
    cimport async_channel.producer as producers

    cdef class ExchangeChannel(channels.Channel):
                                      ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:21:35: First base of 'ExchangeChannel' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*)

    cdef class TimeFrameExchangeChannel(ExchangeChannel):
        cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*, str time_frame=*)

    cdef class ExchangeChannelConsumer(consumers.Consumer):
                                               ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:33:44: First base of 'ExchangeChannelConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*, str time_frame=*)

    cdef class ExchangeChannelConsumer(consumers.Consumer):
        pass

    cdef class ExchangeChannelProducer(producers.Producer):
                                               ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:36:44: First base of 'ExchangeChannelProducer' is not an extension type

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

    cdef class ExchangeChannelProducer(producers.Producer):
        cpdef void trigger_single_update(self)

    cdef class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
                                                       ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:39:52: First base of 'ExchangeChannelInternalConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        cpdef void trigger_single_update(self)

    cdef class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
        pass

    cdef class ExchangeChannelSupervisedConsumer(consumers.SupervisedConsumer):
                                                         ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.pxd:42:54: First base of 'ExchangeChannelSupervisedConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    import async_channel.producer as producers

    import octobot_commons.logging as logging

    class ExchangeChannelConsumer(consumers.Consumer):
                                          ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.py:28:39: First base of 'ExchangeChannelConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        """
        Consumer adapted for ExchangeChannel
        """

    class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
                                                  ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.py:34:47: First base of 'ExchangeChannelInternalConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        """
        InternalConsumer adapted for ExchangeChannel
        """

    class ExchangeChannelSupervisedConsumer(consumers.SupervisedConsumer):
                                                    ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.py:40:49: First base of 'ExchangeChannelSupervisedConsumer' is not an extension type

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
        """
        SupervisedConsumer adapted for ExchangeChannel
        """

    class ExchangeChannelProducer(producers.Producer):
                                          ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.py:46:39: First base of 'ExchangeChannelProducer' is not an extension type

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

        def trigger_single_update(self):
            asyncio.create_task(self.fetch_and_push())

    class ExchangeChannel(channels.Channel):
                                 ^
    ------------------------------------------------------------

    octobot_trading/exchange_channel.py:62:30: First base of 'ExchangeChannel' is not an extension type
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/setup.py", line 232, in <module>
        ext_modules=cythonize(ext_modules, gdb_debug=CYTHON_DEBUG),
      File "/tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/.eggs/Cython-0.29.28-py3.9.egg/Cython/Build/Dependencies.py", line 1127, in cythonize
        cythonize_one(*args)
      File "/tmp/pip-install-modhz30o/octobot-trading_38f56c7275ea4a88adf62450d356413f/.eggs/Cython-0.29.28-py3.9.egg/Cython/Build/Dependencies.py", line 1250, in cythonize_one
        raise CompileError(None, pyx_file)
    Cython.Compiler.Errors.CompileError: octobot_trading/exchange_channel.py
    Compiling octobot_trading/personal_data/positions/position.py because it changed.
    Compiling octobot_trading/personal_data/positions/position_factory.py because it changed.
    Compiling octobot_trading/personal_data/positions/position_state.py because it changed.
    Compiling octobot_trading/personal_data/positions/position_util.py because it changed.
    Compiling octobot_trading/personal_data/positions/positions_manager.py because it changed.
    Compiling octobot_trading/personal_data/positions/channel/positions.py because it changed.
    Compiling octobot_trading/personal_data/positions/channel/positions_updater.py because it changed.
    Compiling octobot_trading/personal_data/positions/channel/positions_updater_simulator.py because it changed.
    Compiling octobot_trading/personal_data/positions/types/inverse_position.py because it changed.
    Compiling octobot_trading/personal_data/positions/types/linear_position.py because it changed.
    Compiling octobot_trading/personal_data/positions/states/liquidate_position_state.py because it changed.
    Compiling octobot_trading/personal_data/positions/states/open_position_state.py because it changed.
    Compiling octobot_trading/personal_data/positions/states/position_state_factory.py because it changed.
    Compiling octobot_trading/personal_data/transactions/transaction.py because it changed.
    Compiling octobot_trading/personal_data/transactions/transaction_factory.py because it changed.
    Compiling octobot_trading/personal_data/transactions/transactions_manager.py because it changed.
    Compiling octobot_trading/personal_data/transactions/types/blockchain_transaction.py because it changed.
    Compiling octobot_trading/personal_data/transactions/types/fee_transaction.py because it changed.
    Compiling octobot_trading/personal_data/transactions/types/realised_pnl_transaction.py because it changed.
    Compiling octobot_trading/personal_data/transactions/types/transfer_transaction.py because it changed.
    Compiling octobot_trading/modes/modes_factory.py because it changed.
    Compiling octobot_trading/modes/channel/abstract_mode_producer.py because it changed.
    Compiling octobot_trading/modes/channel/mode.py because it changed.
    Compiling octobot_trading/modes/channel/abstract_mode_consumer.py because it changed.
    Compiling octobot_trading/exchanges/exchanges.py because it changed.
    Compiling octobot_trading/exchanges/exchange_manager.py because it changed.
    Compiling octobot_trading/exchanges/abstract_exchange.py because it changed.
    Compiling octobot_trading/exchanges/abstract_websocket_exchange.py because it changed.
    Compiling octobot_trading/exchanges/basic_exchange_wrapper.py because it changed.
    Compiling octobot_trading/exchanges/exchange_websocket_factory.py because it changed.
    Compiling octobot_trading/exchanges/exchange_config_data.py because it changed.
    Compiling octobot_trading/exchanges/exchange_builder.py because it changed.
    Compiling octobot_trading/exchanges/exchange_channels.py because it changed.
    Compiling octobot_trading/exchanges/exchange_factory.py because it changed.
    Compiling octobot_trading/exchanges/connectors/ccxt_exchange.py because it changed.
    Compiling octobot_trading/exchanges/connectors/exchange_simulator.py because it changed.
    Compiling octobot_trading/exchanges/connectors/abstract_websocket_connector.py because it changed.
    Compiling octobot_trading/exchanges/connectors/ccxt_websocket_connector.py because it changed.
    Compiling octobot_trading/exchanges/connectors/cryptofeed_websocket_connector.py because it changed.
    Compiling octobot_trading/exchanges/traders/trader.py because it changed.
    Compiling octobot_trading/exchanges/traders/trader_simulator.py because it changed.
    Compiling octobot_trading/exchanges/util/exchange_market_status_fixer.py because it changed.
    Compiling octobot_trading/exchanges/util/websockets_util.py because it changed.
    Compiling octobot_trading/exchanges/util/exchange_util.py because it changed.
    Compiling octobot_trading/exchanges/types/spot_exchange.py because it changed.
    Compiling octobot_trading/exchanges/types/margin_exchange.py because it changed.
    Compiling octobot_trading/exchanges/types/future_exchange.py because it changed.
    Compiling octobot_trading/exchanges/types/websocket_exchange.py because it changed.
    Compiling octobot_trading/exchanges/implementations/future_ccxt_exchange.py because it changed.
    Compiling octobot_trading/exchanges/implementations/future_exchange_simulator.py because it changed.
    Compiling octobot_trading/exchanges/implementations/margin_ccxt_exchange.py because it changed.
    Compiling octobot_trading/exchanges/implementations/margin_exchange_simulator.py because it changed.
    Compiling octobot_trading/exchanges/implementations/spot_ccxt_exchange.py because it changed.
    Compiling octobot_trading/exchanges/implementations/spot_exchange_simulator.py because it changed.
    Compiling octobot_trading/exchanges/implementations/ccxt_websocket_exchange.py because it changed.
    Compiling octobot_trading/exchanges/implementations/cryptofeed_websocket_exchange.py because it changed.
    Compiling octobot_trading/exchange_channel.py because it changed.
    [  1/146] Cythonizing octobot_trading/exchange_channel.py
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/47/b2/8cdcdadbb4e4bf43ead59a58d77270c196fca7d75e59eb7425d8a7a6cedf/OctoBot-Trading-2.1.2.tar.gz#sha256=545537be580706e085c5a964cffd18e9be99bb1dc75cf74df04c2c70a0dbed03 (from https://pypi.org/simple/octobot-trading/) (requires-python:>=3.8). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
anakein commented 2 years ago

if i try amr64, i have same error

Collecting OctoBot-Trading==2.1.2 Downloading OctoBot-Trading-2.1.2.tar.gz (276 kB) |████████████████████████████████| 276 kB 513 bytes/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/setup.py'"'"'; file='"'"'/tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egginfo --egg-base /tmp/pip-pip-egg-info-73oajcz cwd: /tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/ Complete output (338 lines): Compiling octobot_trading/octobot_channel_consumer.py because it changed. Compiling octobot_trading/util/initializable.py because it changed. Compiling octobot_trading/util/config_util.py because it changed. Compiling octobot_trading/exchange_data/exchange_symbols_data.py because it changed. Compiling octobot_trading/exchange_data/exchange_symbol_data.py because it changed. Compiling octobot_trading/exchange_data/ticker/ticker_manager.py because it changed. Compiling octobot_trading/exchange_data/ticker/channel/ticker.py because it changed. Compiling octobot_trading/exchange_data/ticker/channel/ticker_updater.py because it changed. Compiling octobot_trading/exchange_data/ticker/channel/ticker_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/contracts/margin_contract.py because it changed. Compiling octobot_trading/exchange_data/contracts/future_contract.py because it changed. Compiling octobot_trading/exchange_data/order_book/order_book_manager.py because it changed. Compiling octobot_trading/exchange_data/order_book/channel/order_book.py because it changed. Compiling octobot_trading/exchange_data/order_book/channel/order_book_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/order_book/channel/order_book_updater.py because it changed. Compiling octobot_trading/exchange_data/funding/funding_manager.py because it changed. Compiling octobot_trading/exchange_data/funding/channel/funding.py because it changed. Compiling octobot_trading/exchange_data/funding/channel/funding_updater.py because it changed. Compiling octobot_trading/exchange_data/funding/channel/funding_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/kline/kline_manager.py because it changed. Compiling octobot_trading/exchange_data/kline/channel/kline.py because it changed. Compiling octobot_trading/exchange_data/kline/channel/kline_updater.py because it changed. Compiling octobot_trading/exchange_data/kline/channel/kline_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/recent_trades/recent_trades_manager.py because it changed. Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade.py because it changed. Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/recent_trades/channel/recent_trade_updater.py because it changed. Compiling octobot_trading/exchange_data/prices/price_events_manager.py because it changed. Compiling octobot_trading/exchange_data/prices/prices_manager.py because it changed. Compiling octobot_trading/exchange_data/prices/channel/price.py because it changed. Compiling octobot_trading/exchange_data/prices/channel/prices_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/prices/channel/prices_updater.py because it changed. Compiling octobot_trading/exchange_data/ohlcv/candles_manager.py because it changed. Compiling octobot_trading/exchange_data/ohlcv/candles_adapter.py because it changed. Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv_updater.py because it changed. Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv_updater_simulator.py because it changed. Compiling octobot_trading/exchange_data/ohlcv/channel/ohlcv.py because it changed. Compiling octobot_trading/personal_data/exchange_personal_data.py because it changed. Compiling octobot_trading/personal_data/state.py because it changed. Compiling octobot_trading/personal_data/trades/trades_manager.py because it changed. Compiling octobot_trading/personal_data/trades/trade.py because it changed. Compiling octobot_trading/personal_data/trades/trade_factory.py because it changed. Compiling octobot_trading/personal_data/trades/channel/trades_updater.py because it changed. Compiling octobot_trading/personal_data/trades/channel/trades.py because it changed. Compiling octobot_trading/personal_data/orders/order.py because it changed. Compiling octobot_trading/personal_data/orders/order_adapter.py because it changed. Compiling octobot_trading/personal_data/orders/decimal_order_adapter.py because it changed. Compiling octobot_trading/personal_data/orders/orders_manager.py because it changed. Compiling octobot_trading/personal_data/orders/order_state.py because it changed. Compiling octobot_trading/personal_data/orders/order_util.py because it changed. Compiling octobot_trading/personal_data/orders/order_factory.py because it changed. Compiling octobot_trading/personal_data/orders/states/fill_order_state.py because it changed. Compiling octobot_trading/personal_data/orders/states/cancel_order_state.py because it changed. Compiling octobot_trading/personal_data/orders/states/close_order_state.py because it changed. Compiling octobot_trading/personal_data/orders/states/order_state_factory.py because it changed. Compiling octobot_trading/personal_data/orders/states/open_order_state.py because it changed. Compiling octobot_trading/personal_data/orders/types/unknown_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/market/buy_market_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/market/market_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/market/sell_market_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/trailing/trailing_stop_limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/trailing/trailing_stop_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/take_profit_limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/stop_loss_limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/sell_limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/stop_loss_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/buy_limit_order.py because it changed. Compiling octobot_trading/personal_data/orders/types/limit/take_profit_order.py because it changed. Compiling octobot_trading/personal_data/orders/channel/orders_updater_simulator.py because it changed. Compiling octobot_trading/personal_data/orders/channel/orders.py because it changed. Compiling octobot_trading/personal_data/orders/channel/orders_updater.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio_value_holder.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio_manager.py because it changed. Compiling octobot_trading/personal_data/portfolios/sub_portfolio.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio.py because it changed. Compiling octobot_trading/personal_data/portfolios/asset.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio_factory.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio_profitability.py because it changed. Compiling octobot_trading/personal_data/portfolios/portfolio_util.py because it changed. Compiling octobot_trading/personal_data/portfolios/assets/future_asset.py because it changed. Compiling octobot_trading/personal_data/portfolios/assets/margin_asset.py because it changed. Compiling octobot_trading/personal_data/portfolios/assets/spot_asset.py because it changed. Compiling octobot_trading/personal_data/portfolios/types/spot_portfolio.py because it changed. Compiling octobot_trading/personal_data/portfolios/types/future_portfolio.py because it changed. Compiling octobot_trading/personal_data/portfolios/types/margin_portfolio.py because it changed. Compiling octobot_trading/personal_data/portfolios/channel/balance_updater.py because it changed. Compiling octobot_trading/personal_data/portfolios/channel/balance_updater_simulator.py because it changed. Compiling octobot_trading/personal_data/portfolios/channel/balance.py because it changed.

Error compiling Cython file:
------------------------------------------------------------
...
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library.
cimport async_channel.channels as channels
       ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:17:8: 'async_channel/channels.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library.
cimport async_channel.channels as channels
cimport async_channel.consumer as consumers
       ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:18:8: 'async_channel/consumer.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library.
cimport async_channel.channels as channels
cimport async_channel.consumer as consumers
cimport async_channel.producer as producers
       ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:19:8: 'async_channel/producer.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
#  License along with this library.
cimport async_channel.channels as channels
cimport async_channel.consumer as consumers
cimport async_channel.producer as producers

cdef class ExchangeChannel(channels.Channel):
                                  ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:21:35: First base of 'ExchangeChannel' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*)

cdef class TimeFrameExchangeChannel(ExchangeChannel):
    cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*, str time_frame=*)

cdef class ExchangeChannelConsumer(consumers.Consumer):
                                           ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:33:44: First base of 'ExchangeChannelConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    cpdef object get_filtered_consumers(self, str cryptocurrency=*, str symbol=*, str time_frame=*)

cdef class ExchangeChannelConsumer(consumers.Consumer):
    pass

cdef class ExchangeChannelProducer(producers.Producer):
                                           ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:36:44: First base of 'ExchangeChannelProducer' is not an extension type

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

cdef class ExchangeChannelProducer(producers.Producer):
    cpdef void trigger_single_update(self)

cdef class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
                                                   ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:39:52: First base of 'ExchangeChannelInternalConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    cpdef void trigger_single_update(self)

cdef class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
    pass

cdef class ExchangeChannelSupervisedConsumer(consumers.SupervisedConsumer):
                                                     ^
------------------------------------------------------------

octobot_trading/exchange_channel.pxd:42:54: First base of 'ExchangeChannelSupervisedConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
import async_channel.producer as producers

import octobot_commons.logging as logging

class ExchangeChannelConsumer(consumers.Consumer):
                                      ^
------------------------------------------------------------

octobot_trading/exchange_channel.py:28:39: First base of 'ExchangeChannelConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    """
    Consumer adapted for ExchangeChannel
    """

class ExchangeChannelInternalConsumer(consumers.InternalConsumer):
                                              ^
------------------------------------------------------------

octobot_trading/exchange_channel.py:34:47: First base of 'ExchangeChannelInternalConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    """
    InternalConsumer adapted for ExchangeChannel
    """

class ExchangeChannelSupervisedConsumer(consumers.SupervisedConsumer):
                                                ^
------------------------------------------------------------

octobot_trading/exchange_channel.py:40:49: First base of 'ExchangeChannelSupervisedConsumer' is not an extension type

Error compiling Cython file:
------------------------------------------------------------
...
    """
    SupervisedConsumer adapted for ExchangeChannel
    """

class ExchangeChannelProducer(producers.Producer):
                                      ^
------------------------------------------------------------

octobot_trading/exchange_channel.py:46:39: First base of 'ExchangeChannelProducer' is not an extension type

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

    def trigger_single_update(self):
        asyncio.create_task(self.fetch_and_push())

class ExchangeChannel(channels.Channel):
                             ^
------------------------------------------------------------

octobot_trading/exchange_channel.py:62:30: First base of 'ExchangeChannel' is not an extension type
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/setup.py", line 232, in <module>
    ext_modules=cythonize(ext_modules, gdb_debug=CYTHON_DEBUG),
  File "/tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/.eggs/Cython-0.29.28-py3.9-linux-aarch64.egg/Cython/Build/Dependencies.py", line 1127, in cythonize
    cythonize_one(*args)
  File "/tmp/pip-install-ngsiynbu/octobot-trading_d7a9d42f4c1f4b60b640294021d22052/.eggs/Cython-0.29.28-py3.9-linux-aarch64.egg/Cython/Build/Dependencies.py", line 1250, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: octobot_trading/exchange_channel.py
Compiling octobot_trading/personal_data/positions/position.py because it changed.
Compiling octobot_trading/personal_data/positions/position_factory.py because it changed.
Compiling octobot_trading/personal_data/positions/position_state.py because it changed.
Compiling octobot_trading/personal_data/positions/position_util.py because it changed.
Compiling octobot_trading/personal_data/positions/positions_manager.py because it changed.
Compiling octobot_trading/personal_data/positions/channel/positions.py because it changed.
Compiling octobot_trading/personal_data/positions/channel/positions_updater.py because it changed.
Compiling octobot_trading/personal_data/positions/channel/positions_updater_simulator.py because it changed.
Compiling octobot_trading/personal_data/positions/types/inverse_position.py because it changed.
Compiling octobot_trading/personal_data/positions/types/linear_position.py because it changed.
Compiling octobot_trading/personal_data/positions/states/liquidate_position_state.py because it changed.
Compiling octobot_trading/personal_data/positions/states/open_position_state.py because it changed.
Compiling octobot_trading/personal_data/positions/states/position_state_factory.py because it changed.
Compiling octobot_trading/personal_data/transactions/transaction.py because it changed.
Compiling octobot_trading/personal_data/transactions/transaction_factory.py because it changed.
Compiling octobot_trading/personal_data/transactions/transactions_manager.py because it changed.
Compiling octobot_trading/personal_data/transactions/types/blockchain_transaction.py because it changed.
Compiling octobot_trading/personal_data/transactions/types/fee_transaction.py because it changed.
Compiling octobot_trading/personal_data/transactions/types/realised_pnl_transaction.py because it changed.
Compiling octobot_trading/personal_data/transactions/types/transfer_transaction.py because it changed.
Compiling octobot_trading/modes/modes_factory.py because it changed.
Compiling octobot_trading/modes/channel/abstract_mode_producer.py because it changed.
Compiling octobot_trading/modes/channel/mode.py because it changed.
Compiling octobot_trading/modes/channel/abstract_mode_consumer.py because it changed.
Compiling octobot_trading/exchanges/exchanges.py because it changed.
Compiling octobot_trading/exchanges/exchange_manager.py because it changed.
Compiling octobot_trading/exchanges/abstract_exchange.py because it changed.
Compiling octobot_trading/exchanges/abstract_websocket_exchange.py because it changed.
Compiling octobot_trading/exchanges/basic_exchange_wrapper.py because it changed.
Compiling octobot_trading/exchanges/exchange_websocket_factory.py because it changed.
Compiling octobot_trading/exchanges/exchange_config_data.py because it changed.
Compiling octobot_trading/exchanges/exchange_builder.py because it changed.
Compiling octobot_trading/exchanges/exchange_channels.py because it changed.
Compiling octobot_trading/exchanges/exchange_factory.py because it changed.
Compiling octobot_trading/exchanges/connectors/ccxt_exchange.py because it changed.
Compiling octobot_trading/exchanges/connectors/exchange_simulator.py because it changed.
Compiling octobot_trading/exchanges/connectors/abstract_websocket_connector.py because it changed.
Compiling octobot_trading/exchanges/connectors/ccxt_websocket_connector.py because it changed.
Compiling octobot_trading/exchanges/connectors/cryptofeed_websocket_connector.py because it changed.
Compiling octobot_trading/exchanges/traders/trader.py because it changed.
Compiling octobot_trading/exchanges/traders/trader_simulator.py because it changed.
Compiling octobot_trading/exchanges/util/exchange_market_status_fixer.py because it changed.
Compiling octobot_trading/exchanges/util/websockets_util.py because it changed.
Compiling octobot_trading/exchanges/util/exchange_util.py because it changed.
Compiling octobot_trading/exchanges/types/spot_exchange.py because it changed.
Compiling octobot_trading/exchanges/types/margin_exchange.py because it changed.
Compiling octobot_trading/exchanges/types/future_exchange.py because it changed.
Compiling octobot_trading/exchanges/types/websocket_exchange.py because it changed.
Compiling octobot_trading/exchanges/implementations/future_ccxt_exchange.py because it changed.
Compiling octobot_trading/exchanges/implementations/future_exchange_simulator.py because it changed.
Compiling octobot_trading/exchanges/implementations/margin_ccxt_exchange.py because it changed.
Compiling octobot_trading/exchanges/implementations/margin_exchange_simulator.py because it changed.
Compiling octobot_trading/exchanges/implementations/spot_ccxt_exchange.py because it changed.
Compiling octobot_trading/exchanges/implementations/spot_exchange_simulator.py because it changed.
Compiling octobot_trading/exchanges/implementations/ccxt_websocket_exchange.py because it changed.
Compiling octobot_trading/exchanges/implementations/cryptofeed_websocket_exchange.py because it changed.
Compiling octobot_trading/exchange_channel.py because it changed.
[  1/146] Cythonizing octobot_trading/exchange_channel.py
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/47/b2/8cdcdadbb4e4bf43ead59a58d77270c196fca7d75e59eb7425d8a7a6cedf/OctoBot-Trading-2.1.2.tar.gz#sha256=545537be580706e085c5a964cffd18e9be99bb1dc75cf74df04c2c70a0dbed03 (from https://pypi.org/simple/octobot-trading/) (requires-python:>=3.8). 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 OctoBot-Trading==2.1.2 ERROR: No matching distribution found for OctoBot-Trading==2.1.2 TradingBot@ubuntu:~/OctoBot$

GuillaumeDSM commented 2 years ago

Hi @anakein, Python 3.9 is not yet supported, please use Python 3.8

pupreti commented 2 years ago

I am getting the same error on pi. I tried building from source as well as installing with pip

pi@raspberrypi:~/Desktop $ python3 -m pip install OctoBot>=0.4.9
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [163 lines of output]

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      #  Lesser General Public License for more details.
      #
      #  You should have received a copy of the GNU Lesser General Public
      #  License along with this library.
      cimport async_channel.channels as channels
             ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:17:8: 'async_channel/channels.pxd' not found

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      #  Lesser General Public License for more details.
      #
      #  You should have received a copy of the GNU Lesser General Public
      #  License along with this library.
      cimport async_channel.channels as channels
      cimport async_channel.consumer as consumers
             ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:18:8: 'async_channel/consumer.pxd' not found

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      #
      #  You should have received a copy of the GNU Lesser General Public
      #  License along with this library.
      cimport async_channel.channels as channels
      cimport async_channel.consumer as consumers
      cimport async_channel.producer as producers
             ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:19:8: 'async_channel/producer.pxd' not found

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cimport async_channel.channels as channels
      cimport async_channel.consumer as consumers
      cimport async_channel.producer as producers

      cdef class OctoBotChannel(channels.Channel):
                                       ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:22:34: First base of 'OctoBotChannel' is not an extension type

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

      cdef class OctoBotChannel(channels.Channel):
          pass

      cdef class OctoBotChannelConsumer(consumers.Consumer):
                                                ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:25:43: First base of 'OctoBotChannelConsumer' is not an extension type

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

      cdef class OctoBotChannelConsumer(consumers.Consumer):
          pass

      cdef class OctoBotChannelProducer(producers.Producer):
                                                ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.pxd:28:43: First base of 'OctoBotChannelProducer' is not an extension type

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      import async_channel.channels as channels
      import async_channel.consumer as consumers
      import async_channel.producer as producers

      class OctoBotChannelConsumer(consumers.Consumer):
                                           ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.py:23:38: First base of 'OctoBotChannelConsumer' is not an extension type

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          """
          Consumer adapted for OctoBotChannel
          """

      class OctoBotChannelProducer(producers.Producer):
                                           ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.py:29:38: First base of 'OctoBotChannelProducer' is not an extension type

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                      "action": action,
                      "data": data
                  })

      class OctoBotChannel(channels.Channel):
                                  ^
      ------------------------------------------------------------

      octobot/channels/octobot_channel.py:51:29: First base of 'OctoBotChannel' is not an extension type
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-c3ytrw_7/octobot_fee0df5ea087462789228aa465b3238a/setup.py", line 105, in <module>
          ext_modules=cythonize(ext_modules, gdb_debug=CYTHON_DEBUG),
        File "/home/pi/.local/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1103, in cythonize
          cythonize_one(*args)
        File "/home/pi/.local/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1226, in cythonize_one
          raise CompileError(None, pyx_file)
      Cython.Compiler.Errors.CompileError: octobot/channels/octobot_channel.py
      Compiling octobot/configuration_manager.py because it changed.
      Compiling octobot/octobot_backtesting_factory.py because it changed.
      Compiling octobot/octobot_api.py because it changed.
      Compiling octobot/task_manager.py because it changed.
      Compiling octobot/octobot_channel_consumer.py because it changed.
      Compiling octobot/initializer.py because it changed.
      Compiling octobot/octobot.py because it changed.
      Compiling octobot/backtesting/independent_backtesting.py because it changed.
      Compiling octobot/backtesting/abstract_backtesting_test.py because it changed.
      Compiling octobot/backtesting/octobot_backtesting.py because it changed.
      Compiling octobot/channels/octobot_channel.py because it changed.
      Compiling octobot/strategy_optimizer/strategy_test_suite.py because it changed.
      Compiling octobot/strategy_optimizer/test_suite_result.py because it changed.
      Compiling octobot/strategy_optimizer/strategy_optimizer.py because it changed.
      Compiling octobot/strategy_optimizer/strategy_design_optimizer.py because it changed.
      Compiling octobot/producers/interface_producer.py because it changed.
      Compiling octobot/producers/service_feed_producer.py because it changed.
      Compiling octobot/producers/evaluator_producer.py because it changed.
      Compiling octobot/producers/exchange_producer.py because it changed.
      Compiling octobot/updater/binary_updater.py because it changed.
      Compiling octobot/updater/python_updater.py because it changed.
      Compiling octobot/updater/updater.py because it changed.
      Compiling octobot/updater/updater_factory.py because it changed.
      [ 1/23] Cythonizing octobot/backtesting/abstract_backtesting_test.py
      [ 2/23] Cythonizing octobot/backtesting/independent_backtesting.py
      [ 3/23] Cythonizing octobot/backtesting/octobot_backtesting.py
      [ 4/23] Cythonizing octobot/channels/octobot_channel.py
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
pi@raspberrypi:~/Desktop $ python3 -V
Python 3.8.0
pi@raspberrypi:~/Desktop $ python3 -m pip -V
pip 22.2.2 from /home/pi/.local/lib/python3.8/site-packages/pip (python 3.8)
Herklos commented 2 years ago

Hi @pupreti. Can you try :

Hotrod369 commented 2 years ago

I'm getting the same error that @pupreti is getting when trying to install a clone with pip. That is using python 3.8.0. The error occurs while trying to install the requirements. The bot will install with the executable but I'm getting these errors while running the bot.

image

image

Herklos commented 2 years ago

Hi @Hotrod369, your OctoBot is working properly, you can ignore this issue. It's a python on Windows related issue.