{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/3816","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3816/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3816/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3816/events","html_url":"https://github.com/spyder-ide/spyder/issues/3816","id":194685839,"number":3816,"title":"Spyder does not use the virtual environment interperter","user":{"login":"bloodymeli","id":23738836,"avatar_url":"https://avatars.githubusercontent.com/u/23738836?v=3","gravatar_id":"","url":"https://api.github.com/users/bloodymeli","html_url":"https://github.com/bloodymeli","followers_url":"https://api.github.com/users/bloodymeli/followers","following_url":"https://api.github.com/users/bloodymeli/following{/other_user}","gists_url":"https://api.github.com/users/bloodymeli/gists{/gist_id}","starred_url":"https://api.github.com/users/bloodymeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloodymeli/subscriptions","organizations_url":"https://api.github.com/users/bloodymeli/orgs","repos_url":"https://api.github.com/users/bloodymeli/repos","events_url":"https://api.github.com/users/bloodymeli/events{/privacy}","received_events_url":"https://api.github.com/users/bloodymeli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T20:10:03Z","updated_at":"2016-12-09T21:39:14Z","closed_at":"2016-12-09T21:39:14Z","body":"## Description of your problem\r\n\r\n**What steps will reproduce the problem?**\r\n\r\n1. activate the virtual enviroment \"workon cv\" for opencv\r\n2. I start spyder from the command line \"spyder\"\r\n3.  write \"import cv2\"\r\n\r\n**What is the expected output? What do you see instead?**\r\nI get an error \"ImportError: No module named cv2\".\r\nWhen I type python in the command line of the cv environment (after step 1) the import command complete successfully. Furthermore, when I manually point spyder to the right binary file in the /.virtualenv/cv/... folder, it correctly loads the module using \"import cv2\".\r\n\r\n**Please provide any additional information below**\r\n\r\n\r\n## Versions and main components\r\n\r\n* Spyder Version: 3.02\r\n* Python Version: 2.7\r\n* Operating system: Ubuntu 16.04\r\n\r\n\r\n## Dependencies\r\n\r\nPlease go to the menu entry `Help > Optional Dependencies` (or\r\n`Help > Dependencies`), press the button `Copy to clipboard`\r\nand paste the contents below:\r\n\r\njedi >=0.8.1     :  0.9.0 (OK)\r\nmatplotlib >=1.0 :  1.5.1 (OK)\r\nnbconvert >=4.0  :  4.2.0 (OK)\r\nnumpy >=1.7      :  1.11.0 (OK)\r\npandas >=0.13.1  :  0.17.1 (OK)\r\npep8 >=0.6       :  1.7.0 (OK)\r\npsutil >=0.3     :  5.0.0 (OK)\r\npyflakes >=0.5.0 :  1.3.0 (OK)\r\npygments >=2.0   :  2.1.3 (OK)\r\npylint >=0.25    :  1.6.4 (OK)\r\nqtconsole >=4.2.0:  4.2.1 (OK)\r\nrope >=0.9.4     :  0.10.3 (OK)\r\nsphinx >=0.6.6   :  1.5 (OK)\r\nsympy >=0.7.3    :  1.0 (OK)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/266130628","html_url":"https://github.com/spyder-ide/spyder/issues/3816#issuecomment-266130628","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3816","id":266130628,"user":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T21:39:14Z","updated_at":"2016-12-09T21:39:14Z","body":"You have two options:\r\n\r\n1. Change the interpreter used for Spyder consoles to point to your virtualenv Python executable in `Preferences > Python interpreter`\r\n2. Install Spyder in your virtualenv and start it from there.\r\n\r\nWe recommend option 1. because it's easier to apply :-)"}}
{"actor":{"display_login":"ccordoba12"}}