{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16352","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16352/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16352/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16352/events","html_url":"https://github.com/ansible/ansible/issues/16352","id":160973826,"number":16352,"title":"[mac os x] ansible-galaxy: \"unexpected Exception: name must be a byte string\" when installing from requirements file","user":{"login":"php-coder","id":87088,"avatar_url":"https://avatars.githubusercontent.com/u/87088?v=3","gravatar_id":"","url":"https://api.github.com/users/php-coder","html_url":"https://github.com/php-coder","followers_url":"https://api.github.com/users/php-coder/followers","following_url":"https://api.github.com/users/php-coder/following{/other_user}","gists_url":"https://api.github.com/users/php-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/php-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-coder/subscriptions","organizations_url":"https://api.github.com/users/php-coder/orgs","repos_url":"https://api.github.com/users/php-coder/repos","events_url":"https://api.github.com/users/php-coder/events{/privacy}","received_events_url":"https://api.github.com/users/php-coder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T20:59:19Z","updated_at":"2016-06-17T22:03:49Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.0.0\r\n  config file =\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nMac OS X 10.9.5\r\nPython 2.7.5\r\nAnsible 2.1.0.0 (from brew)\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\nWhen I'm trying to install role from ansible galaxy by using `requirements.yml` file, ansible fails.\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```sh\r\n$ cat requirements.yml\r\n- src: php-coder.oraclejdk\r\n```\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nERROR! Unexpected Exception: name must be a byte string\r\n```\r\n\r\nI've googled for this error message and found only one report: https://discourse.roots.io/t/failure-to-install-ansible-galaxy-roles/6940 there is author has exactly the same problem like me. Also there is workaround to downgrade ansible from 2.1 to 2.0 version. I've tried it and it helped."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/226892391","html_url":"https://github.com/ansible/ansible/issues/16352#issuecomment-226892391","issue_url":"https://api.github.com/repos/ansible/ansible/issues/16352","id":226892391,"user":{"login":"jctanner","id":1869705,"avatar_url":"https://avatars.githubusercontent.com/u/1869705?v=3","gravatar_id":"","url":"https://api.github.com/users/jctanner","html_url":"https://github.com/jctanner","followers_url":"https://api.github.com/users/jctanner/followers","following_url":"https://api.github.com/users/jctanner/following{/other_user}","gists_url":"https://api.github.com/users/jctanner/gists{/gist_id}","starred_url":"https://api.github.com/users/jctanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jctanner/subscriptions","organizations_url":"https://api.github.com/users/jctanner/orgs","repos_url":"https://api.github.com/users/jctanner/repos","events_url":"https://api.github.com/users/jctanner/events{/privacy}","received_events_url":"https://api.github.com/users/jctanner/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T22:03:49Z","updated_at":"2016-06-17T22:03:49Z","body":"Testcase ...\r\n\r\n```\r\njtanner-OSX:AP-16352 jtanner$ cat ansible.cfg\r\n[defaults]\r\nroles_path = roles\r\njtanner-OSX:AP-16352 jtanner$ cat requirements.yml\r\n- src: php-coder.oraclejdk\r\njtanner-OSX:AP-16352 jtanner$ cat test.sh\r\n#!/bin/bash\r\nrm -rf roles/*\r\nansible-galaxy -vvvv install -r requirements.yml\r\n```\r\n\r\nResult ...\r\n\r\n```\r\njtanner-OSX:AP-16352 jtanner$ ./test.sh\r\nUsing /Users/jtanner/workspace/issues/AP-16352/ansible.cfg as config file\r\nOpened /Users/jtanner/.ansible_galaxy\r\nValidate TLS certificates: True\r\nfound role {'scm': None, 'src': 'php-coder.oraclejdk', 'version': '', 'name': 'php-coder.oraclejdk'} in yaml file\r\nValidate TLS certificates: True\r\nInstalling role php-coder.oraclejdk\r\nOpened /Users/jtanner/.ansible_galaxy\r\nValidate TLS certificates: True\r\nInitial connection to galaxy_server: https://galaxy.ansible.com\r\nBase API: https://galaxy.ansible.com/api/v1\r\n- downloading role 'oraclejdk', owned by php-coder\r\nhttps://galaxy.ansible.com/api/v1/roles/?owner__username=php-coder&name=oraclejdk\r\nhttps://galaxy.ansible.com/api/v1/roles/2093/versions/?page_size=50\r\n- downloading role from https://github.com/php-coder/ansible-role-oraclejdk/archive/1.2.tar.gz\r\n- extracting php-coder.oraclejdk to roles/php-coder.oraclejdk\r\n- php-coder.oraclejdk was installed successfully\r\n```"}}
{"actor":{"display_login":"jctanner"}}