{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1129","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1129/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1129/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/1129","id":180483228,"number":1129,"title":"rpy2.rinterface on Windows gives DLL import error","user":{"login":"ijstokes","id":293525,"avatar_url":"https://avatars.githubusercontent.com/u/293525?v=3","gravatar_id":"","url":"https://api.github.com/users/ijstokes","html_url":"https://github.com/ijstokes","followers_url":"https://api.github.com/users/ijstokes/followers","following_url":"https://api.github.com/users/ijstokes/following{/other_user}","gists_url":"https://api.github.com/users/ijstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/ijstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijstokes/subscriptions","organizations_url":"https://api.github.com/users/ijstokes/orgs","repos_url":"https://api.github.com/users/ijstokes/repos","events_url":"https://api.github.com/users/ijstokes/events{/privacy}","received_events_url":"https://api.github.com/users/ijstokes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mingwandroid","id":1042804,"avatar_url":"https://avatars.githubusercontent.com/u/1042804?v=3","gravatar_id":"","url":"https://api.github.com/users/mingwandroid","html_url":"https://github.com/mingwandroid","followers_url":"https://api.github.com/users/mingwandroid/followers","following_url":"https://api.github.com/users/mingwandroid/following{/other_user}","gists_url":"https://api.github.com/users/mingwandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwandroid/subscriptions","organizations_url":"https://api.github.com/users/mingwandroid/orgs","repos_url":"https://api.github.com/users/mingwandroid/repos","events_url":"https://api.github.com/users/mingwandroid/events{/privacy}","received_events_url":"https://api.github.com/users/mingwandroid/received_events","type":"User","site_admin":false},"assignees":[{"login":"mingwandroid","id":1042804,"avatar_url":"https://avatars.githubusercontent.com/u/1042804?v=3","gravatar_id":"","url":"https://api.github.com/users/mingwandroid","html_url":"https://github.com/mingwandroid","followers_url":"https://api.github.com/users/mingwandroid/followers","following_url":"https://api.github.com/users/mingwandroid/following{/other_user}","gists_url":"https://api.github.com/users/mingwandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwandroid/subscriptions","organizations_url":"https://api.github.com/users/mingwandroid/orgs","repos_url":"https://api.github.com/users/mingwandroid/repos","events_url":"https://api.github.com/users/mingwandroid/events{/privacy}","received_events_url":"https://api.github.com/users/mingwandroid/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2016-10-01T22:14:12Z","updated_at":"2016-10-03T13:53:49Z","closed_at":null,"body":"As reported on Anaconda ML, after doing `conda install -c r rpy2` on Windows with Anaconda3, `rpy2.rinterface` cannot be imported due to a DLL import error:\r\n\r\n```\r\nIn [2]: from rpy2 import rinterface\r\n---------------------------------------------------------------------------\r\nOSError                                   Traceback (most recent call last)\r\n<ipython-input-2-40203d26f554> in <module>()\r\n----> 1 from rpy2 import rinterface\r\n\r\nC:\\Users\\ijsto\\Anaconda3\\lib\\site-packages\\rpy2\\rinterface\\__init__.py in <module>()\r\n     85 \r\n     86 if sys.platform == 'win32':\r\n---> 87     _load_r_dll(R_HOME)\r\n     88 \r\n     89 # cleanup the namespace\r\n\r\nC:\\Users\\ijsto\\Anaconda3\\lib\\site-packages\\rpy2\\rinterface\\__init__.py in _load_r_dll(r_home)\r\n     62     if r_bin not in os.environ.get('PATH'):\r\n     63         os.environ['PATH'] = ';'.join((os.environ.get('PATH'), r_bin, r_mod))\r\n---> 64     ctypes.CDLL(r_dll)\r\n     65 \r\n     66 \r\n\r\nC:\\Users\\ijsto\\Anaconda3\\lib\\ctypes\\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)\r\n    345 \r\n    346         if handle is None:\r\n--> 347             self._handle = _dlopen(self._name, mode)\r\n    348         else:\r\n    349             self._handle = handle\r\n\r\nOSError: [WinError 126] The specified module could not be found\r\n```\r\n\r\nThis may be related to #605 or #759.\r\n\r\nI've tried a few other things but to no avail (just ended up with different problems).\r\n\r\nSo right now I think rpy2 (the essential bridge between Python and R in Anaconda) is broken."},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/251111371","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/1129#issuecomment-251111371","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/1129","id":251111371,"user":{"login":"mingwandroid","id":1042804,"avatar_url":"https://avatars.githubusercontent.com/u/1042804?v=3","gravatar_id":"","url":"https://api.github.com/users/mingwandroid","html_url":"https://github.com/mingwandroid","followers_url":"https://api.github.com/users/mingwandroid/followers","following_url":"https://api.github.com/users/mingwandroid/following{/other_user}","gists_url":"https://api.github.com/users/mingwandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwandroid/subscriptions","organizations_url":"https://api.github.com/users/mingwandroid/orgs","repos_url":"https://api.github.com/users/mingwandroid/repos","events_url":"https://api.github.com/users/mingwandroid/events{/privacy}","received_events_url":"https://api.github.com/users/mingwandroid/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T13:53:49Z","updated_at":"2016-10-03T13:53:49Z","body":">  I appreciate that a vanillla cmd.exe shell may not be sufficient to run Anaconda bits-and-pieces properly. But surely every other incantation should have worked: QtConsole, IPython Terminal, Jupyter Notebook. None of them did. Right now I have no idea what to do to get rpy2 working properly on Windows. Which is to say, I have no idea how to do whatever magic appeared to happen between originally confirming that I also had this problem (on Saturday), and then it mysteriously working OK (2 hours ago on Monday) to not working again now, after a full wipe and re-install (OK, with exception of Start Menu, which has still defeated me)\r\n\r\nFor these other options to work, you need to edit `cwp.py`."}}
{"actor":{"display_login":"mingwandroid"}}