SHARE
TWEET

Untitled

a guest Jun 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "bh.py", line 4, in <module>
  3.     database=system.create_database('lj17.sqlite')
  4.   File "/home/gn203/.local/lib/python2.7/site-
  5. packages/pele/systems/basesystem.py", line 234, in create_database
  6.     db = Database(**kwargs)
  7.   File "/home/gn203/.local/lib/python2.7/site-packages/pele/storage/database.py", line 432, in __init__
  8.     self._check_schema_version()
  9.   File "/home/gn203/.local/lib/python2.7/site-packages/pele/storage/database.py", line 477, in _check_schema_version
  10.     "%d (%d). Please use migrate_db.py in pele/scripts to update database"%(schema, _schema_version))
  11. IOError: database schema outdated, current (newest) version: 0 (2). Please use migrate_db.py```
  12.  
  13. ```Second error is below:```
  14.  
  15. ```lj17.sqlite
  16. current version: 0
  17. newest version: 2
  18. migrating from database version 0 to 1
  19. Traceback (most recent call last):
  20.   File "/home/gn203/pkg/pele-master/scripts/migrate_db.py", line 63, in <module>
  21.     migrate(dbfile)
  22.   File "/home/gn203/pkg/pele-master/scripts/migrate_db.py", line 47, in migrate
  23.     schema = migrate_script[schema](connection, schema)
  24.   File "/home/gn203/pkg/pele-master/scripts/migrate_db.py", line 13, in from_0_to_1
  25.     connection.execute("ALTER TABLE tbl_minima ADD fvib FLOAT;")
  26.   File "/home/gn203/.local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1294, in execute
  27.     params)
  28.   File "/home/gn203/.local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1471, in _execute_text
  29.     statement, parameters
  30.   File "/home/gn203/.local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1535, in _execute_context
  31.     context)
  32.   File "/home/gn203/.local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1528, in _execute_context
  33.     context)
  34.   File "/home/gn203/.local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 325, in do_execute
  35.     cursor.execute(statement, parameters)
  36. sqlalchemy.exc.OperationalError: (OperationalError) no such table: tbl_minima 'ALTER TABLE tbl_minima ADD fvib FLOAT;' ()```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top