{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40","repository_url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python","labels_url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40/comments","events_url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40/events","html_url":"https://github.com/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40","id":331594031,"node_id":"MDU6SXNzdWUzMzE1OTQwMzE=","number":40,"title":"Unable to publish service, @services.returns(float) annotation doesn't work","user":{"login":"sauercrowd","id":4764029,"node_id":"MDQ6VXNlcjQ3NjQwMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/4764029?v=4","gravatar_id":"","url":"https://api.github.com/users/sauercrowd","html_url":"https://github.com/sauercrowd","followers_url":"https://api.github.com/users/sauercrowd/followers","following_url":"https://api.github.com/users/sauercrowd/following{/other_user}","gists_url":"https://api.github.com/users/sauercrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/sauercrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sauercrowd/subscriptions","organizations_url":"https://api.github.com/users/sauercrowd/orgs","repos_url":"https://api.github.com/users/sauercrowd/repos","events_url":"https://api.github.com/users/sauercrowd/events{/privacy}","received_events_url":"https://api.github.com/users/sauercrowd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T13:44:08Z","updated_at":"2018-07-13T19:45:39Z","closed_at":null,"author_association":"NONE","body":"I went through the [tutorial](https://notebooks.azure.com/Microsoft/libraries/samples/html/Creation%20and%20Deployment%20of%20an%20Azure%20ML%20Web%20Service.ipynb) and got stuck at the publish service fragment:\r\n\r\n```\r\nfrom azureml import services\r\n@services.publish(workspace_id, authorization_token)\r\n@services.types(activ=int, beaver=float, time=int)\r\n@services.returns(float)\r\ndef beaver_body_temp_predictor(activ, beaver, time):\r\n    return regressor.predict([activ, beaver, time])\r\n```\r\n\r\nIn the line `@services.returns(float)` I get the error \r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-19-3efde61743a5> in <module>()\r\n      2 @services.publish(workspace_id, authorization_token)\r\n      3 @services.types(activ=int, beaver=float, time=int)\r\n----> 4 @services.returns(float)\r\n      5 def beaver_body_temp_predictor(activ, beaver, time):\r\n      6     return regressor.predict([activ, beaver, time])\r\n...\r\n~/anaconda3_501/lib/python3.6/site-packages/azureml/services.py in _get_main_source(function)\r\n    626         # we're marshalling the arguments in.\r\n    627         main_source += u'    for i in range(df1.shape[0]):' + chr(10)\r\n--> 628         for arg in _get_args(function):\r\n    629             arg_type = _get_arg_type(arg, function)\r\n    630             if pandas is not None and arg_type is pandas.DataFrame:\r\n\r\n~/anaconda3_501/lib/python3.6/site-packages/azureml/services.py in _get_args(func)\r\n    481     if args.varargs is not None:\r\n    482         all_args.append(args.varargs)\r\n--> 483     if args.keywords is not None:\r\n    484         all_args.append(args.keywords)\r\n    485     return all_args\r\n\r\n\r\nAttributeError: 'Arguments' object has no attribute 'keywords'\r\n```"},"comment":{"url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/comments/404934903","html_url":"https://github.com/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40#issuecomment-404934903","issue_url":"https://api.github.com/repos/Azure/Azure-MachineLearning-ClientLibrary-Python/issues/40","id":404934903,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDkzNDkwMw==","user":{"login":"prashil2792","id":19980223,"node_id":"MDQ6VXNlcjE5OTgwMjIz","avatar_url":"https://avatars2.githubusercontent.com/u/19980223?v=4","gravatar_id":"","url":"https://api.github.com/users/prashil2792","html_url":"https://github.com/prashil2792","followers_url":"https://api.github.com/users/prashil2792/followers","following_url":"https://api.github.com/users/prashil2792/following{/other_user}","gists_url":"https://api.github.com/users/prashil2792/gists{/gist_id}","starred_url":"https://api.github.com/users/prashil2792/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashil2792/subscriptions","organizations_url":"https://api.github.com/users/prashil2792/orgs","repos_url":"https://api.github.com/users/prashil2792/repos","events_url":"https://api.github.com/users/prashil2792/events{/privacy}","received_events_url":"https://api.github.com/users/prashil2792/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T19:45:39Z","updated_at":"2018-07-13T19:45:39Z","author_association":"NONE","body":"@sauercrowd Python 3 version is still not supported. "}}
{"actor":{"display_login":"prashil2792"}}