{"action":"created","issue":{"url":"https://api.github.com/repos/fastai/fastai/issues/501","repository_url":"https://api.github.com/repos/fastai/fastai","labels_url":"https://api.github.com/repos/fastai/fastai/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/fastai/fastai/issues/501/comments","events_url":"https://api.github.com/repos/fastai/fastai/issues/501/events","html_url":"https://github.com/fastai/fastai/pull/501","id":326605368,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNjUwNTQ4","number":501,"title":" fix pytorch import error in CPU only environment ","user":{"login":"lchen23","id":29285812,"node_id":"MDQ6VXNlcjI5Mjg1ODEy","avatar_url":"https://avatars1.githubusercontent.com/u/29285812?v=4","gravatar_id":"","url":"https://api.github.com/users/lchen23","html_url":"https://github.com/lchen23","followers_url":"https://api.github.com/users/lchen23/followers","following_url":"https://api.github.com/users/lchen23/following{/other_user}","gists_url":"https://api.github.com/users/lchen23/gists{/gist_id}","starred_url":"https://api.github.com/users/lchen23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchen23/subscriptions","organizations_url":"https://api.github.com/users/lchen23/orgs","repos_url":"https://api.github.com/users/lchen23/repos","events_url":"https://api.github.com/users/lchen23/events{/privacy}","received_events_url":"https://api.github.com/users/lchen23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-25T17:25:52Z","updated_at":"2018-05-31T06:52:32Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/fastai/fastai/pulls/501","html_url":"https://github.com/fastai/fastai/pull/501","diff_url":"https://github.com/fastai/fastai/pull/501.diff","patch_url":"https://github.com/fastai/fastai/pull/501.patch"},"body":"After installing the CPU only version of fastai library by running `conda env update -f environment-cpu.yml`. The pytorch library still fails to import and reports this error: \r\n`C:\\Program Files\\Anaconda3\\envs\\fastai\\lib\\site-packages\\torch\\__init__.py in <module>()\r\n     74     pass\r\n     75 \r\n---> 76 from torch._C import *\r\n     77 \r\n     78 __all__ += [name for name in dir(_C)\r\nImportError: DLL load failed: The specified module could not be found.`\r\n\r\nI found a simple solution by running the command `conda install -c peterjc123 pytorch-cpu`, which installs a cpu-version of pytorch. The original solution is found here: https://github.com/peterjc123/pytorch-scripts. \r\n\r\nI changed the readme file to report this big-fix and hope it will be helpful to others who wish to test cpu-only version of the fastai library. "},"comment":{"url":"https://api.github.com/repos/fastai/fastai/issues/comments/393427138","html_url":"https://github.com/fastai/fastai/pull/501#issuecomment-393427138","issue_url":"https://api.github.com/repos/fastai/fastai/issues/501","id":393427138,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQyNzEzOA==","user":{"login":"lchen23","id":29285812,"node_id":"MDQ6VXNlcjI5Mjg1ODEy","avatar_url":"https://avatars1.githubusercontent.com/u/29285812?v=4","gravatar_id":"","url":"https://api.github.com/users/lchen23","html_url":"https://github.com/lchen23","followers_url":"https://api.github.com/users/lchen23/followers","following_url":"https://api.github.com/users/lchen23/following{/other_user}","gists_url":"https://api.github.com/users/lchen23/gists{/gist_id}","starred_url":"https://api.github.com/users/lchen23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchen23/subscriptions","organizations_url":"https://api.github.com/users/lchen23/orgs","repos_url":"https://api.github.com/users/lchen23/repos","events_url":"https://api.github.com/users/lchen23/events{/privacy}","received_events_url":"https://api.github.com/users/lchen23/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T06:52:32Z","updated_at":"2018-05-31T06:52:32Z","author_association":"NONE","body":"@peterjc123 Your fix works 100%! @jph00 I'm trying to create a sharable env.yml file by `conda env export > environment-cpu.yml`. But it gives me this file:\r\n`name: fastai-cpu\r\nchannels:\r\n  - defaults\r\nprefix: C:\\ProgramData\\Anaconda3\\envs\\fastai-cpu\\envs\\fastai-cpu`\r\nThe file points to a specific location in my PC for env settings. How can I make it to export all installed package info instead of pointing to a folder in my pc?\r\n"}}
{"actor":{"display_login":"lchen23"}}