Opened 11 years ago
Closed 10 years ago
#740 closed defect (invalid)
gmg dbupdate with database on another host
Reported by: | Danilo Tomasoni | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
dbupdate gives me the following errors:
mediagoblin@lolly:~/mediagoblin$ ./bin/gmg dbupdate Traceback (most recent call last): File "./bin/gmg", line 9, in <module> load_entry_point('mediagoblin==0.4.1.dev', 'console_scripts', 'gmg')() File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 104, in main_cli args.func(args) File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 132, in dbupdate run_dbupdate(app_config, global_config) File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 127, in run_dbupdate migration_manager.init_or_migrate() File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/db/migration_tools.py", line 192, in init_or_migrate migration_number = self.database_current_migration File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/db/migration_tools.py", line 97, in database_current_migration if self.migration_data is None: File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/db/migration_tools.py", line 73, in migration_data self.migration_model).filter_by(name=self.name).first() File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/orm/query.py", line 1245, in filter_by for key, value in kwargs.iteritems()] File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/operators.py", line 278, in __eq__ return self.operate(eq, other) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/orm/attributes.py", line 252, in operate return op(self.comparator, *other, **kwargs) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/operators.py", line 278, in __eq__ return self.operate(eq, other) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/orm/properties.py", line 212, in operate return op(self.__clause_element__(), *other, **kwargs) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/util.py", line 490, in __eq__ return self.__element.__class__.__eq__(self, other) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/operators.py", line 278, in __eq__ return self.operate(eq, other) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/expression.py", line 2300, in operate return op(self.comparator, *other, **kwargs) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/util/langhelpers.py", line 612, in __get__ obj.__dict__[self.__name__] = result = self.fget(obj) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/sql/expression.py", line 2286, in comparator return self.type.comparator_factory(self) File "/media/nfs/home/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.2-py2.7-linux-i686.egg/sqlalchemy/types.py", line 629, in comparator_factory {}) TypeError: Cannot create a consistent method resolution order (MRO) for bases Comparator, TDComparator mediagoblin@lolly:~/mediagoblin$ ./bin/gmg dbupdate Traceback (most recent call last): File "./bin/gmg", line 9, in <module> load_entry_point('mediagoblin==0.4.1.dev', 'console_scripts', 'gmg')() File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 88, in main_cli setup_func = import_component(command_struct['setup']) File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/tools/common.py", line 34, in import_component __import__(module_name) File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/shell.py", line 21, in <module> from mediagoblin.gmg_commands import util as commands_util File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/gmg_commands/util.py", line 18, in <module> from mediagoblin import app File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/app.py", line 20, in <module> from mediagoblin.routing import get_url_map File "/media/nfs/home/mediagoblin/mediagoblin/mediagoblin/routing.py", line 21, in <module> from mediagoblin.admin.routing import admin_routes ImportError: No module named admin.routing
I tried the command twice and the errors were different.
Trying the third time the last error appears.
I am using mediagoblin dave thompson 421-mysql branch.
Note:
See TracTickets
for help on using tickets.
The 421-mysql branch is far outdated, and mysql is not a supported database backend. I am closing this ticket as invalid. If the issue still exists with a supported database backend (sqlite, postgresql), please re-open the ticket.