Opened 4 months ago

Closed 4 months ago

#11651 closed defect (fixed)

MySQL to PosgreSQL switch fails: no attribute get_db_ctx

Reported by: Quince Owned by: ChrisNelson
Priority: high Component: TracJsGanttPlugin
Severity: major Keywords:
Cc: Quince Trac Release: 1.0


Currently Trac 1.0.1 running on MySQL.

Created database called 'trac' in PostgreSQL and added all privileges for user 'tracuser'.

Downloaded TracMigratePlugin.

./ --in-place /srv/trac postgres://tracuser:xxxxxxxx@

/usr/lib/python2.7/site-packages/ UserWarning: /root/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)
Traceback (most recent call last):
  File "./", line 55, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "./", line 51, in main
    return TracMigrationCommand(env)._do_migrate(dest, dburi)
  File "/tmp/tracmigrate/", line 29, in _do_migrate
    return self._do_migrate_inplace(dburi)
  File "/tmp/tracmigrate/", line 60, in _do_migrate_inplace
    env = self._create_env(env_path, dburi)
  File "/tmp/tracmigrate/", line 92, in _create_env
    env = Environment(env_path, create=True, options=options)
  File "/usr/lib/python2.7/site-packages/trac/", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/trac/", line 288, in __init__
  File "build/bdist.linux-x86_64/egg/tracjsgantt/", line 81, in environment_created
AttributeError: 'Environment' object has no attribute 'get_db_ctx'

How to fix?
Pls help

Attachments (0)

Change History (3)

comment:1 Changed 4 months ago by rjollos

Attempted to fix in [13790]. Please report back if the issue is fixed now.

comment:2 Changed 4 months ago by Quince

Thanks, this works.

comment:3 Changed 4 months ago by Quince

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ChrisNelson. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.