{"action":"opened","issue":{"url":"https://api.github.com/repos/Anaconda-Platform/support/issues/41","repository_url":"https://api.github.com/repos/Anaconda-Platform/support","labels_url":"https://api.github.com/repos/Anaconda-Platform/support/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Anaconda-Platform/support/issues/41/comments","events_url":"https://api.github.com/repos/Anaconda-Platform/support/issues/41/events","html_url":"https://github.com/Anaconda-Platform/support/issues/41","id":156822908,"number":41,"title":"Possible issue with linear algebra pack used for numpy compilation","user":{"login":"mrclary","id":9618975,"avatar_url":"https://avatars.githubusercontent.com/u/9618975?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclary","html_url":"https://github.com/mrclary","followers_url":"https://api.github.com/users/mrclary/followers","following_url":"https://api.github.com/users/mrclary/following{/other_user}","gists_url":"https://api.github.com/users/mrclary/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclary/subscriptions","organizations_url":"https://api.github.com/users/mrclary/orgs","repos_url":"https://api.github.com/users/mrclary/repos","events_url":"https://api.github.com/users/mrclary/events{/privacy}","received_events_url":"https://api.github.com/users/mrclary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-25T18:48:26Z","updated_at":"2016-05-25T18:48:26Z","closed_at":null,"body":"I have recently discovered an issue with Anaconda installations of numpy >=1.9.3.\r\nI believe it is related to the linear algebra library used to compile numpy since my MacPorts install of numpy 1.10.4 does not produce the error.\r\nThe behavior is detailed below.\r\n\r\nWith Anaconda numpy version <= 1.9.2 and all MacPorts numpy versions, polyfit behaved correctly, as follows:\r\n\r\n    In [1]: np.polyfit([1, 10], [np.nan, np.nan], 1)\r\n    Out[1]: array([ nan,  nan])\r\n\r\nBut for Anaconda numpy version >=1.9.3, polyfit raises the following error:\r\n\r\n    In [1]: np.polyfit([1, 10], [np.nan, np.nan], 1)\r\n    ---------------------------------------------------------------------------\r\n    ValueError                                Traceback (most recent call last)\r\n    <ipython-input-3-bf0d5d071f08> in <module>()\r\n    ----> 1 np.polyfit([1, 10], [np.nan, np.nan], 1)\r\n    \r\n    /Users/rclary/anaconda/lib/python2.7/site-packages/numpy/lib/polynomial.pyc in polyfit(x, y, deg, rcond, full, w, cov)\r\n        580     scale = NX.sqrt((lhs*lhs).sum(axis=0))\r\n        581     lhs /= scale\r\n    --> 582     c, resids, rank, s = lstsq(lhs, rhs, rcond)\r\n        583     c = (c.T/scale).T  # broadcast scale coefficients\r\n        584 \r\n    \r\n    /Users/rclary/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.pyc in lstsq(a, b, rcond)\r\n       1865         work = zeros((lwork,), t)\r\n       1866         results = lapack_routine(m, n, n_rhs, a, m, bstar, ldb, s, rcond,\r\n    -> 1867                                  0, work, lwork, iwork, 0)\r\n       1868     if results['info'] > 0:\r\n       1869         raise LinAlgError('SVD did not converge in Linear Least Squares')\r\n    \r\n    ValueError: On entry to DGELSD parameter number 6 had an illegal value\r\n\r\nDoes anyone have any insight on this issue?"}}
{"actor":{"display_login":"mrclary"}}