payload: {"action":"created","issue":{"url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/108","repository_url":"https://api.github.com/repos/oracle/oci-python-sdk","labels_url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/108/comments","events_url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/108/events","html_url":"https://github.com/oracle/oci-python-sdk/issues/108","id":415231653,"node_id":"MDU6SXNzdWU0MTUyMzE2NTM=","number":108,"title":"Install fails with cryptography 2.6","user":{"login":"craigcarl-oracle","id":20448499,"node_id":"MDQ6VXNlcjIwNDQ4NDk5","avatar_url":"https://avatars2.githubusercontent.com/u/20448499?v=4","gravatar_id":"","url":"https://api.github.com/users/craigcarl-oracle","html_url":"https://github.com/craigcarl-oracle","followers_url":"https://api.github.com/users/craigcarl-oracle/followers","following_url":"https://api.github.com/users/craigcarl-oracle/following{/other_user}","gists_url":"https://api.github.com/users/craigcarl-oracle/gists{/gist_id}","starred_url":"https://api.github.com/users/craigcarl-oracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigcarl-oracle/subscriptions","organizations_url":"https://api.github.com/users/craigcarl-oracle/orgs","repos_url":"https://api.github.com/users/craigcarl-oracle/repos","events_url":"https://api.github.com/users/craigcarl-oracle/events{/privacy}","received_events_url":"https://api.github.com/users/craigcarl-oracle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-02-27T17:07:22Z","updated_at":"2019-12-23T13:37:04Z","closed_at":"2019-03-08T00:28:04Z","author_association":"MEMBER","body":"### Issue: \r\nStarting with [cryptography 2.6](https://github.com/pyca/cryptography) (released today) the SDK won't install in a Python 3.6 virtualenv. I expect it won't install anywhere but I haven't tested that. The SDK should install using the documented process, ```pip install oci```.\r\n\r\n*NOTE: There appears to be an open ticket here -> https://github.com/pyca/cryptography/issues/4789. This may get resolved upstream.*\r\n\r\n### Error:\r\n ```\r\n...\r\nno previously-included directories found matching 'docs/_build'\r\nwarning: no previously-included files matching '*' found under directory 'vectors'\r\nwriting manifest file 'src/cryptography.egg-info/SOURCES.txt'\r\nrunning build_ext\r\ngenerating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'\r\ncreating build/temp.linux-x86_64-3.6\r\ngenerating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'\r\ngenerating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'\r\nbuilding '_openssl' extension\r\ncreating build/temp.linux-x86_64-3.6/build\r\ncreating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6\r\ngcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion\r\n  error: command 'gcc' failed with exit status 1\r\n  ----------------------------------------\r\n  Failed building wheel for cryptography\r\n  Running setup.py clean for cryptography\r\nFailed to build cryptography\r\nCould not build wheels for cryptography which use PEP 517 and cannot be installed directly\r\n```\r\n\r\n### Workaround:\r\nInstall cryptography 2.5 before installing the SDK - \r\n```\r\npip install cryptography==2.5\r\npip install oci\r\n```\r\n\r\n### Repo:\r\nI'm running this in the Oracle-Linux-7.6-2019.01.17-0 image on OCI. \r\n```\r\nsudo yum install -y python36 python-pip\r\nsudo pip install virtualenvwrapper\r\n\r\nmkdir workdir && cd workdir\r\necho 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bash_profile\r\necho 'export PROJECT_HOME=$HOME/Devel' >> ~/.bash_profile\r\necho 'source /usr/bin/virtualenvwrapper.sh' >> ~/.bash_profile\r\nsource ~/.bash_profile\r\nmkvirtualenv workdir --python=python3.6\r\necho 'cd ~/workdir && workon workdir' >> ~/.bash_profile\r\nsource ~/.bash_profile\r\npip install oci\r\n```\r\n\r\n### References:\r\n- https://github.com/pyca/cryptography/issues/4789\r\n- https://github.com/pypa/pip/issues/6256\r\n- https://discuss.python.org/t/pep-517-and-projects-that-cant-install-via-wheels/791\r\n- https://www.python.org/dev/peps/pep-0517/\r\n"},"comment":{"url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/comments/568477713","html_url":"https://github.com/oracle/oci-python-sdk/issues/108#issuecomment-568477713","issue_url":"https://api.github.com/repos/oracle/oci-python-sdk/issues/108","id":568477713,"node_id":"MDEyOklzc3VlQ29tbWVudDU2ODQ3NzcxMw==","user":{"login":"bfmn2k","id":15554618,"node_id":"MDQ6VXNlcjE1NTU0NjE4","avatar_url":"https://avatars2.githubusercontent.com/u/15554618?v=4","gravatar_id":"","url":"https://api.github.com/users/bfmn2k","html_url":"https://github.com/bfmn2k","followers_url":"https://api.github.com/users/bfmn2k/followers","following_url":"https://api.github.com/users/bfmn2k/following{/other_user}","gists_url":"https://api.github.com/users/bfmn2k/gists{/gist_id}","starred_url":"https://api.github.com/users/bfmn2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfmn2k/subscriptions","organizations_url":"https://api.github.com/users/bfmn2k/orgs","repos_url":"https://api.github.com/users/bfmn2k/repos","events_url":"https://api.github.com/users/bfmn2k/events{/privacy}","received_events_url":"https://api.github.com/users/bfmn2k/received_events","type":"User","site_admin":false},"created_at":"2019-12-23T13:37:04Z","updated_at":"2019-12-23T13:37:04Z","author_association":"NONE","body":"I ran into a problem with the cryptograpy module, while installin pyAesCrypt\r\n(Windows10 x64, Pytho3.8 x64)\r\n\r\n`build\\lib.win-amd64-3.8\\cryptography\\hazmat\\bindings\\_openssl.cp38-win_amd64.pyd : fatal error LNK1120: 863 nicht aufgelöste Externe\r\n  error: command 'C:\\\\Program Files (x86)\\\\Microsoft Visual Studio\\\\2019\\\\Community\\\\VC\\\\Tools\\\\MSVC\\\\14.24.28314\\\\bin\\\\HostX86\\\\x64\\\\link.exe' failed with exit status 1120`\r\n\r\nI switch from python x86 to x64 that day, but copied the *lib from openSSL x84 to the python folder. \r\nCould resolve this by downloading the openssl x64 (https://slproweb.com/products/Win32OpenSSL.html) and copy the *.lib from \"OpenSSL-Win64\\lib\" to \"python\\libs\" and the Folder openssl from \"OpenSSL-Win64\\include\" to \"python\\include\".\r\n\r\n"}}
other: {"actor":{"display_login":"bfmn2k"}}