Title: Issue · GitHub
Open Graph Title: Issue · enthought/enable
X Title: Issue · enthought/enable
Description: Enable: low-level drawing and interaction. Contribute to enthought/enable development by creating an account on GitHub.
Open Graph Description: Enable: low-level drawing and interaction. Contribute to enthought/enable development by creating an account on GitHub.
X Description: Enable: low-level drawing and interaction. Contribute to enthought/enable development by creating an account on GitHub.
Opengraph URL: https://github.com/enthought/enable
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build error with Python 3.8","articleBody":"Hello,\r\n\r\nI maintain the python-enable package in Debian and was trying to update it to the latest release 4.8.1 and build with Python 3.8, but have run into some build errors. Could you please take a look at the below build log and let me know if I'm missing anything?\r\n```\r\ncompile options: '-Ikiva -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.8 -c'\r\nx86_64-linux-gnu-g++: kiva/_hit_test.cpp\r\nx86_64-linux-gnu-g++: kiva/_cython_speedups.cpp\r\nIn file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\r\n from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,\r\n from /usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:4,\r\n from kiva/_cython_speedups.cpp:612:\r\n/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\r\n 17 | #warning \"Using deprecated NumPy API, disable it with \" \\\r\n | ^~~~~~~\r\nkiva/_cython_speedups.cpp: In function 'int __Pyx_InitCachedConstants()':\r\nkiva/_cython_speedups.cpp:20106:75: error: invalid conversion from 'int' to 'PyObject*' {aka '_object*'} [-fpermissive]\r\n20106 | __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cython_speedups_pyx, __pyx_n_s_points_in_polygon, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 6, __pyx_L1_error)\r\nkiva/_cython_speedups.cpp:332:37: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^\r\nkiva/_cython_speedups.cpp:20106:234: error: invalid conversion from 'PyObject*' {aka '_object*'} to 'int' [-fpermissive]\r\n20106 | __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cython_speedups_pyx, __pyx_n_s_points_in_polygon, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 6, __pyx_L1_error)\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n | |\r\n | PyObject* {aka _object*}\r\nkiva/_cython_speedups.cpp:332:69: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~\r\nkiva/_cython_speedups.cpp:20106:263: error: invalid conversion from 'int' to 'PyObject*' {aka '_object*'} [-fpermissive]\r\n20106 | __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cython_speedups_pyx, __pyx_n_s_points_in_polygon, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 6, __pyx_L1_error)\r\n | ^\r\n | |\r\n | int\r\nkiva/_cython_speedups.cpp:332:75: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~~\r\nkiva/_cython_speedups.cpp:332:86: error: too many arguments to function 'PyCodeObject* PyCode_New(int, int, int, int, int, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*)'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^\r\nkiva/_cython_speedups.cpp:20106:34: note: in expansion of macro '__Pyx_PyCode_New'\r\n20106 | __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cython_speedups_pyx, __pyx_n_s_points_in_polygon, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 6, __pyx_L1_error)\r\n | ^~~~~~~~~~~~~~~~\r\nIn file included from /usr/include/python3.8/compile.h:5,\r\n from /usr/include/python3.8/Python.h:138,\r\n from kiva/_cython_speedups.cpp:4:\r\n/usr/include/python3.8/code.h:122:28: note: declared here\r\n 122 | PyAPI_FUNC(PyCodeObject *) PyCode_New(\r\n | ^~~~~~~~~~\r\nkiva/_cython_speedups.cpp:20171:75: error: invalid conversion from 'int' to 'PyObject*' {aka '_object*'} [-fpermissive]\r\n20171 | __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(2, 1, __pyx_L1_error)\r\nkiva/_cython_speedups.cpp:332:37: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^\r\nkiva/_cython_speedups.cpp:20171:227: error: invalid conversion from 'PyObject*' {aka '_object*'} to 'int' [-fpermissive]\r\n20171 | __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(2, 1, __pyx_L1_error)\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n | |\r\n | PyObject* {aka _object*}\r\nkiva/_cython_speedups.cpp:332:69: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~\r\nkiva/_cython_speedups.cpp:20171:256: error: invalid conversion from 'int' to 'PyObject*' {aka '_object*'} [-fpermissive]\r\n20171 | __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(2, 1, __pyx_L1_error)\r\n | ^\r\n | |\r\n | int\r\nkiva/_cython_speedups.cpp:332:75: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~~\r\nkiva/_cython_speedups.cpp:332:86: error: too many arguments to function 'PyCodeObject* PyCode_New(int, int, int, int, int, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*)'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^\r\nkiva/_cython_speedups.cpp:20171:34: note: in expansion of macro '__Pyx_PyCode_New'\r\n20171 | __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(2, 1, __pyx_L1_error)\r\n | ^~~~~~~~~~~~~~~~\r\nIn file included from /usr/include/python3.8/compile.h:5,\r\n from /usr/include/python3.8/Python.h:138,\r\n from kiva/_cython_speedups.cpp:4:\r\n/usr/include/python3.8/code.h:122:28: note: declared here\r\n 122 | PyAPI_FUNC(PyCodeObject *) PyCode_New(\r\n | ^~~~~~~~~~\r\nkiva/_cython_speedups.cpp: In function 'PyCodeObject* __Pyx_CreateCodeObjectForTraceback(const char*, int, int, const char*)':\r\nkiva/_cython_speedups.cpp:23055:9: error: invalid conversion from 'PyObject*' {aka '_object*'} to 'int' [-fpermissive]\r\n23055 | py_funcname, /*PyObject *name,*/\r\n | ^~~~~~~~~~~\r\n | |\r\n | PyObject* {aka _object*}\r\nkiva/_cython_speedups.cpp:332:69: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~\r\nkiva/_cython_speedups.cpp:23056:9: error: invalid conversion from 'int' to 'PyObject*' {aka '_object*'} [-fpermissive]\r\n23056 | py_line,\r\n | ^~~~~~~\r\n | |\r\n | int\r\nkiva/_cython_speedups.cpp:332:75: note: in definition of macro '__Pyx_PyCode_New'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^~~~~\r\nkiva/_cython_speedups.cpp:332:86: error: too many arguments to function 'PyCodeObject* PyCode_New(int, int, int, int, int, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*)'\r\n 332 | PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\r\n | ^\r\nkiva/_cython_speedups.cpp:23042:15: note: in expansion of macro '__Pyx_PyCode_New'\r\n23042 | py_code = __Pyx_PyCode_New(\r\n | ^~~~~~~~~~~~~~~~\r\nIn file included from /usr/include/python3.8/compile.h:5,\r\n from /usr/include/python3.8/Python.h:138,\r\n from kiva/_cython_speedups.cpp:4:\r\n/usr/include/python3.8/code.h:122:28: note: declared here\r\n 122 | PyAPI_FUNC(PyCodeObject *) PyCode_New(\r\n | ^~~~~~~~~~\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:782: UserWarning: Specified path /usr/local/include/python3.8 is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:773: UserWarning: Specified path /usr/X11R6/lib64 is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:773: UserWarning: Specified path /usr/X11R6/lib is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:773: UserWarning: Specified path /usr/X11/lib64 is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:773: UserWarning: Specified path /usr/X11/lib is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:773: UserWarning: Specified path /usr/lib64 is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:782: UserWarning: Specified path /usr/X11R6/include is invalid.\r\n return self.get_paths(self.section, key)\r\n/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:782: UserWarning: Specified path /usr/X11/include is invalid.\r\n return self.get_paths(self.section, key)\r\nerror: Command \"x86_64-linux-gnu-g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -O0 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ikiva -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.8 -c kiva/_cython_speedups.cpp -o build/temp.linux-amd64-3.8/kiva/_cython_speedups.o -MMD -MF build/temp.linux-amd64-3.8/kiva/_cython_speedups.o.d\" failed with exit status 1\r\nE: pybuild pybuild:341: build: plugin distutils failed with: exit code=1: /usr/bin/python3.8 setup.py build \r\ndh_auto_build: pybuild --build -i python{version} -p \"3.8 3.7\" returned exit code 13\r\nmake: *** [debian/rules:10: build] Error 255\r\ndpkg-buildpackage: error: debian/rules build subprocess returned exit status 2\r\n```\r\n\r\nThanks,\r\nVarun","author":{"url":"https://github.com/varunhiremath","@type":"Person","name":"varunhiremath"},"datePublished":"2019-12-08T21:13:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/375/enable/issues/375"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:957f41c2-d5ae-5f1c-20d1-67c09ee184a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 973E:14749:19A4A33:233C0C2:6A4C09BA |
| html-safe-nonce | 928b8614ff738d5a961daaf45d05ae4a417b49265307d5a9efb68b1bd5dd4d41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzNFOjE0NzQ5OjE5QTRBMzM6MjMzQzBDMjo2QTRDMDlCQSIsInZpc2l0b3JfaWQiOiI4NDAxNzg0NTMxOTUwNzY2NTIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 96ec148e365f59e9d69e62346cd1a74fe4cf348848e922786adcf44b550d5d48 |
| hovercard-subject-tag | repository:1301545 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/enthought/enable/issues/375 |
| twitter:image | https://opengraph.githubassets.com/4e89661f4a1cee6cfac58d565c6d5ed6fa16d11dbb625c200269bcbab6c46b2e/enthought/enable |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e89661f4a1cee6cfac58d565c6d5ed6fa16d11dbb625c200269bcbab6c46b2e/enthought/enable |
| og:image:alt | Enable: low-level drawing and interaction. Contribute to enthought/enable development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 940b0dbb4d0fe72558ee760b2ff0f25a504383fdfe404f3a7691ec853b8dc17f |
| turbo-cache-control | no-cache |
| go-import | github.com/enthought/enable git https://github.com/enthought/enable.git |
| octolytics-dimension-user_id | 539651 |
| octolytics-dimension-user_login | enthought |
| octolytics-dimension-repository_id | 1301545 |
| octolytics-dimension-repository_nwo | enthought/enable |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1301545 |
| octolytics-dimension-repository_network_root_nwo | enthought/enable |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b0267d17ea43e55446153a7e2c60bb6ac3cffd6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width