SA 0.8.0: Invalid argument(s) 'label_length'

26 views
Skip to first unread message

Anthony Kong

unread,
May 21, 2013, 11:04:44 PM5/21/13
to sqlal...@googlegroups.com
Hi, all,

I have recently upgraded to use SA 0.8.0.

Now when I run this statement,

     db = create_engine("sybase://", creator=self.buildConnection, echo=echo, label_length=30)

it throws a TypeError exception:

TypeError: Invalid argument(s) 'label_length' sent to create_engine(), using configuration SybaseDialect_pyodbc/QueuePool/Engine.  Please check that the keyword arguments are appropriate for this combination of components.
Locals:

What is the root cause of it?

 If I remove 'label_length=30', it will work fine. How can I set this value in 0.8.0? Do I still need to?

Cheers, Tony

Michael Bayer

unread,
May 22, 2013, 12:09:30 PM5/22/13
to sqlal...@googlegroups.com
this is a bug that goes back through 0.7, I've added http://www.sqlalchemy.org/trac/ticket/2732 for this.

For now I don't think you need the label_length argument, the dialect should have that under control.  if you do need it, you can set it after the fact:

engine.dialect.label_length = 30


--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anthony Kong

unread,
May 23, 2013, 1:06:12 AM5/23/13
to sqlal...@googlegroups.com
Hi, Michale,

Thanks very much! Setting the label_length after the engine creation works for us!

Cheers
Reply all
Reply to author
Forward
0 new messages