[sqlalchemy] Re: any effort getting sqlalchemy to work on ironpython is going on ?

2008-09-13 Thread Dan Eloff

On Thu, Sep 11, 2008 at 10:01 PM, sakesun [EMAIL PROTECTED] wrote:

 Traceback (most recent call last):
  File stdin, line 1, in module
 IndexError: Index was outside the bounds of the array.


I've had that before on complex python packages (e.g. Jinja2), I'm
pretty sure it's an internal error in IronPython, but beats me as to
where it's happening. You should try running it under the debugger.

-Dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] ConcurrentModificationError without concurrent modification?

2007-10-01 Thread Dan Eloff

ConcurrentModificationError: Deleted rowcount 3 does not match number
of objects deleted 1

raised by this code:

with Session() as session:
dl = session.merge(dl)
session.delete(dl)

There are no other sessions alive, so how can that possibly be a
concurrent modification?

Using sqlalchemy 0.4 beta 5, python 2.5, sqllite.

dl has a many-to-many relationship associated with it.

Any ideas why this is happening?

Thanks,
-Dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: ConcurrentModificationError without concurrent modification?

2007-10-01 Thread Dan Eloff

On 10/1/07, Michael Bayer [EMAIL PROTECTED] wrote:

 most likely too many association rows are present in the m2m table.


Do you mean there were redundant associations? How can I check if
that's the cause of the problem?

Thanks,
-Dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: backref relation is None instead of list?

2007-09-10 Thread Dan Eloff

On 9/9/07, Michael Bayer [EMAIL PROTECTED] wrote:
 I cant reproduce this, although the error to me seems like you are
 actually saying c._parent = [] (some list object).  If thats not it,
 send along a reproducing test script.

I tried to recreate it in the shell and failed.

I then loaded my application, changed _parents to parent and it just
worked. I don't think the change did it, I think it just disappeared
(maybe the reboot?) If it happens again I'll post it on this mailing
list.

Thanks for the tip about one-to-many relations, I was hoping they
worked like that, but when I got the errors I assumed it must not.

Sorry for the false alarm,

-Dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---