{"action":"created","issue":{"url":"https://api.github.com/repos/cms-dev/cms/issues/587","repository_url":"https://api.github.com/repos/cms-dev/cms","labels_url":"https://api.github.com/repos/cms-dev/cms/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/cms-dev/cms/issues/587/comments","events_url":"https://api.github.com/repos/cms-dev/cms/issues/587/events","html_url":"https://github.com/cms-dev/cms/issues/587","id":141223220,"number":587,"title":"Printing Fails with an exception","user":{"login":"praveingk","id":9940568,"avatar_url":"https://avatars.githubusercontent.com/u/9940568?v=3","gravatar_id":"","url":"https://api.github.com/users/praveingk","html_url":"https://github.com/praveingk","followers_url":"https://api.github.com/users/praveingk/followers","following_url":"https://api.github.com/users/praveingk/following{/other_user}","gists_url":"https://api.github.com/users/praveingk/gists{/gist_id}","starred_url":"https://api.github.com/users/praveingk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveingk/subscriptions","organizations_url":"https://api.github.com/users/praveingk/orgs","repos_url":"https://api.github.com/users/praveingk/repos","events_url":"https://api.github.com/users/praveingk/events{/privacy}","received_events_url":"https://api.github.com/users/praveingk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T09:58:00Z","updated_at":"2016-03-16T13:15:56Z","closed_at":null,"body":"I had configured printer for the Contest, and also tested it using lpr/lpstat.\r\n\r\nHowever, When a user submits the printing job, the below exception is thrown.\r\nCan you kindly let me know the way to fix it?\r\n\r\n\r\n2016-03-16 17:54:48,747 - ERROR [Contest,0] Uncaught exception (TypeError(u\"PrintJob.__init__() got an unexpected keyword argument 'user'\",)) while processing a request: Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/web.py\", line 1346, in _execute\r\n    result = method(*self.path_args, **self.path_kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/web.py\", line 2626, in wrapper\r\n    return method(self, *args, **kwargs)\r\n  File \"/home/sadm/.local/lib/python2.7/site-packages/cms-1.3.dev0-py2.7.egg/cms/server/util.py\", line 196, in wrapped\r\n    return func(self, *args, **kwargs)\r\n  File \"/home/sadm/.local/lib/python2.7/site-packages/cms-1.3.dev0-py2.7.egg/cms/server/contest/handlers/main.py\", line 337, in post\r\n    digest=digest)\r\n  File \"<string>\", line 4, in __init__\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/state.py\", line 306, in _initialize_instance\r\n    manager.dispatch.init_failure(self, args, kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py\", line 60, in __exit__\r\n    compat.reraise(exc_type, exc_value, exc_tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/state.py\", line 303, in _initialize_instance\r\n    return manager.original_init(*mixed[1:], **kwargs)\r\n  File \"/home/sadm/.local/lib/python2.7/site-packages/cms-1.3.dev0-py2.7.egg/cms/db/base.py\", line 230, in __init__\r\n    (cls.__name__, kwargs.popitem()[0]))\r\nTypeError: PrintJob.__init__() got an unexpected keyword argument 'user'\r\n"},"comment":{"url":"https://api.github.com/repos/cms-dev/cms/issues/comments/197322905","html_url":"https://github.com/cms-dev/cms/issues/587#issuecomment-197322905","issue_url":"https://api.github.com/repos/cms-dev/cms/issues/587","id":197322905,"user":{"login":"praveingk","id":9940568,"avatar_url":"https://avatars.githubusercontent.com/u/9940568?v=3","gravatar_id":"","url":"https://api.github.com/users/praveingk","html_url":"https://github.com/praveingk","followers_url":"https://api.github.com/users/praveingk/followers","following_url":"https://api.github.com/users/praveingk/following{/other_user}","gists_url":"https://api.github.com/users/praveingk/gists{/gist_id}","starred_url":"https://api.github.com/users/praveingk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveingk/subscriptions","organizations_url":"https://api.github.com/users/praveingk/orgs","repos_url":"https://api.github.com/users/praveingk/repos","events_url":"https://api.github.com/users/praveingk/events{/privacy}","received_events_url":"https://api.github.com/users/praveingk/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T13:15:56Z","updated_at":"2016-03-16T13:15:56Z","body":"Hi Stefano,\n\nI removed the entire cms-1.3.dev0-py2.7.egg directory, and installed again\nwith the changes. Still I face the same error.\n\nThanks,\nPravein.\n\nOn Wed, Mar 16, 2016 at 6:57 PM, Stefano Maggiolo <notifications@github.com>\nwrote:\n\n> That's the same line, so you must be missing something. You can try remove\n> entirely /usr/local/lib/python2.7/dist-packages/cms-1.3.dev0-py2.7.egg and\n> reinstall, or maybe start by removing\n> \"/usr/local/lib/python2.7/dist-packages/cms-1.3.dev0-py2.7.egg/cms/server/contest/handlers/main.pyc\n> (sometimes I had problems that python was actually executing a stale .pyc)\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cms-dev/cms/issues/587#issuecomment-197260778>\n>\n"}}