maxme / bitcoin-arbitrage

Bitcoin arbitrage - opportunity detector
MIT License
2.47k stars 858 forks source link

ModuleNotFoundError: No module named 'arbitrage.arbitrer'; 'arbitrage' is not a package #52

Closed happyshiller closed 5 years ago

happyshiller commented 6 years ago

I'm new to Python. when i run the code at Debug model. it keeps showing following error message:

Traceback (most recent call last): File "c:\Users\zbn\Documents\LeShi\OnLineBusiness\Coin\python_work\bitcoin-arbitrage-maxme\arbitrage\arbitrage.py", line 9, in from arbitrage.arbitrer import Arbitrer File "c:\Users\zbn\Documents\LeShi\OnLineBusiness\Coin\python_work\bitcoin-arbitrage-maxme\arbitrage\arbitrage.py", line 9, in from arbitrage.arbitrer import Arbitrer ModuleNotFoundError: No module named 'arbitrage.arbitrer'; 'arbitrage' is not a package

dorlan commented 6 years ago

在bitcoin-arbitrage目录下执行 python -m arbitrage.py xxxx 就行了。

maxme commented 5 years ago

@dorlan is right, you should run the program with python3 -m arbitrage, please have a look at the README for more examples and information.

ikeepo commented 5 years ago

python -m arbitrage.py xxxx didn't work for me.这个办法对我遇到的情况没有用。 but can change the arbitrage.py name,Python will take from arbitrage import observers as from arbitrage.py import...,so rename arbitrage.py to anything else can solve this problem