{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/tensorflow/issues/17","repository_url":"https://api.github.com/repos/rstudio/tensorflow","labels_url":"https://api.github.com/repos/rstudio/tensorflow/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/tensorflow/issues/17/comments","events_url":"https://api.github.com/repos/rstudio/tensorflow/issues/17/events","html_url":"https://github.com/rstudio/tensorflow/issues/17","id":180491078,"number":17,"title":"Fail in py_config() call","user":{"login":"pingfreud","id":17762723,"avatar_url":"https://avatars.githubusercontent.com/u/17762723?v=3","gravatar_id":"","url":"https://api.github.com/users/pingfreud","html_url":"https://github.com/pingfreud","followers_url":"https://api.github.com/users/pingfreud/followers","following_url":"https://api.github.com/users/pingfreud/following{/other_user}","gists_url":"https://api.github.com/users/pingfreud/gists{/gist_id}","starred_url":"https://api.github.com/users/pingfreud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingfreud/subscriptions","organizations_url":"https://api.github.com/users/pingfreud/orgs","repos_url":"https://api.github.com/users/pingfreud/repos","events_url":"https://api.github.com/users/pingfreud/events{/privacy}","received_events_url":"https://api.github.com/users/pingfreud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-02T02:22:25Z","updated_at":"2016-10-04T14:27:18Z","closed_at":null,"body":"Nice working making tf available from R interface :D\r\n\r\nI'm having a small problem when trying to install:\r\n`devtools::install_github(\"rstudio/tensorflow\")`\r\nI get:\r\n\r\n```\r\nError : .onLoad failed in loadNamespace() for 'tensorflow', details:\r\n  call: py_config()\r\n  error: Unable to parse -L from -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic\r\nError: loading failed\r\nExecution halted\r\n```\r\n\r\nI believe it has to do with g++ compiling the package in:\r\n```\r\ng++ -std=c++11 -shared -L/home/pingfreud/anaconda3/lib/R/lib -L/home/pingfreud/anaconda3/lib -lgfortran -o tensorflow.so RcppExports.o python.o -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -L/home/pingfreud/anaconda3/lib/R/lib -lR\r\n```\r\n\r\nI installed tf using:\r\n```\r\nexport TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc0-cp27-none-linux_x86_64.whl\r\nsudo pip install --upgrade $TF_BINARY_URL\r\n```\r\nTf is working normally when called from python2.7.\r\n\r\nI tried setting TENSORFLOW_PYTHON  directly to /usr/bin/python2.7 and also setting TENSORFLOW_PYTHON_VERSION to 2.7 but I still get the same error message."},"comment":{"url":"https://api.github.com/repos/rstudio/tensorflow/issues/comments/251404048","html_url":"https://github.com/rstudio/tensorflow/issues/17#issuecomment-251404048","issue_url":"https://api.github.com/repos/rstudio/tensorflow/issues/17","id":251404048,"user":{"login":"jjallaire","id":104391,"avatar_url":"https://avatars.githubusercontent.com/u/104391?v=3","gravatar_id":"","url":"https://api.github.com/users/jjallaire","html_url":"https://github.com/jjallaire","followers_url":"https://api.github.com/users/jjallaire/followers","following_url":"https://api.github.com/users/jjallaire/following{/other_user}","gists_url":"https://api.github.com/users/jjallaire/gists{/gist_id}","starred_url":"https://api.github.com/users/jjallaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjallaire/subscriptions","organizations_url":"https://api.github.com/users/jjallaire/orgs","repos_url":"https://api.github.com/users/jjallaire/repos","events_url":"https://api.github.com/users/jjallaire/events{/privacy}","received_events_url":"https://api.github.com/users/jjallaire/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T14:27:17Z","updated_at":"2016-10-04T14:27:17Z","body":"Is there any way to tease out the \"lib\" part from python-config or would I\njust have to hard code \"lib\" as the suffix?\n\n\n\nOn Tue, Oct 4, 2016 at 10:20 AM, B. W. Lewis <notifications@github.com>\nwrote:\n\n> Perhaps use:\n>\n> python2.7-config --prefix\n>\n> /usr/local\n>\n> Not sure if this is fragile. In the from source installation of Python on\n> CentOS, the libraries end up in /usr/local/lib (note, *not*\n> /usr/local/lib64). I know we all love RedHat, but for some terrible reason\n> it's in wide use out there :(\n>\n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rstudio/tensorflow/issues/17#issuecomment-251401959>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAGXx9-fmGEg2LI55J9Yrhr_H9n9hVrIks5qwmCigaJpZM4KL6hb>\n> .\n>\n"}}
{"actor":{"display_login":"jjallaire"}}