Title: undefined symbol: Py_SET_TYPE · Issue #193 · python-control/Slycot · GitHub
Open Graph Title: undefined symbol: Py_SET_TYPE · Issue #193 · python-control/Slycot
X Title: undefined symbol: Py_SET_TYPE · Issue #193 · python-control/Slycot
Description: After installing slycot using pip I got the following error, when I am trying to import it: Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> im...
Open Graph Description: After installing slycot using pip I got the following error, when I am trying to import it: Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux Type "help", "copyright", "credits" o...
X Description: After installing slycot using pip I got the following error, when I am trying to import it: Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux Type "help", "copyrigh...
Opengraph URL: https://github.com/python-control/Slycot/issues/193
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"undefined symbol: Py_SET_TYPE","articleBody":"After installing slycot using pip I got the following error, when I am trying to import it: \r\n```shell\r\nPython 3.8.10 (default, Nov 14 2022, 12:59:47) \r\n[GCC 9.4.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import slycot\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/user/env/lib/python3.8/site-packages/slycot/__init__.py\", line 16, in \u003cmodule\u003e\r\n from .analysis import ab01nd, ab05md, ab05nd, ab07nd, ab08nd, ab08nz\r\n File \"/home/user/env/lib/python3.8/site-packages/slycot/analysis.py\", line 22, in \u003cmodule\u003e\r\n from . import _wrapper\r\nImportError: /home/user/env/lib/python3.8/site-packages/slycot/_wrapper.cpython-38-x86_64-linux-gnu.so: undefined symbol: Py_SET_TYPE\r\n```\r\n\r\nI am using Ubuntu 20.04 with Python 3.8.10 and created a new virtual environment for it: \r\n```shell\r\n$ virtualenv env \r\n$ source ./env/bin/activate\r\n$ pip install --no-cache-dir slycot\r\nCollecting slycot\r\n Downloading slycot-0.5.3.tar.gz (3.0 MB)\r\n |████████████████████████████████| 3.0 MB 6.3 MB/s \r\n Installing build dependencies ... done\r\n Getting requirements to build wheel ... done\r\n Preparing wheel metadata ... done\r\nCollecting numpy\r\n Downloading numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)\r\n |████████████████████████████████| 17.3 MB 100.9 MB/s \r\nBuilding wheels for collected packages: slycot\r\n Building wheel for slycot (PEP 517) ... done\r\n Created wheel for slycot: filename=slycot-0.5.3-cp38-cp38-linux_x86_64.whl size=1987476 sha256=53f161973476b615f3a07211877910eb89ad85d66428fc31d8b6e980a21a766a\r\n Stored in directory: /tmp/pip-ephem-wheel-cache-e2j324rb/wheels/f7/b1/ef/08bc53cdb0fe98fa3c4067f1e674ebc4fd32a965544b558450\r\nSuccessfully built slycot\r\nInstalling collected packages: numpy, slycot\r\nSuccessfully installed numpy-1.24.2 slycot-0.5.3\r\n$ python -c 'import slycot'\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/user/env/lib/python3.8/site-packages/slycot/__init__.py\", line 16, in \u003cmodule\u003e\r\n from .analysis import ab01nd, ab05md, ab05nd, ab07nd, ab08nd, ab08nz\r\n File \"/home/user/env/lib/python3.8/site-packages/slycot/analysis.py\", line 22, in \u003cmodule\u003e\r\n from . import _wrapper\r\nImportError: /home/user/env/lib/python3.8/site-packages/slycot/_wrapper.cpython-38-x86_64-linux-gnu.so: undefined symbol: Py_SET_TYPE\r\n```","author":{"url":"https://github.com/grisuthedragon","@type":"Person","name":"grisuthedragon"},"datePublished":"2023-02-28T11:41:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/193/Slycot/issues/193"}
| 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:6d69d5df-9c22-240b-12e4-902d0e5ad733 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A600:12B559:D78CB3:1358B97:697A2C99 |
| html-safe-nonce | 1b6cbef4c1f18cf57e538f9762cdef6c50980e3bc83455f5ca7770fcf3b3cef9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjAwOjEyQjU1OTpENzhDQjM6MTM1OEI5Nzo2OTdBMkM5OSIsInZpc2l0b3JfaWQiOiI1ODYxMjMyNzA5NzMyMDE5MzU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9113a21a971463a846201ea08175a89cea7cd0dfa9baec92ef8ee01bed7a90b1 |
| hovercard-subject-tag | issue:1602881076 |
| 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/python-control/Slycot/193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/781db08b1b48aea0b237d2d0f84478123e704c16e39954a762fc208071ad7ee2/python-control/Slycot/issues/193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/781db08b1b48aea0b237d2d0f84478123e704c16e39954a762fc208071ad7ee2/python-control/Slycot/issues/193 |
| og:image:alt | After installing slycot using pip I got the following error, when I am trying to import it: Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux Type "help", "copyright", "credits" o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | grisuthedragon |
| hostname | github.com |
| expected-hostname | github.com |
| None | aedfaa9f3050596e6408a19bb526c3fbd5ea149ad7a3478ad77fff1dd8ee55fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/Slycot git https://github.com/python-control/Slycot.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 66001480 |
| octolytics-dimension-repository_nwo | python-control/Slycot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66001480 |
| octolytics-dimension-repository_network_root_nwo | python-control/Slycot |
| 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 | 0ce8be80717b09a22037b60c04735e5a842e4373 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width