Title: Failure to install on Apple M1 on Mac OS Monterey · Issue #33 · embotech/ecos-python · GitHub
Open Graph Title: Failure to install on Apple M1 on Mac OS Monterey · Issue #33 · embotech/ecos-python
X Title: Failure to install on Apple M1 on Mac OS Monterey · Issue #33 · embotech/ecos-python
Description: Ecos version 2.0.8 fails to install on Apple M1 on Mac OS 12.0.1, python 3.9.9 (homebrew installed). It fails to upgrade from ecos 2.0.7.post1. pip3 install -U ecos DEPRECATION: Configuring installation scheme with distutils config files...
Open Graph Description: Ecos version 2.0.8 fails to install on Apple M1 on Mac OS 12.0.1, python 3.9.9 (homebrew installed). It fails to upgrade from ecos 2.0.7.post1. pip3 install -U ecos DEPRECATION: Configuring install...
X Description: Ecos version 2.0.8 fails to install on Apple M1 on Mac OS 12.0.1, python 3.9.9 (homebrew installed). It fails to upgrade from ecos 2.0.7.post1. pip3 install -U ecos DEPRECATION: Configuring install...
Opengraph URL: https://github.com/embotech/ecos-python/issues/33
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failure to install on Apple M1 on Mac OS Monterey","articleBody":"Ecos version 2.0.8 fails to install on Apple M1 on Mac OS 12.0.1, python 3.9.9 (homebrew installed). It fails to upgrade from ecos 2.0.7.post1. \r\n\r\n```\r\n pip3 install -U ecos \r\nDEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621\r\nRequirement already satisfied: ecos in /opt/homebrew/lib/python3.9/site-packages (2.0.7.post1)\r\nCollecting ecos\r\n Downloading ecos-2.0.8.tar.gz (135 kB)\r\n |████████████████████████████████| 135 kB 2.0 MB/s \r\n Preparing metadata (setup.py) ... done\r\nRequirement already satisfied: numpy>=1.6 in /opt/homebrew/lib/python3.9/site-packages (from ecos) (1.21.4)\r\nRequirement already satisfied: scipy>=0.9 in /opt/homebrew/lib/python3.9/site-packages (from ecos) (1.7.3)\r\nBuilding wheels for collected packages: ecos\r\n Building wheel for ecos (setup.py) ... error\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"'; __file__='\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"';f = getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__) if os.path.exists(__file__) else io.StringIO('\"'\"'from setuptools import setup; setup()'\"'\"');code = f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' bdist_wheel -d /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-wheel-cf9ksghb\r\n cwd: /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/\r\n Complete output (32 lines):\r\n running bdist_wheel\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.macosx-12-arm64-3.9\r\n creating build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/version.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/__init__.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/ecos.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n running build_ext\r\n building '_ecos' extension\r\n creating build/temp.macosx-12-arm64-3.9\r\n creating build/temp.macosx-12-arm64-3.9/ecos\r\n creating build/temp.macosx-12-arm64-3.9/ecos/ecos_bb\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/amd\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/amd/src\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/ldl\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/ldl/src\r\n creating build/temp.macosx-12-arm64-3.9/ecos/src\r\n creating build/temp.macosx-12-arm64-3.9/src\r\n clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/homebrew/include -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -I/opt/homebrew/lib/python3.9/site-packages/numpy/core/include -c ecos/ecos_bb/ecos_bb.c -o build/temp.macosx-12-arm64-3.9/ecos/ecos_bb/ecos_bb.o\r\n ecos/ecos_bb/ecos_bb.c:100:77: warning: format specifies type 'unsigned int' but the argument has type 'idxint' (aka 'long') [-Wformat]\r\n PRINTTEXT(\"Node info %u: %u : %.2f : %.2f : %u : %.2f Partial id:\", i, prob->nodes[i].status, prob->nodes[i].L, prob->nodes[i].U, (int)prob->nodes[i].split_idx, prob->nodes[i].split_val);\r\n ~~ ^\r\n %ld\r\n ecos/ecos_bb/ecos_bb.c:388:5: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]\r\n memcpy(problem->tmp_branching_bool_node_id, get_bool_node_id(node_idx, problem), bool_node_size);\r\n ^\r\n ecos/ecos_bb/ecos_bb.c:388:5: note: include the header \u003cstring.h> or explicitly provide a declaration for 'memcpy'\r\n 1 warning and 1 error generated.\r\n error: command '/usr/bin/clang' failed with exit code 1\r\n ----------------------------------------\r\n ERROR: Failed building wheel for ecos\r\n Running setup.py clean for ecos\r\nFailed to build ecos\r\nInstalling collected packages: ecos\r\n Attempting uninstall: ecos\r\n Found existing installation: ecos 2.0.7.post1\r\n Uninstalling ecos-2.0.7.post1:\r\n Successfully uninstalled ecos-2.0.7.post1\r\n Running setup.py install for ecos ... error\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"'; __file__='\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"';f = getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__) if os.path.exists(__file__) else io.StringIO('\"'\"'from setuptools import setup; setup()'\"'\"');code = f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' install --record /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-record-vuid19bg/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/ecos\r\n cwd: /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/\r\n Complete output (34 lines):\r\n running install\r\n/opt/homebrew/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\r\n warnings.warn(\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.macosx-12-arm64-3.9\r\n creating build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/version.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/__init__.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n copying src/ecos/ecos.py -> build/lib.macosx-12-arm64-3.9/ecos\r\n running build_ext\r\n building '_ecos' extension\r\n creating build/temp.macosx-12-arm64-3.9\r\n creating build/temp.macosx-12-arm64-3.9/ecos\r\n creating build/temp.macosx-12-arm64-3.9/ecos/ecos_bb\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/amd\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/amd/src\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/ldl\r\n creating build/temp.macosx-12-arm64-3.9/ecos/external/ldl/src\r\n creating build/temp.macosx-12-arm64-3.9/ecos/src\r\n creating build/temp.macosx-12-arm64-3.9/src\r\n clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/homebrew/include -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -I/opt/homebrew/lib/python3.9/site-packages/numpy/core/include -c ecos/ecos_bb/ecos_bb.c -o build/temp.macosx-12-arm64-3.9/ecos/ecos_bb/ecos_bb.o\r\n ecos/ecos_bb/ecos_bb.c:100:77: warning: format specifies type 'unsigned int' but the argument has type 'idxint' (aka 'long') [-Wformat]\r\n PRINTTEXT(\"Node info %u: %u : %.2f : %.2f : %u : %.2f Partial id:\", i, prob->nodes[i].status, prob->nodes[i].L, prob->nodes[i].U, (int)prob->nodes[i].split_idx, prob->nodes[i].split_val);\r\n ~~ ^\r\n %ld\r\n ecos/ecos_bb/ecos_bb.c:388:5: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]\r\n memcpy(problem->tmp_branching_bool_node_id, get_bool_node_id(node_idx, problem), bool_node_size);\r\n ^\r\n ecos/ecos_bb/ecos_bb.c:388:5: note: include the header \u003cstring.h> or explicitly provide a declaration for 'memcpy'\r\n 1 warning and 1 error generated.\r\n error: command '/usr/bin/clang' failed with exit code 1\r\n ----------------------------------------\r\n Rolling back uninstall of ecos\r\n Moving to /opt/homebrew/lib/python3.9/site-packages/_ecos.cpython-39-darwin.so\r\n from /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-uninstall-xqao81g_/_ecos.cpython-39-darwin.so\r\n Moving to /opt/homebrew/lib/python3.9/site-packages/ecos-2.0.7.post1.dist-info/\r\n from /opt/homebrew/lib/python3.9/site-packages/~cos-2.0.7.post1.dist-info\r\n Moving to /opt/homebrew/lib/python3.9/site-packages/ecos/\r\n from /opt/homebrew/lib/python3.9/site-packages/~cos\r\nERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"'; __file__='\"'\"'/private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-install-o7xtfekc/ecos_79d1b425adfe4d40a5153c49dea204d9/setup.py'\"'\"';f = getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__) if os.path.exists(__file__) else io.StringIO('\"'\"'from setuptools import setup; setup()'\"'\"');code = f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' install --record /private/var/folders/sj/0mpllhrn5dgbk_sjm6l34jl40000gn/T/pip-record-vuid19bg/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/ecos Check the logs for full command output.\r\n```","author":{"url":"https://github.com/sunilshah","@type":"Person","name":"sunilshah"},"datePublished":"2021-12-13T19:39:07Z","url":"https://github.com/embotech/ecos-python/issues/33"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:02baf3d8-27ae-baf4-a5e2-1440037ee89c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E958:17690:277EE2:36BF64:6B05D7C1 |
| html-safe-nonce | 09de8fd257b9a064f4c024e01ed890175216cd7968b63f28f750e3fb19fdd043 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTU4OjE3NjkwOjI3N0VFMjozNkJGNjQ6NkIwNUQ3QzEiLCJ2aXNpdG9yX2lkIjoiNDAxMzg3Njg5MjQ1NjU3Mjg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd07d34266e5598b8fee26a8595747bd74dd5ac2bf2f5daaa1ce68b7ddfeca2e |
| hovercard-subject-tag | issue:1078910436 |
| 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/_view_fragments/issues/show/embotech/ecos-python/33/issue_layout |
| twitter:image | https://opengraph.githubassets.com/238b3bdfbda884a0b01834ea13099d8df5be7d823d7c804cc6e2bd190bbd2988/embotech/ecos-python/issues/33 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/238b3bdfbda884a0b01834ea13099d8df5be7d823d7c804cc6e2bd190bbd2988/embotech/ecos-python/issues/33 |
| og:image:alt | Ecos version 2.0.8 fails to install on Apple M1 on Mac OS 12.0.1, python 3.9.9 (homebrew installed). It fails to upgrade from ecos 2.0.7.post1. pip3 install -U ecos DEPRECATION: Configuring install... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sunilshah |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7cc8361bc0396e5c33704280422dd7a38c5b91f6190589faea57461f56967249 |
| turbo-cache-control | no-preview |
| go-import | github.com/embotech/ecos-python git https://github.com/embotech/ecos-python.git |
| octolytics-dimension-user_id | 9467034 |
| octolytics-dimension-user_login | embotech |
| octolytics-dimension-repository_id | 26031421 |
| octolytics-dimension-repository_nwo | embotech/ecos-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26031421 |
| octolytics-dimension-repository_network_root_nwo | embotech/ecos-python |
| 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 | ab4da203740f827015a12d36851c8de196e908bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width