aquariumbio / pydent

Scripting APIs for Aquarium
http://aquariumbio.github.io/trident
MIT License
6 stars 2 forks source link

Data associations failing #92

Closed dvnstrcklnd closed 3 years ago

dvnstrcklnd commented 3 years ago

pydent version 1.0.3

plan = session.Plan.new(name="Associations Test")
plan.create()
plan.associate("foo", "bar")

produces

Traceback (most recent call last):
  File "test_associations.py", line 7, in <module>
    plan.associate("foo", "bar")
  File "/usr/local/lib/python3.8/site-packages/pydent/models/data_associations.py", line 60, in associate
    return self.session.utils.create_data_association(
  File "/usr/local/lib/python3.8/site-packages/pydent/interfaces.py", line 306, in create_data_association
    if data_association.id not in [da.id for da in model_inst.data_associations]:
AttributeError: 'NoneType' object has no attribute 'id'

This happens for associations on Plan or Operation.

dvnstrcklnd commented 3 years ago

Update: I get this error when I run point at my laptop installation (v2.8.1), or the Duke sandbox (v2.9.0), but not Nursery (v2.7.3)

dvnstrcklnd commented 3 years ago

And I am actually running pydent version 1.0.4

bjkeller commented 3 years ago

OK, my hypothesis is that this has something to do with the nginx configuration

On Fri, Dec 11, 2020 at 12:48 PM Devin Strickland notifications@github.com wrote:

Update: I get this error when I run point at my laptop installation (v2.8.1), or the Duke sandbox (v2.9.0), but not Nursery (v2.7.3)

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/aquariumbio/pydent/issues/92#issuecomment-743417743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJZ3PJJQSZTJRIQ5BNDZITSUKADVANCNFSM4UXANH3Q .

-- Ben Keller Aquarium Project Lead Klavins Lab Department of Electrical and Computer Engineering University of Washington bjkeller@uw.edu 206-685-6726

bjkeller commented 3 years ago

This was an Aquarium bug in the JSON controller. Fixed by https://github.com/aquariumbio/aquarium/commit/2c980e48a9be63d55be74229e2216f31ca1e744c