{"action":"created","issue":{"url":"https://api.github.com/repos/HIPS/Spearmint/issues/22","labels_url":"https://api.github.com/repos/HIPS/Spearmint/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/HIPS/Spearmint/issues/22/comments","events_url":"https://api.github.com/repos/HIPS/Spearmint/issues/22/events","html_url":"https://github.com/HIPS/Spearmint/issues/22","id":75620505,"number":22,"title":"Problems running example files","user":{"login":"Oogi-Bison","id":12412819,"avatar_url":"https://avatars.githubusercontent.com/u/12412819?v=3","gravatar_id":"","url":"https://api.github.com/users/Oogi-Bison","html_url":"https://github.com/Oogi-Bison","followers_url":"https://api.github.com/users/Oogi-Bison/followers","following_url":"https://api.github.com/users/Oogi-Bison/following{/other_user}","gists_url":"https://api.github.com/users/Oogi-Bison/gists{/gist_id}","starred_url":"https://api.github.com/users/Oogi-Bison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oogi-Bison/subscriptions","organizations_url":"https://api.github.com/users/Oogi-Bison/orgs","repos_url":"https://api.github.com/users/Oogi-Bison/repos","events_url":"https://api.github.com/users/Oogi-Bison/events{/privacy}","received_events_url":"https://api.github.com/users/Oogi-Bison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T14:22:31Z","updated_at":"2015-05-12T14:27:13Z","closed_at":null,"body":"Hi,\r\n\r\nI was just wondering if anyone encountered this error message? I'm not entirely sure what is going wrong here, but it seems to be a lower level c++ code that is causing the problem?\r\n\r\nI got this message when running the example btw. The first 2 points ran without any problems, but the part where it tries to fit a GP over the points seem to be causing the error messages. I tried updating scipy and numpy but it didn't help.\r\n\r\nThanks :)\r\n\r\n\r\nLooking for python27.dll\r\nLooking for python27.dll\r\nLooking for python27.dll\r\nIn file included from C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/array-impl.h:37:0,\r\n                 from C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/array.h:26,\r\n                 from c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:11:\r\nC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/range.h: In member function 'bool blitz::Range::isAscendingContiguous() const':\r\nC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/range.h:120:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]\r\n         return ((first_ < last_) && (stride_ == 1) || (first_ == last_));\r\n                                  ^\r\nIn file included from C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/ndarraytypes.h:1804:0,\r\n                 from C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/ndarrayobject.h:17,\r\n                 from C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/arrayobject.h:4,\r\n                 from c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:23:\r\nC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h: At global scope:\r\nC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h:13:79: note: #pragma message: C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\r\n                          \"#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\")\r\n                                                                               ^\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp: In function 'PyObject* compiled_func(PyObject*, PyObject*)':\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24: error: ambiguous overload for 'operator<' (operand types are 'int' and 'py::object')\r\n         for (int i=0; i<N; i++)\r\n                        ^\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24: note: candidates are:\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24: note: operator<(int, int) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24: note: operator<(int, float) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24: note: operator<(int, double) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26: error: ambiguous overload for 'operator<' (operand types are 'int' and 'py::object')\r\n           for (int j=0; j<M; j++)\r\n                          ^\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26: note: candidates are:\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26: note: operator<(int, int) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26: note: operator<(int, float) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26: note: operator<(int, double) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28: error: ambiguous overload for 'operator<' (operand types are 'int' and 'py::object')\r\n             for (int d=0; d<D; d++)\r\n                            ^\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28: note: candidates are:\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28: note: operator<(int, int) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28: note: operator<(int, float) <built-in>\r\nc:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28: note: operator<(int, double) <built-in>"},"comment":{"url":"https://api.github.com/repos/HIPS/Spearmint/issues/comments/101300484","html_url":"https://github.com/HIPS/Spearmint/issues/22#issuecomment-101300484","issue_url":"https://api.github.com/repos/HIPS/Spearmint/issues/22","id":101300484,"user":{"login":"JasperSnoek","id":3066843,"avatar_url":"https://avatars.githubusercontent.com/u/3066843?v=3","gravatar_id":"","url":"https://api.github.com/users/JasperSnoek","html_url":"https://github.com/JasperSnoek","followers_url":"https://api.github.com/users/JasperSnoek/followers","following_url":"https://api.github.com/users/JasperSnoek/following{/other_user}","gists_url":"https://api.github.com/users/JasperSnoek/gists{/gist_id}","starred_url":"https://api.github.com/users/JasperSnoek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasperSnoek/subscriptions","organizations_url":"https://api.github.com/users/JasperSnoek/orgs","repos_url":"https://api.github.com/users/JasperSnoek/repos","events_url":"https://api.github.com/users/JasperSnoek/events{/privacy}","received_events_url":"https://api.github.com/users/JasperSnoek/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T14:27:13Z","updated_at":"2015-05-12T14:27:13Z","body":"That's strange.  It seems like python freaks out when it's trying to do\nsome C++ compilation within a 'weave' call.  (I wrote a particular\nbottleneck in C++ to speed things up.)  Can you comment out the following\nlines:\nhttps://github.com/HIPS/Spearmint/blob/master/spearmint/kernels/kernel_utils.py#L230-L234\n\nand then un-indent these lines:\nhttps://github.com/HIPS/Spearmint/blob/master/spearmint/kernels/kernel_utils.py#L236-L237\n\nCheers,\n\nJasper\n\nOn Tue, May 12, 2015 at 10:22 AM, Oogi-Bison <notifications@github.com>\nwrote:\n\n> Hi,\n>\n> I was just wondering if anyone encountered this error message? I'm not\n> entirely sure what is going wrong here, but it seems to be a lower level\n> c++ code that is causing the problem?\n>\n> I got this message when running the example btw. The first 2 points ran\n> without any problems, but the part where it tries to fit a GP over the\n> points seem to be causing the error messages. I tried updating scipy and\n> numpy but it didn't help.\n>\n> Thanks :)\n>\n> Looking for python27.dll\n> Looking for python27.dll\n> Looking for python27.dll\n> In file included from\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/array-impl.h:37:0,\n> from\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/array.h:26,\n> from\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:11:\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/range.h:\n> In member function 'bool blitz::Range::isAscendingContiguous() const':\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\scipy\\weave\\blitz/blitz/range.h:120:34:\n> warning: suggest parentheses around '&&' within '||' [-Wparentheses]\n> return ((first_ < last_) && (stride_ == 1) || (first_ == last_));\n> ^\n> In file included from\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/ndarraytypes.h:1804:0,\n> from\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/ndarrayobject.h:17,\n> from\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/arrayobject.h:4,\n> from\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:23:\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h:\n> At global scope:\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h:13:79:\n> note: #pragma message:\n> C:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include/numpy/npy_1_7_deprecated_api.h(12)\n> : Warning Msg: Using deprecated NumPy API, disable it by #defining\n> NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n> \"#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\")\n> ^\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:\n> In function 'PyObject* compiled_func(PyObject*, PyObject*)':\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24:\n> error: ambiguous overload for 'operator<' (operand types are 'int' and\n> 'py::object')\n> for (int i=0; i ^\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24:\n> note: candidates are:\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24:\n> note: operator<(int, int)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24:\n> note: operator<(int, float)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:745:24:\n> note: operator<(int, double)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26:\n> error: ambiguous overload for 'operator<' (operand types are 'int' and\n> 'py::object')\n> for (int j=0; j ^\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26:\n> note: candidates are:\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26:\n> note: operator<(int, int)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26:\n> note: operator<(int, float)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:746:26:\n> note: operator<(int, double)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28:\n> error: ambiguous overload for 'operator<' (operand types are 'int' and\n> 'py::object')\n> for (int d=0; d ^\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28:\n> note: candidates are:\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28:\n> note: operator<(int, int)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28:\n> note: operator<(int, float)\n> c:\\users\\usr\\appdata\\local\\temp\\usr\\python27_compiled\\sc_efe69a3fecba151ef9b75ee9eed626cb290.cpp:747:28:\n> note: operator<(int, double)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/HIPS/Spearmint/issues/22>.\n>\n"}}