{"action":"created","issue":{"url":"https://api.github.com/repos/certbot/certbot/issues/5015","repository_url":"https://api.github.com/repos/certbot/certbot","labels_url":"https://api.github.com/repos/certbot/certbot/issues/5015/labels{/name}","comments_url":"https://api.github.com/repos/certbot/certbot/issues/5015/comments","events_url":"https://api.github.com/repos/certbot/certbot/issues/5015/events","html_url":"https://github.com/certbot/certbot/issues/5015","id":249266124,"node_id":"MDU6SXNzdWUyNDkyNjYxMjQ=","number":5015,"title":"ContextualVersionConflict with idna","user":{"login":"rfleschenberg","id":4319330,"node_id":"MDQ6VXNlcjQzMTkzMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4319330?v=4","gravatar_id":"","url":"https://api.github.com/users/rfleschenberg","html_url":"https://github.com/rfleschenberg","followers_url":"https://api.github.com/users/rfleschenberg/followers","following_url":"https://api.github.com/users/rfleschenberg/following{/other_user}","gists_url":"https://api.github.com/users/rfleschenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rfleschenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfleschenberg/subscriptions","organizations_url":"https://api.github.com/users/rfleschenberg/orgs","repos_url":"https://api.github.com/users/rfleschenberg/repos","events_url":"https://api.github.com/users/rfleschenberg/events{/privacy}","received_events_url":"https://api.github.com/users/rfleschenberg/received_events","type":"User","site_admin":false},"labels":[{"id":200587469,"node_id":"MDU6TGFiZWwyMDA1ODc0Njk=","url":"https://api.github.com/repos/certbot/certbot/labels/area:%20debian%20/%20ubuntu","name":"area: debian / ubuntu","color":"c5def5","default":false},{"id":245387015,"node_id":"MDU6TGFiZWwyNDUzODcwMTU=","url":"https://api.github.com/repos/certbot/certbot/labels/area:%20documentation","name":"area: documentation","color":"c5def5","default":false},{"id":568928468,"node_id":"MDU6TGFiZWw1Njg5Mjg0Njg=","url":"https://api.github.com/repos/certbot/certbot/labels/area:%20pip","name":"area: pip","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-08-10T08:10:57Z","updated_at":"2018-12-06T18:35:10Z","closed_at":"2017-09-05T22:47:00Z","author_association":"NONE","body":"## My operating system is (include version):\r\n\r\nCan reproduce on Debian 8 and Ubuntu 16.04, did not test other systems, but it seems likely all OS are affected.\r\n\r\n## I installed Certbot with (certbot-auto, OS package manager, pip, etc):\r\n\r\npip\r\n\r\n## I ran this command and it produced this output:\r\n\r\n`certbot`:\r\n\r\n```\r\nAn unexpected error occurred:\r\nContextualVersionConflict: (idna 2.6 (/tmp/letest/lib/python2.7/site-packages), Requirement.parse('idna<2.6,>=2.5'), set(['requests']))\r\nPlease see the logfile '/tmp/tmpFj1SPt' for more details.\r\n```\r\n\r\n## Certbot's behavior differed from what I expected because:\r\n\r\nIt should work ;)\r\n\r\n## Here is the full, reproducible output:\r\n\r\n```\r\nrene@rene-desktop /tmp % virtualenv letest\r\nRunning virtualenv with interpreter /usr/bin/python2\r\nNew python executable in /tmp/letest/bin/python2\r\nAlso creating executable in /tmp/letest/bin/python\r\nInstalling setuptools, pkg_resources, pip, wheel...done.\r\nrene@rene-desktop /tmp % source letest/bin/activate\r\n(letest) rene@rene-desktop /tmp % pip install certbot\r\nCollecting certbot\r\n  Downloading certbot-0.17.0-py2.py3-none-any.whl (269kB)\r\n    100% |████████████████████████████████| 276kB 807kB/s \r\nCollecting zope.interface (from certbot)\r\n  Downloading zope.interface-4.4.2-cp27-cp27mu-manylinux1_x86_64.whl (170kB)\r\n    100% |████████████████████████████████| 174kB 1.3MB/s \r\nCollecting pyrfc3339 (from certbot)\r\n  Downloading pyRFC3339-1.0-py2.py3-none-any.whl\r\nRequirement already satisfied: setuptools>=1.0 in ./letest/lib/python2.7/site-packages (from certbot)\r\nCollecting zope.component (from certbot)\r\n  Downloading zope.component-4.4.0-py2.py3-none-any.whl (70kB)\r\n    100% |████████████████████████████████| 71kB 1.6MB/s \r\nCollecting pytz (from certbot)\r\n  Using cached pytz-2017.2-py2.py3-none-any.whl\r\nCollecting ConfigArgParse>=0.9.3 (from certbot)\r\n  Downloading ConfigArgParse-0.12.0.tar.gz (41kB)\r\n    100% |████████████████████████████████| 51kB 2.4MB/s \r\nCollecting configobj (from certbot)\r\n  Downloading configobj-5.0.6.tar.gz\r\nCollecting six (from certbot)\r\n  Using cached six-1.10.0-py2.py3-none-any.whl\r\nCollecting cryptography>=1.2 (from certbot)\r\n  Downloading cryptography-2.0.3-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)\r\n    100% |████████████████████████████████| 2.2MB 435kB/s \r\nCollecting PyOpenSSL (from certbot)\r\n  Downloading pyOpenSSL-17.2.0-py2.py3-none-any.whl (52kB)\r\n    100% |████████████████████████████████| 61kB 2.0MB/s \r\nCollecting mock (from certbot)\r\n  Using cached mock-2.0.0-py2.py3-none-any.whl\r\nCollecting parsedatetime>=1.3 (from certbot)\r\n  Downloading parsedatetime-2.4-py2-none-any.whl (40kB)\r\n    100% |████████████████████████████████| 40kB 1.3MB/s \r\nCollecting acme==0.17.0 (from certbot)\r\n  Downloading acme-0.17.0-py2.py3-none-any.whl (99kB)\r\n    100% |████████████████████████████████| 102kB 1.5MB/s \r\nCollecting zope.event (from zope.component->certbot)\r\n  Downloading zope.event-4.3.0-py2.py3-none-any.whl\r\nCollecting ipaddress (from cryptography>=1.2->certbot)\r\n  Using cached ipaddress-1.0.18-py2-none-any.whl\r\nCollecting idna>=2.1 (from cryptography>=1.2->certbot)\r\n  Downloading idna-2.6-py2.py3-none-any.whl (56kB)\r\n    100% |████████████████████████████████| 61kB 1.7MB/s \r\nCollecting asn1crypto>=0.21.0 (from cryptography>=1.2->certbot)\r\n  Using cached asn1crypto-0.22.0-py2.py3-none-any.whl\r\nCollecting enum34 (from cryptography>=1.2->certbot)\r\n  Using cached enum34-1.1.6-py2-none-any.whl\r\nCollecting cffi>=1.7 (from cryptography>=1.2->certbot)\r\n  Using cached cffi-1.10.0-cp27-cp27mu-manylinux1_x86_64.whl\r\nCollecting funcsigs>=1; python_version < \"3.3\" (from mock->certbot)\r\n  Using cached funcsigs-1.0.2-py2.py3-none-any.whl\r\nCollecting pbr>=0.11 (from mock->certbot)\r\n  Using cached pbr-3.1.1-py2.py3-none-any.whl\r\nCollecting future (from parsedatetime>=1.3->certbot)\r\n  Downloading future-0.16.0.tar.gz (824kB)\r\n    100% |████████████████████████████████| 829kB 792kB/s \r\nCollecting requests[security]>=2.4.1 (from acme==0.17.0->certbot)\r\n  Using cached requests-2.18.3-py2.py3-none-any.whl\r\nCollecting pycparser (from cffi>=1.7->cryptography>=1.2->certbot)\r\nCollecting chardet<3.1.0,>=3.0.2 (from requests[security]>=2.4.1->acme==0.17.0->certbot)\r\n  Using cached chardet-3.0.4-py2.py3-none-any.whl\r\nCollecting certifi>=2017.4.17 (from requests[security]>=2.4.1->acme==0.17.0->certbot)\r\n  Using cached certifi-2017.7.27.1-py2.py3-none-any.whl\r\nCollecting urllib3<1.23,>=1.21.1 (from requests[security]>=2.4.1->acme==0.17.0->certbot)\r\n  Using cached urllib3-1.22-py2.py3-none-any.whl\r\nBuilding wheels for collected packages: ConfigArgParse, configobj, future\r\n  Running setup.py bdist_wheel for ConfigArgParse ... done\r\n  Stored in directory: /home/rene/.cache/pip/wheels/6a/40/6b/6d9924b7757fff15a7296256f9d6d27a9600beabd387f057af\r\n  Running setup.py bdist_wheel for configobj ... done\r\n  Stored in directory: /home/rene/.cache/pip/wheels/87/76/48/1564f8466fbd36402af5ac4972ffb56a6ef7f143892ef57fe5\r\n  Running setup.py bdist_wheel for future ... done\r\n  Stored in directory: /home/rene/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a\r\nSuccessfully built ConfigArgParse configobj future\r\nInstalling collected packages: zope.interface, pytz, pyrfc3339, zope.event, zope.component, ConfigArgParse, six, configobj, ipaddress, idna, asn1crypto, enum34, pycparser, cffi, cryptography, PyOpenSSL, funcsigs, pbr, mock, future, parsedatetime, chardet, certifi, urllib3, requests, acme, certbot\r\nSuccessfully installed ConfigArgParse-0.12.0 PyOpenSSL-17.2.0 acme-0.17.0 asn1crypto-0.22.0 certbot-0.17.0 certifi-2017.7.27.1 cffi-1.10.0 chardet-3.0.4 configobj-5.0.6 cryptography-2.0.3 enum34-1.1.6 funcsigs-1.0.2 future-0.16.0 idna-2.6 ipaddress-1.0.18 mock-2.0.0 parsedatetime-2.4 pbr-3.1.1 pycparser-2.18 pyrfc3339-1.0 pytz-2017.2 requests-2.18.3 six-1.10.0 urllib3-1.22 zope.component-4.4.0 zope.event-4.3.0 zope.interface-4.4.2\r\n(letest) rene@rene-desktop /tmp % certbot\r\nAn unexpected error occurred:\r\nContextualVersionConflict: (idna 2.6 (/tmp/letest/lib/python2.7/site-packages), Requirement.parse('idna<2.6,>=2.5'), set(['requests']))\r\nPlease see the logfile '/tmp/tmpFj1SPt' for more details.\r\n(letest) rene@rene-desktop /tmp %\r\n```\r\n\r\nManually downgrading `idna` to `2.5` seems to work around the problem (thanks to Peng on #letsencrypt for the hint).\r\n```\r\n(letest) rene@rene-desktop /tmp % pip install idna\\<2.6\r\nCollecting idna<2.6\r\n  Using cached idna-2.5-py2.py3-none-any.whl\r\nInstalling collected packages: idna\r\n  Found existing installation: idna 2.6\r\n    Uninstalling idna-2.6:\r\n      Successfully uninstalled idna-2.6\r\nSuccessfully installed idna-2.5\r\n(letest) rene@rene-desktop /tmp % certbot\r\nThe following error was encountered:\r\n[Errno 13] Permission denied: '/var/log/letsencrypt'\r\nEither run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/certbot/certbot/issues/comments/444980135","html_url":"https://github.com/certbot/certbot/issues/5015#issuecomment-444980135","issue_url":"https://api.github.com/repos/certbot/certbot/issues/5015","id":444980135,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDk4MDEzNQ==","user":{"login":"groenator","id":5445030,"node_id":"MDQ6VXNlcjU0NDUwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/5445030?v=4","gravatar_id":"","url":"https://api.github.com/users/groenator","html_url":"https://github.com/groenator","followers_url":"https://api.github.com/users/groenator/followers","following_url":"https://api.github.com/users/groenator/following{/other_user}","gists_url":"https://api.github.com/users/groenator/gists{/gist_id}","starred_url":"https://api.github.com/users/groenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groenator/subscriptions","organizations_url":"https://api.github.com/users/groenator/orgs","repos_url":"https://api.github.com/users/groenator/repos","events_url":"https://api.github.com/users/groenator/events{/privacy}","received_events_url":"https://api.github.com/users/groenator/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T18:35:10Z","updated_at":"2018-12-06T18:35:10Z","author_association":"NONE","body":"Today I got the update and now I cannot issue a new certificate. The error is complaining about idna>2.8 and requests. Request 2.20.1 is not compatible with idna=2.8, but even if the version of idna is downgraded to 2.7, the issue is still not resolved. \r\n\r\n`sudo pip install 'idna>=2.1'\r\nCollecting idna>=2.1\r\n  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl`\r\n\r\nrequests 2.20.1 has requirement idna<2.8,>=2.5, but you'll have idna 2.8 which is incompatible.\r\n\r\nWhen I upgrade request version, it downgraded idna to 2.7. The request version  stayed the same \r\n\r\n```\r\n[centos@ ~]$ sudo /opt/certbot/bin/certbot certonly\r\nAn unexpected error occurred:\r\nContextualVersionConflict: (idna 2.8 (/opt/certbot/lib/python2.7/site-packages), Requirement.parse('idna<2.8,>=2.5'), set(['requests']))\r\nPlease see the logfile '/tmp/tmpPng4OC' for more details.\r\n```\r\n\r\n```\r\n[centos@ ~]$ sudo /opt/certbot/bin/certbot certonly --help\r\nAn unexpected error occurred:\r\nContextualVersionConflict: (idna 2.8 (/opt/certbot/lib/python2.7/site-packages), Requirement.parse('idna<2.8,>=2.5'), set(['requests']))\r\n```\r\n\r\n\r\nList of pip packages installed:\r\n\r\n```\r\n[centos@ ~]$ sudo pip list\r\nPackage                          Version\r\n-------------------------------- ----------\r\nacme                             0.29.1\r\nansible                          2.7.4\r\nansible-modules-hashivault       3.10.1\r\nasn1crypto                       0.24.0\r\nawscli                           1.16.70\r\nBabel                            0.9.6\r\nbackports.ssl-match-hostname     3.5.0.1\r\nbcrypt                           3.1.4\r\nbotocore                         1.12.60\r\ncertbot                          0.27.1\r\ncertifi                          2018.11.29\r\ncffi                             1.11.5\r\nchardet                          3.0.4\r\ncloud-init                       18.2\r\ncolorama                         0.3.9\r\nConfigArgParse                   0.13.0\r\nconfigobj                        4.7.2\r\ncryptography                     2.4.2\r\ndecorator                        3.4.0\r\ndocutils                         0.14\r\nenum34                           1.1.6\r\nfuncsigs                         1.0.2\r\nfuture                           0.17.1\r\nfutures                          3.2.0\r\nhttplib2                         0.9.2\r\nhvac                             0.7.0\r\nidna                             2.7\r\niniparse                         0.4\r\nipaddress                        1.0.22\r\nIPy                              0.75\r\nJinja2                           2.10\r\njmespath                         0.9.3\r\njosepy                           1.1.0\r\njsonpatch                        1.2\r\njsonpointer                      1.9\r\nkitchen                          1.1.1\r\nMarkupSafe                       1.1.0\r\nmock                             2.0.0\r\nndg-httpsclient                  0.3.2\r\nparamiko                         2.4.2\r\nparsedatetime                    2.4\r\npasslib                          1.7.1\r\npbr                              5.1.1\r\nperf                             0.1\r\npip                              18.1\r\nply                              3.4\r\npolicycoreutils-default-encoding 0.1\r\nprettytable                      0.7.2\r\npyasn1                           0.4.4\r\npycparser                        2.19\r\npycrypto                         2.6.1\r\npycurl                           7.19.0\r\npygobject                        3.22.0\r\npygpgme                          0.3\r\npyliblzma                        0.5.3\r\nPyNaCl                           1.3.0\r\npyOpenSSL                        0.13.1\r\npyRFC3339                        1.1\r\npyserial                         2.6\r\npython-dateutil                  2.7.5\r\npython-keyczar                   0.71rc0\r\npython-linux-procfs              0.4.9\r\npytz                             2018.7\r\npyudev                           0.15\r\npyxattr                          0.5.1\r\nPyYAML                           3.13\r\nrequests                         2.20.1\r\nrequests-toolbelt                0.8.0\r\nrsa                              3.4.2\r\ns3transfer                       0.1.13\r\nschedutils                       0.4\r\nseobject                         0.1\r\nsepolicy                         1.1\r\nsetuptools                       40.6.2\r\nsix                              1.11.0\r\nslip                             0.4.0\r\nslip.dbus                        0.4.0\r\nurlgrabber                       3.10\r\nurllib3                          1.24.1\r\nvirtualenv                       16.1.0\r\nyum-metadata-parser              1.1.4\r\nzope.component                   4.5\r\nzope.deferredimport              4.3\r\nzope.deprecation                 4.4.0\r\nzope.event                       4.4\r\nzope.hookable                    4.2.0\r\nzope.interface                   4.6.0\r\nzope.proxy                       4.3.1\r\n```"}}
{"actor":{"display_login":"groenator"}}