hummingbot / dashboard

Application that helps you create, backtest, deploy, and manage Hummingbot instances
Apache License 2.0
163 stars 98 forks source link

ImportError when running Streamlit on Raspberry Pi 4 #148

Open sambickeita opened 1 week ago

sambickeita commented 1 week ago

Describe the bug

I'm encountering an issue when running my Streamlit application on a Raspberry Pi 4. Here are the error details:

Environment:

Raspberry Pi 4 Operating System: [Raspberry Pi OS] Python version: 3.10 Virtual environment: hummingbot-env

Steps Taken:

I created a virtual environment (hummingbot-env) and installed all required dependencies from requirements.txt. I attempted to update Pydantic and all associated dependencies to the latest available versions. I purged pip cache and reinstalled all dependencies. I checked for version conflicts and ensured compatibility between installed dependencies. I tried installing a specific version of Pydantic (1.8.2) to ensure compatibility with other project dependencies. Despite these efforts, the error persists. I'm still stuck at importing default_ref_template from pydantic.schema.

Steps to reproduce bug

Traceback (most recent call last): File "/home/msi/TRADING_BOT/hummingbot/hummingbot-env/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script exec(code, module.dict) File "/home/msi/hummingbot/dashboard/main.py", line 6, in from backend.utils.os_utils import read_yaml_file, dump_dict_to_yaml File "/home/msi/hummingbot/dashboard/backend/utils/os_utils.py", line 10, in from hummingbot.strategy_v2.controllers.directional_trading_controller_base import DirectionalTradingControllerBase, DirectionalTradingControllerConfigBase File "/home/msi/TRADING_BOT/hummingbot/hummingbot-env/lib/python3.10/site-packages/hummingbot/strategy_v2/controllers/init.py", line 1, in from hummingbot.strategy_v2.controllers.controller_base import ControllerBase, ControllerConfigBase File "/home/msi/TRADING_BOT/hummingbot/hummingbot-env/lib/python3.10/site-packages/hummingbot/strategy_v2/controllers/controller_base.py", line 10, in from hummingbot.client.config.config_data_types import BaseClientModel, ClientFieldData File "/home/msi/TRADING_BOT/hummingbot/hummingbot-env/lib/python3.10/site-packages/hummingbot/client/config/config_data_types.py", line 8, in from pydantic.schema import default_ref_template ImportError: cannot import name 'default_ref_template' from 'pydantic.schema' (/home/msi/TRADING_BOT/hummingbot/hummingbot-env/lib/python3.10/site-packages/pydantic/schema.py)

peterwilli commented 1 week ago

I had this issue too with my mac mini server - try to pull the latest source because there were some conflicts with versions of dependencies