7 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: DPAPI Error| From | Sent On | Attachments |
|---|---|---|
| jon | 29 Jan 2008 18:14 | |
| Michael Bayer | 29 Jan 2008 19:08 | |
| jon | 30 Jan 2008 11:09 | |
| Michael Bayer | 30 Jan 2008 11:33 | |
| jon | 30 Jan 2008 12:14 | |
| Michael Bayer | 30 Jan 2008 13:09 | |
| jon | 21 Feb 2008 14:35 |
| Subject: | [sqlalchemy] Re: DPAPI Error![]() |
|---|---|
| From: | Michael Bayer (mike...@zzzcomputing.com) |
| Date: | 01/30/2008 11:33:51 AM |
| List: | com.googlegroups.sqlalchemy |
On Jan 30, 2008, at 2:10 PM, jon wrote:
Thanks for getting back to me and apologies for the stacktrace barf ;-)
One thing...I have the following line in my environment.py:
config['pylons.g'].sa_engine = engine_from_config(config, 'sqlalchemy.', convert_unicode=True, pool_size=1, max_overflow=3)
I can turn on/off the convert_unicode option and I still get the same error. I spoke with one of our DBAs and he said the results of roleseq.nextval is a number. SA is looking for a String here or None, according to the exception error:
exceptions.TypeError: expecting None or a string
Sooo...is this still an SA thing and if so what do you suggest as a workaround?
jon -
none of that has anything to do with the error message here. You need to grep thorugh your code for the specific string : Sequence(u'roleseq'), or something equivalent. I know its there because the Oracle dialect does not invent or reflect any sequence names. You need to make that sequence name into a regular string object; as above you'd take out the "u" inside the parenthesis.
let me know when you find it as I'd like to confirm this is the source of the issue....thanks !
- mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqla...@googlegroups.com
To unsubscribe from this group, send email to
sqla...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---




