[x] We should not be using MongoAlchemy . It's in requirements.txt though . Ensure that dependencies are up-to-date .
[x] Arguments in manage.py to display command help
[x] After starting with instructions in README.md some steps did not work .
$ python manage.py runserver
--------------------------------------------------------------------------------
INFO in __init__ [$PATH_REPOS/exchange_app/__init__.py:16]:
Config: Dev
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "$PATH_VENV/lib/python3.6/site-packages/pymongo/mongo_client.py", line 375, in __init__
self._ensure_connected(True)
File "$PATH_VENV/lib/python3.6/site-packages/pymongo/mongo_client.py", line 940, in _ensure_connected
self.__ensure_member()
File "$PATH_VENV/lib/python3.6/site-packages/pymongo/mongo_client.py", line 814, in __ensure_member
member, nodes = self.__find_node()
File "$PATH_VENV/lib/python3.6/site-packages/pymongo/mongo_client.py", line 905, in __find_node
raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 4, in <module>
from exchange_app import app
File "$PATH_REPOS/exchange_app/__init__.py", line 30, in <module>
mongo = PyMongo(app)
File "$PATH_VENV/lib/python3.6/site-packages/flask_pymongo/__init__.py", line 97, in __init__
self.init_app(app, config_prefix)
File "$PATH_VENV/lib/python3.6/site-packages/flask_pymongo/__init__.py", line 273, in init_app
cx = connection_cls(*args, **kwargs)
File "$PATH_VENV/lib/python3.6/site-packages/pymongo/mongo_client.py", line 378, in __init__
raise ConnectionFailure(str(e))
pymongo.errors.ConnectionFailure: timed out
[x] After configuring MongoDB to fix aforementioned failure , still get another error
$ python manage.py runserver
--------------------------------------------------------------------------------
INFO in __init__ [$PATH_REPOS/exchange_app/__init__.py:16]:
Config: Dev
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "manage.py", line 4, in <module>
from exchange_app import app
File "$PATH_REPOS/exchange_app/__init__.py", line 33, in <module>
from .api_1_0 import api as api_blueprint
File "$PATH_REPOS/exchange_app/api_1_0/__init__.py", line 5, in <module>
from . import address, wallets, assets, pending_events, capabilities, isalive, common, balances, history
File "$PATH_REPOS/exchange_app/api_1_0/wallets.py", line 3, in <module>
from .blockchain import spend, create_wallet
File "$PATH_REPOS/exchange_app/api_1_0/blockchain.py", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
requirements.txt
though . Ensure that dependencies are up-to-date .manage.py
to display command helpREADME.md
some steps did not work .