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

[Bug] ccxt FileNotFoundError in initialize_network_objects #752

Closed
trentmc opened this issue Mar 6, 2024 · 0 comments · Fixed by #753
Closed

[Bug] ccxt FileNotFoundError in initialize_network_objects #752

trentmc opened this issue Mar 6, 2024 · 0 comments · Fixed by #753
Labels
Priority: Critical Type: Bug Something isn't working

Comments

@trentmc
Copy link
Member

trentmc commented Mar 6, 2024

Background

This bug is show-stopping for anyone doing any coding on pdr-backend. Therefore critical.

Have a fresh install of everything. If I run any unit test, or any pdr call, I get this error:

venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/network.py:34: in initialize_network_objects
    with open(
E   FileNotFoundError: [Errno 2] No such file or directory: '/Users/trentmc/code/pdr-backend/venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/__json/eth_networks.json'

This is now happening in remote CI too. Log

Easiest way to reproduce: from console, go to python and import ccxt.

Full traceback

...
pdr_backend/cli/arg_feed.py:4: in <module>
    import ccxt
venv/lib/python3.11/site-packages/ccxt/__init__.py:29: in <module>
    from ccxt.base.exchange import Exchange                     # noqa: F401
venv/lib/python3.11/site-packages/ccxt/base/__init__.py:24: in <module>
    from ccxt.base import exchange
venv/lib/python3.11/site-packages/ccxt/base/exchange.py:57: in <module>
    from ccxt.static_dependencies.ethereum import abi
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/__init__.py:1: in <module>
    from .abi import *
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/abi/__init__.py:2: in <module>
    from .abi import (
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/abi/abi.py:1: in <module>
    from .codec import (
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/abi/codec.py:12: in <module>
    from ..utils import (
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/__init__.py:100: in <module>
    from .network import (
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/network.py:61: in <module>
    networks = initialize_network_objects()
venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/network.py:34: in initialize_network_objects
    with open(
E   FileNotFoundError: [Errno 2] No such file or directory: '/Users/trentmc/code/pdr-backend/venv/lib/python3.11/site-packages/ccxt/static_dependencies/ethereum/utils/__json/eth_networks.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant