Could not find backend mysql+pymsql

Bug #1399486 reported by Joshua Harlow
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
taskflow
Fix Released
High
Joshua Harlow

Bug Description

When attempting to use the following connection to a persistence backend it fails...

>>> from taskflow.persistence import backends
>>>
>>> config = {
... 'connection': 'mysql+pymysql://root@localhost/taskflow',
... }
>>> b = backends.fetch(config)
>>> print b.engine

The failure is along the lines of:

taskflow.exceptions.NotFound: Could not find backend mysql+pymsql: No 'taskflow.persistence' driver found, looking for 'mysql+pymsql'

This is due to the fact that we look for a driver with that entrypoint name and our names don't account for this kind of dialect support (which sqlalchemy supports).

Joshua Harlow (harlowja)
Changed in taskflow:
importance: Undecided → High
assignee: nobody → Joshua Harlow (harlowja)
milestone: none → next-kilo
status: New → Triaged
Changed in taskflow:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to taskflow (master)

Reviewed: https://review.openstack.org/139273
Committed: https://git.openstack.org/cgit/openstack/taskflow/commit/?id=81505533675d3edff88ab0dc1ac04b0a558bbbbe
Submitter: Jenkins
Branch: master

commit 81505533675d3edff88ab0dc1ac04b0a558bbbbe
Author: Joshua Harlow <email address hidden>
Date: Thu Dec 4 16:11:56 2014 -0800

    Fix split on "+" for connection strings that specify dialects

    Fixes bug 1399486

    Change-Id: I3b7e6331751f25d9c4221393e8329934925791e7

Changed in taskflow:
status: In Progress → Fix Committed
Joshua Harlow (harlowja)
Changed in taskflow:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.