{"action":"opened","issue":{"url":"https://api.github.com/repos/ascribe/image-match/issues/38","repository_url":"https://api.github.com/repos/ascribe/image-match","labels_url":"https://api.github.com/repos/ascribe/image-match/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/ascribe/image-match/issues/38/comments","events_url":"https://api.github.com/repos/ascribe/image-match/issues/38/events","html_url":"https://github.com/ascribe/image-match/issues/38","id":172053016,"number":38,"title":"Storing and Searching","user":{"login":"Lvctao","id":16861310,"avatar_url":"https://avatars.githubusercontent.com/u/16861310?v=3","gravatar_id":"","url":"https://api.github.com/users/Lvctao","html_url":"https://github.com/Lvctao","followers_url":"https://api.github.com/users/Lvctao/followers","following_url":"https://api.github.com/users/Lvctao/following{/other_user}","gists_url":"https://api.github.com/users/Lvctao/gists{/gist_id}","starred_url":"https://api.github.com/users/Lvctao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lvctao/subscriptions","organizations_url":"https://api.github.com/users/Lvctao/orgs","repos_url":"https://api.github.com/users/Lvctao/repos","events_url":"https://api.github.com/users/Lvctao/events{/privacy}","received_events_url":"https://api.github.com/users/Lvctao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T04:37:35Z","updated_at":"2016-08-19T04:37:35Z","closed_at":null,"body":"This is the example in quick start, a TypeError \"**_TypeError: unorderable types: dict() > dict()_**\" occured when I run it. Have you ever encountered this problem?\r\n\r\n**The code is:**\r\n\r\n`from elasticsearch import Elasticsearch\r\nfrom image_match.elasticsearch_driver import SignatureES\r\n\r\nes = Elasticsearch()\r\nses = SignatureES(es)\r\n\r\nses.add_image('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg/687px-Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg')\r\n\r\nses.add_image('https://pixabay.com/static/uploads/photo/2012/11/28/08/56/mona-lisa-67506_960_720.jpg')\r\n\r\nses.add_image('https://upload.wikimedia.org/wikipedia/commons/e/e0/Caravaggio_-_Cena_in_Emmaus.jpg')\r\n\r\nses.add_image('https://c2.staticflickr.com/8/7158/6814444991_08d82de57e_z.jpg')\r\n\r\nlist = ses.search_image('https://pixabay.com/static/uploads/photo/2012/11/28/08/56/mona-lisa-67506_960_720.jpg')\r\n\r\nprint(list)`\r\n\r\nWhen it was excuted, \"**_TypeError: unorderable types: dict() > dict()_**\" occurred. The detailed problem is as follows.\r\n`runfile('/Users/lvchangtao/local-image-match/storeSearching.py', wdir='/Users/lvchangtao/local-image-match')\r\n\r\n/Users/lvchangtao/anaconda3/lib/python3.5/site-packages/image_match/goldberg.py:402: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n\r\nlower_y_lim:upper_y_lim]) # no smoothing here as in the paper\r\n\r\nTraceback (most recent call last):\r\n\r\nFile \"\", line 1, in\r\n\r\nFile \"/Users/lvchangtao/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 714, in runfile\r\nexecfile(filename, namespace)\r\n\r\nFile \"/Users/lvchangtao/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 89, in execfile\r\nexec(compile(f.read(), filename, 'exec'), namespace)\r\n\r\nFile \"/Users/lvchangtao/local-image-match/storeSearching.py\", line 20, in \r\nlist = ses.search_image('https://pixabay.com/static/uploads/photo/2012/11/28/08/56/mona-lisa-67506_960_720.jpg')\r\n\r\nFile \"/Users/lvchangtao/anaconda3/lib/python3.5/site-packages/image_match/signature_database_base.py\", line 270, in search_image\r\nr = sorted(np.unique(result).tolist(), key=itemgetter('dist'))\r\n\r\nFile \"/Users/lvchangtao/anaconda3/lib/python3.5/site-packages/numpy/lib/arraysetops.py\", line 198, in unique\r\nar.sort()\r\n\r\nTypeError: unorderable types: dict() > dict()`"}}
{"actor":{"display_login":"Lvctao"}}