Skip to content

Instantly share code, notes, and snippets.

@dimapaloskin
Created June 3, 2014 12:34
Show Gist options
  • Save dimapaloskin/65c1aa32ab1e6fc3528d to your computer and use it in GitHub Desktop.
Save dimapaloskin/65c1aa32ab1e6fc3528d to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/var/www/mongoengine-gevent-socket.io/resources/artifact/resource.py", line 36, in on_READ_LIST
bundle = resource.read_list()
File "/var/www/mongoengine-gevent-socket.io/debug_utils.py", line 83, in timed
result = method(*args, **kw)
File "/var/www/mongoengine-gevent-socket.io/core/resource.py", line 127, in read_list
q = self.get_object_list(bundle)
File "/var/www/mongoengine-gevent-socket.io/core/resource.py", line 119, in get_object_list
q = q.options(joinedload(m)) #.load_only('id'),
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1062, in options
return self._options(False, *args)
File "<string>", line 2, in _options
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/base.py", line 165, in generate
fn(self, *args[1:], **kw)
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1079, in _options
opt.process_query(self)
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 89, in process_query
self._process(query, True)
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 289, in _process
val._bind_loader(query, query._attributes, raiseerr)
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 359, in _bind_loader
raiseerr)
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/strategy_options.py", line 421, in _find_entity_prop_comparator
x in query._mapper_entities))
ArgumentError: Can't find property 'artists' on any entity specified in this Query. Note the full path from root (Mapper|Artifact|collectrium_artifact,Mapper|Artist|collectrium_artist) to target entity must be specified.
Can't find property 'artists' on any entity specified in this Query. Note the full path from root (Mapper|Artifact|collectrium_artifact,Mapper|Artist|collectrium_artist) to target entity must be specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment