dyn4mik3 / OrderBook

Matching Engine for Limit Order Book
Other
355 stars 115 forks source link

ImportError: cannot import name 'OrderBook' from partially initialized module 'orderbook' #19

Open HalonMallic opened 2 years ago

HalonMallic commented 2 years ago

When trying to use from orderbook import OrderBook I get ImportError: cannot import name 'OrderBook' from partially initialized module 'orderbook'

ghost commented 2 years ago

i've fixed this by running the python command with -m when executing the script. Something like

python3 -m uvicorn server:app