{"action":"created","issue":{"url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/23","labels_url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/23/comments","events_url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/23/events","html_url":"https://github.com/dsnopek/anki-sync-server/issues/23","id":59786879,"number":23,"title":"Recent efforts to install fail","user":{"login":"dper","id":3026536,"avatar_url":"https://avatars.githubusercontent.com/u/3026536?v=3","gravatar_id":"","url":"https://api.github.com/users/dper","html_url":"https://github.com/dper","followers_url":"https://api.github.com/users/dper/followers","following_url":"https://api.github.com/users/dper/following{/other_user}","gists_url":"https://api.github.com/users/dper/gists{/gist_id}","starred_url":"https://api.github.com/users/dper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dper/subscriptions","organizations_url":"https://api.github.com/users/dper/orgs","repos_url":"https://api.github.com/users/dper/repos","events_url":"https://api.github.com/users/dper/events{/privacy}","received_events_url":"https://api.github.com/users/dper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-04T11:44:17Z","updated_at":"2015-06-04T03:28:03Z","closed_at":null,"body":"If I install anki-sync-server and anki from source, and then I adjust the settings in anki so it tries to sync from my local server, sync does not work.  The client and server appear to start communicating but then it errors out.\r\n\r\nIf I run the server with `debug`, I get the following error.\r\n\r\n````\r\nINFO:root:CollectionThread[/home/d/src/anki-sync-server/collections/d/collection.anki2]: Running meta(*[], **{})\r\nERROR:root:CollectionThread[/home/d/src/anki-sync-server/collections/d/collection.anki2]: Unable to meta(*[], **{}): 'MediaManager' object has no attribute 'usn'\r\nTraceback (most recent call last):\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/threading.py\", line 95, in _run\r\n    ret = self.wrapper.execute(func, args, kw, return_queue)\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/collection.py\", line 58, in execute\r\n    ret = func(*args, **kw)\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/apps/sync_app.py\", line 470, in runFunc\r\n    result = func(**data)\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/apps/sync_app.py\", line 75, in meta\r\n    'musn': self.col.media.usn(),\r\nAttributeError: 'MediaManager' object has no attribute 'usn'\r\n----------------------------------------\r\nException happened during processing of request from ('127.0.0.1', 37860)\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n    self.finish_request(request, client_address)\r\n  File \"/usr/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/usr/lib/python2.7/SocketServer.py\", line 655, in __init__\r\n    self.handle()\r\n  File \"/usr/lib/python2.7/dist-packages/paste/httpserver.py\", line 442, in handle\r\n    BaseHTTPRequestHandler.handle(self)\r\n  File \"/usr/lib/python2.7/BaseHTTPServer.py\", line 340, in handle\r\n    self.handle_one_request()\r\n  File \"/usr/lib/python2.7/dist-packages/paste/httpserver.py\", line 437, in handle_one_request\r\n    self.wsgi_execute()\r\n  File \"/usr/lib/python2.7/dist-packages/paste/httpserver.py\", line 287, in wsgi_execute\r\n    self.wsgi_start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/paste/translogger.py\", line 68, in __call__\r\n    return self.application(environ, replacement_start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/paste/urlmap.py\", line 206, in __call__\r\n    return app(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/webob/dec.py\", line 130, in __call__\r\n    resp = self.call_func(req, *args, **self.kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/webob/dec.py\", line 195, in call_func\r\n    return self.func(req, *args, **kwargs)\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/apps/sync_app.py\", line 476, in __call__\r\n    result = thread.execute(runFunc)\r\n  File \"/home/d/src/anki-sync-server/AnkiServer/threading.py\", line 76, in execute\r\n    raise ret\r\nAttributeError: 'MediaManager' object has no attribute 'usn'\r\n----------------------------------------\r\n````\r\n\r\nIn the client, at the same time, I get the generic pop-up error.\r\n\r\n````\r\nSyncing failed:\r\nAnkiWeb encountered an error. Please try again in a few minutes, and if the problem persists, please file a bug report.\r\n````\r\n\r\nI assume that the client is too new of a version relative to the server.  But I don't know what to do about that.  Is this kind of thing the kind of thing that could be fixed with some screwing around?  Is it a gorilla of a problem?  Thanks for any thoughts or help!"},"comment":{"url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/comments/108703762","html_url":"https://github.com/dsnopek/anki-sync-server/issues/23#issuecomment-108703762","issue_url":"https://api.github.com/repos/dsnopek/anki-sync-server/issues/23","id":108703762,"user":{"login":"dper","id":3026536,"avatar_url":"https://avatars.githubusercontent.com/u/3026536?v=3","gravatar_id":"","url":"https://api.github.com/users/dper","html_url":"https://github.com/dper","followers_url":"https://api.github.com/users/dper/followers","following_url":"https://api.github.com/users/dper/following{/other_user}","gists_url":"https://api.github.com/users/dper/gists{/gist_id}","starred_url":"https://api.github.com/users/dper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dper/subscriptions","organizations_url":"https://api.github.com/users/dper/orgs","repos_url":"https://api.github.com/users/dper/repos","events_url":"https://api.github.com/users/dper/events{/privacy}","received_events_url":"https://api.github.com/users/dper/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T03:28:03Z","updated_at":"2015-06-04T03:28:03Z","body":"Unfortunately, the hard-coding of paths also happens in Anki itself.  (I suggested upstream that this was undesirable but was dismissed.)"}}