Re: [sqlalchemy] Exception on '.refresh' for certain objects - state.load_path Tuple is empty

2021-03-09 Thread Mike Bayer
still kind of weird, I am not seeing any issue like this that was fixed, wouldn't mind seeing a reproducer case but no worries. On Mon, Mar 8, 2021, at 6:44 PM, Gmoney wrote: > Looks like that did the trick! Should have tried that first, but got lazy > when conda was resisting my update attemp

Re: [sqlalchemy] Exception on '.refresh' for certain objects - state.load_path Tuple is empty

2021-03-08 Thread Gmoney
Looks like that did the trick! Should have tried that first, but got lazy when conda was resisting my update attempts earlier. Thank you On Monday, March 8, 2021 at 4:38:13 PM UTC-5 Mike Bayer wrote: > it looks like a bug unless you are manipulating the InstanceState. I > would upgrade to SQL

Re: [sqlalchemy] Exception on '.refresh' for certain objects - state.load_path Tuple is empty

2021-03-08 Thread Mike Bayer
it looks like a bug unless you are manipulating the InstanceState. I would upgrade to SQLAlchemy 1.3.23 first to make sure it hasn't been fixed. On Mon, Mar 8, 2021, at 1:09 PM, Gmoney wrote: > On python 3.7 SQLAlchemy 1.3.13 > I'm running into an issue when doing a session.refresh(orm_object

[sqlalchemy] Exception on '.refresh' for certain objects - state.load_path Tuple is empty

2021-03-08 Thread Gmoney
On python 3.7 SQLAlchemy 1.3.13 I'm running into an issue when doing a session.refresh(orm_object) where for certain objects it throws an exception because in line 709 of orm/loading.py, the 'state.load_path' is an empty tuple. Attached the relevant snippet of the stack dump below. This was si