{"action":"created","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/13202","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/13202/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/13202/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/13202/events","html_url":"https://github.com/opencv/opencv/issues/13202","id":381997072,"node_id":"MDU6SXNzdWUzODE5OTcwNzI=","number":13202,"title":"OpenCV 3.4.4 Python binding","user":{"login":"h6197627","id":44726212,"node_id":"MDQ6VXNlcjQ0NzI2MjEy","avatar_url":"https://avatars1.githubusercontent.com/u/44726212?v=4","gravatar_id":"","url":"https://api.github.com/users/h6197627","html_url":"https://github.com/h6197627","followers_url":"https://api.github.com/users/h6197627/followers","following_url":"https://api.github.com/users/h6197627/following{/other_user}","gists_url":"https://api.github.com/users/h6197627/gists{/gist_id}","starred_url":"https://api.github.com/users/h6197627/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h6197627/subscriptions","organizations_url":"https://api.github.com/users/h6197627/orgs","repos_url":"https://api.github.com/users/h6197627/repos","events_url":"https://api.github.com/users/h6197627/events{/privacy}","received_events_url":"https://api.github.com/users/h6197627/received_events","type":"User","site_admin":false},"labels":[{"id":241025032,"node_id":"MDU6TGFiZWwyNDEwMjUwMzI=","url":"https://api.github.com/repos/opencv/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed","default":false},{"id":241023001,"node_id":"MDU6TGFiZWwyNDEwMjMwMDE=","url":"https://api.github.com/repos/opencv/opencv/labels/category:%20python%20bindings","name":"category: python bindings","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"alalek","id":4981219,"node_id":"MDQ6VXNlcjQ5ODEyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/4981219?v=4","gravatar_id":"","url":"https://api.github.com/users/alalek","html_url":"https://github.com/alalek","followers_url":"https://api.github.com/users/alalek/followers","following_url":"https://api.github.com/users/alalek/following{/other_user}","gists_url":"https://api.github.com/users/alalek/gists{/gist_id}","starred_url":"https://api.github.com/users/alalek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alalek/subscriptions","organizations_url":"https://api.github.com/users/alalek/orgs","repos_url":"https://api.github.com/users/alalek/repos","events_url":"https://api.github.com/users/alalek/events{/privacy}","received_events_url":"https://api.github.com/users/alalek/received_events","type":"User","site_admin":false},"assignees":[{"login":"alalek","id":4981219,"node_id":"MDQ6VXNlcjQ5ODEyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/4981219?v=4","gravatar_id":"","url":"https://api.github.com/users/alalek","html_url":"https://github.com/alalek","followers_url":"https://api.github.com/users/alalek/followers","following_url":"https://api.github.com/users/alalek/following{/other_user}","gists_url":"https://api.github.com/users/alalek/gists{/gist_id}","starred_url":"https://api.github.com/users/alalek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alalek/subscriptions","organizations_url":"https://api.github.com/users/alalek/orgs","repos_url":"https://api.github.com/users/alalek/repos","events_url":"https://api.github.com/users/alalek/events{/privacy}","received_events_url":"https://api.github.com/users/alalek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-11-18T20:30:23Z","updated_at":"2018-12-14T01:50:15Z","closed_at":null,"author_association":"NONE","body":"In newly released OpenCV 3.4.4 python bindings installation process was changed. Now it creates new folder /usr/local/python with python binding stuff. To make it visible in python user should run setup script from this folder. However after installation I am getting error:\r\n```\r\n>>> import cv2\r\n['/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg/cv2/../../python/cv2/python-3.6', '', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/local/lib/python3.6/dist-packages/scipy-1.1.0-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/dist-packages/protobuf-3.6.1-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/dist-packages/pycuda-2018.1.1-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/dist-packages/Mako-1.0.7-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/appdirs-1.4.3-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/decorator-4.3.0-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/pytest-3.9.3-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/pytools-2018.5.2-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/MarkupSafe-1.0-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/dist-packages/py-1.7.0-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/pluggy-0.8.0-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/more_itertools-4.3.0-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/attrs-18.2.0-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/atomicwrites-1.2.1-py3.6.egg', '/usr/local/lib/python3.6/dist-packages/numpy-1.15.4-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg', '/usr/lib/python3/dist-packages', '/usr/lib/python3.6/dist-packages']\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg/cv2/__init__.py\", line 89, in <module>\r\n    bootstrap()\r\n  File \"/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg/cv2/__init__.py\", line 79, in bootstrap\r\n    import cv2\r\n  File \"/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg/cv2/__init__.py\", line 89, in <module>\r\n    bootstrap()\r\n  File \"/usr/local/lib/python3.6/dist-packages/opencv-3.4.4-py3.6.egg/cv2/__init__.py\", line 23, in bootstrap\r\n    raise ImportError('ERROR: recursion is detected during loading of \"cv2\" binary extensions. Check OpenCV installation.')\r\nImportError: ERROR: recursion is detected during loading of \"cv2\" binary extensions. Check OpenCV installation.\r\n```\r\nAlso I have another question - is it possible to configure CMake to use only Ubuntu OS dedicated folders for python binding installation (/usr/local/lib/pythonX.X/dist-packages) without creating new non-standard directories (/usr/local/python)?\r\n\r\n##### System information (version)\r\n- OpenCV => 3.4.4\r\n- Operating System / Platform => Ubuntu 18.04\r\n- Compiler => GCC\r\n\r\n##### Steps to reproduce\r\n\r\n1. build OpenCV with python bindings\r\n2. cd /usr/local/python\r\n3. sudo python3 setup.py install\r\n4. python3\r\n5. >>> import cv2\r\n"},"comment":{"url":"https://api.github.com/repos/opencv/opencv/issues/comments/447185303","html_url":"https://github.com/opencv/opencv/issues/13202#issuecomment-447185303","issue_url":"https://api.github.com/repos/opencv/opencv/issues/13202","id":447185303,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE4NTMwMw==","user":{"login":"edrozenberg","id":2648417,"node_id":"MDQ6VXNlcjI2NDg0MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/2648417?v=4","gravatar_id":"","url":"https://api.github.com/users/edrozenberg","html_url":"https://github.com/edrozenberg","followers_url":"https://api.github.com/users/edrozenberg/followers","following_url":"https://api.github.com/users/edrozenberg/following{/other_user}","gists_url":"https://api.github.com/users/edrozenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/edrozenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edrozenberg/subscriptions","organizations_url":"https://api.github.com/users/edrozenberg/orgs","repos_url":"https://api.github.com/users/edrozenberg/repos","events_url":"https://api.github.com/users/edrozenberg/events{/privacy}","received_events_url":"https://api.github.com/users/edrozenberg/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T01:50:15Z","updated_at":"2018-12-14T01:50:15Z","author_association":"NONE","body":"Ran into this also. Was not fun, and also my package created after ```make install``` now requires an additional non-standard, non-discoverable manual step to get the bindings set up after the package is installed."}}
{"actor":{"display_login":"edrozenberg"}}