Traceback (most recent call last):


 "/Users/ken/Developer/projects/2018/parenting-service/library/tests.py", line 79, in test_smart_album

self.assertEqual(stories.count(), samples.count())


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/django/db/models/query.py", line 387, in count

return self.query.get_count(using=self.db)


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/django/db/models/sql/query.py", line 491, in get_count

number = obj.get_aggregation(using, ['__count'])['__count']


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/django/db/models/sql/query.py", line 476, in get_aggregation

result = compiler.execute_sql(SINGLE)


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/monkey_patch.py", line 32, in inner

return original(compiler, *args, **kwargs)


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/monkey_patch.py", line 79, in inner

table_cache_keys = _get_table_cache_keys(compiler)


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/utils.py", line 187, in _get_table_cache_keys

for t in _get_tables(db_alias, compiler.query)]


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/utils.py", line 164, in _get_tables

tables.update(_get_tables(db_alias, subquery))


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/utils.py", line 163, in _get_tables

for subquery in _find_subqueries_in_where(query.where.children):


 "/Users/ken/Developer/projects/2018/parenting-service/.direnv/python-3.6.1/lib/python3.6/site-packages/cachalot/utils.py", line 112, in _find_subqueries_in_where

rhs = child.rhs
AttributeError: 'ExtraJoinRestriction' object has no attribute 'rhs'

Traceback (most recent call last):


 "<console>", line 1, in <module>


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/libutils.py", line 81, in analyze_modules

analyze_module(project, resource)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/libutils.py", line 69, in analyze_module

project.pycore.analyze_module(resource)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/pycore.py", line 210, in analyze_module

self, pymodule, should_analyze, search_subscopes, followed_calls)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 16, in analyze_module

search_subscopes, followed_calls)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 24, in _analyze_node

search_subscopes, followed_calls)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 24, in _analyze_node

search_subscopes, followed_calls)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 38, in _analyze_node

rope.base.ast.walk(child, visitor)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/ast.py", line 41, in walk

walk(child, walker)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/ast.py", line 41, in walk

walk(child, walker)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/ast.py", line 41, in walk

walk(child, walker)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/ast.py", line 39, in walk

return method(node)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 76, in _Call

self._call(pyfunction, args)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soa.py", line 88, in _call

pyfunction, args.get_arguments(pyfunction.get_param_names()))


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/arguments.py", line 24, in get_arguments

result.append(pyname.get_object())


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/pynamesdef.py", line 22, in get_object

return self.pyobject.get()


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/utils/__init__.py", line 29, in newfunc

return func(self, *args, **kwds)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/pynames.py", line 188, in get

self.set(self.get_inferred(*args, **kwds))


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/utils/__init__.py", line 29, in newfunc

return func(self, *args, **kwds)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/pynamesdef.py", line 19, in _get_inferred

return rope.base.oi.soi.infer_assigned_object(self)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/utils/__init__.py", line 41, in newfunc

return func(*args, **kwds)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/soi.py", line 80, in infer_assigned_object

hinting_result = hint_assignment(pyname)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/type_hinting/providers/inheritance.py", line 63, in __call__

result = self._delegate(super_pyname)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/type_hinting/providers/composite.py", line 57, in __call__

result = delegate(pyname)


 "/Users/rbclark/.pyenv/versions/2.7.15/lib/python2.7/site-packages/rope/base/oi/type_hinting/providers/pep0484_type_comments.py", line 24, in __call__

lineno = _get_lineno_for_node(pyname.assignments[0].ast_node)
AttributeError: 'EvaluatedName' object has no attribute 'assignments'
