Comments (2)
I had a similar issue when adding new tables to the trading database. Here is what solved it :
change engine = create_engine(os.environ.get('TRADING_DB_CRED'))
to :
engine = engine_from_config( config.get_section(config.config_ini_section), prefix='sqlalchemy.', poolclass=pool.NullPool)
in migrations/env.py.
Hope this helps
from gryphon.
Hi @maxima-us thanks for helping out this issue. I have tried and now I get another error;
--||--
/grybot$ gryphon-exec run-migrations --database trading --execute
INFO:gryphon.execution.controllers.run_migrations:Migrating the trading database
Traceback (most recent call last):
File "/usr/local/bin/gryphon-exec", line 10, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/app.py", line 544, in main
app.run()
File "/usr/local/lib/python2.7/site-packages/cement/core/foundation.py", line 882, in run
return_val = self.controller._dispatch()
File "/usr/local/lib/python2.7/site-packages/cement/core/controller.py", line 471, in _dispatch
return func()
File "/usr/local/lib/python2.7/site-packages/cement/core/controller.py", line 477, in _dispatch
return func()
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/app.py", line 491, in default
run_migrations.main(target_db, execute)
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/controllers/run_migrations.py", line 63, in main
run_migrations(target_db)
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/controllers/run_migrations.py", line 50, in run_migrations
command.upgrade(alembic_cfg, 'head')
File "/usr/local/lib/python2.7/site-packages/alembic/command.py", line 124, in upgrade
script.run_env()
File "/usr/local/lib/python2.7/site-packages/alembic/script.py", line 193, in run_env
util.load_python_file(self.dir, 'env.py')
File "/usr/local/lib/python2.7/site-packages/alembic/util.py", line 177, in load_python_file
module = load_module(module_id, path)
File "/usr/local/lib/python2.7/site-packages/alembic/compat.py", line 39, in load_module
return imp.load_source(module_id, path, fp)
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/migrations/env.py", line 98, in
run_migrations_online()
File "/usr/local/lib/python2.7/site-packages/gryphon/execution/migrations/env.py", line 81, in run_migrations_online
poolclass=pool.NullPool)
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/init.py", line 485, in engine_from_config
url = options.pop("url")
KeyError: 'url'
--||--
Thanks!
from gryphon.
Related Issues (20)
- Bitstamp : subaccount API invalid signature HOT 3
- The homepage readme "gryphon-exe" is a typo? HOT 2
- exchange.market_order requires a price ? HOT 4
- Document sim_exchange HOT 1
- Strategy: Auditing cancels orders ? HOT 1
- Running [strat_name].py leads to .config file not being found. Original fix did not resolve this HOT 2
- Looking for feedback: Strategies and Strategy Ledgers are not intuitive to users HOT 1
- Add support for BitMex exchange. HOT 1
- Keeping track of dependencies HOT 2
- Running a strategy from a Jupyter Notebook HOT 1
- 'module' object has no attribute 'Money' HOT 4
- Setting up Data Service HOWTO HOT 1
- AttributeError: type object 'IOLoop' has no attribute 'initialized' HOT 2
- Slack invite link is down HOT 6
- How to use ohlc bar data ? if I want TA indicator in my strategy? HOT 1
- What was the main idea to synchronize exchange rate of fiat-currencies?
- Migrate database cannot import name escape_sequence
- ERROR:gryphon.execution.live_runner:[UnmappedInstanceError] Class '__builtin__.NoneType' is not mapped
- ImportError: cannot import name ESDIRK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gryphon.