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

Setup - Failed due to "...miniconda3/envs/hummingbot/lib/libc++.1.dylib' (no such file)" #25

Closed
rapcmia opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rapcmia
Copy link
Contributor

rapcmia commented Jul 17, 2024

When setting up backend-api on development and latest branch on source using macOs (m1), I am getting this error even after recreating the conda environment:

image

INFO:     Will watch for changes in these directories: ['/Users/rapcomia/github/backend-api/development']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [56181] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
    await self._serve(sockets)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/server.py", line 76, in _serve
    config.load()
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/config.py", line 434, in load
    self.loaded_app = import_from_string(self.app)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
    module = importlib.import_module(module_str)
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/rapcomia/github/backend-api/development/main.py", line 3, in <module>
    from routers import manage_docker, manage_broker_messages, manage_files, manage_market_data, manage_backtesting, \
  File "/Users/rapcomia/github/backend-api/development/routers/manage_docker.py", line 7, in <module>
    from services.docker_service import DockerManager
  File "/Users/rapcomia/github/backend-api/development/services/docker_service.py", line 10, in <module>
    from utils.file_system import FileSystemUtil
  File "/Users/rapcomia/github/backend-api/development/utils/file_system.py", line 12, in <module>
    from hummingbot.client.config.config_helpers import ClientConfigAdapter
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/hummingbot/client/config/config_helpers.py", line 23, in <module>
    from hummingbot.client.config.client_config_map import ClientConfigMap, CommandShortcutModel
  File "/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/hummingbot/client/config/client_config_map.py", line 16, in <module>
    from hummingbot.connector.connector_base import ConnectorBase
ImportError: dlopen(/opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/hummingbot/connector/connector_base.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libc++.1.dylib
  Referenced from: <63BF6D80-1398-301E-89E6-48A0067B5F52> /opt/anaconda3/envs/backend-api/lib/python3.10/site-packages/hummingbot/connector/connector_base.cpython-310-darwin.so
  Reason: tried: '/Users/david/miniconda3/envs/hummingbot/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/david/miniconda3/envs/hummingbot/lib/libc++.1.dylib' (no such file), '/Users/david/miniconda3/envs/hummingbot/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/david/miniconda3/envs/hummingbot/lib/libc++.1.dylib' (no such file), '/opt/anaconda3/envs/backend-api/bin/../lib/libc++.1.dylib' (no such file), '/opt/anaconda3/envs/backend-api/bin/../lib/libc++.1.dylib' (no such file)

Steps to reproduce:

  • Setup source using BE-api and dashboard
  • Run docker compose for broker using deploy

Attached:
conda info
image

@rapcmia
Copy link
Contributor Author

rapcmia commented Jul 19, 2024

Fixed on latest development commit 5dd8d41b01a51278384bedd046271694238d5c76

@rapcmia rapcmia closed this as completed Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants