Title: Windows setup via conda-forge not working ImportError: DLL load failed while importing _wrapper · Issue #219 · python-control/Slycot · GitHub
Open Graph Title: Windows setup via conda-forge not working ImportError: DLL load failed while importing _wrapper · Issue #219 · python-control/Slycot
X Title: Windows setup via conda-forge not working ImportError: DLL load failed while importing _wrapper · Issue #219 · python-control/Slycot
Description: Hi everybody I would like to test and evaluate the package to eventually leave Matlab behind for my control systems class. Currently I'm using Windows 10. To make the error reproducible i created a fresh and clean local user and installe...
Open Graph Description: Hi everybody I would like to test and evaluate the package to eventually leave Matlab behind for my control systems class. Currently I'm using Windows 10. To make the error reproducible i created a...
X Description: Hi everybody I would like to test and evaluate the package to eventually leave Matlab behind for my control systems class. Currently I'm using Windows 10. To make the error reproducible i creat...
Opengraph URL: https://github.com/python-control/Slycot/issues/219
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows setup via conda-forge not working ImportError: DLL load failed while importing _wrapper","articleBody":"Hi everybody\r\n\r\nI would like to test and evaluate the package to eventually leave Matlab behind for my control systems class. Currently I'm using Windows 10. To make the error reproducible i created a fresh and clean local user and installed miniconda3 and vscode only.\r\n\r\nThe exact commands in miniconda3 were:\r\n```\r\nconda update -n base -c defaults conda\r\nconda create --name pichim\r\nconda activate pichim\r\nconda install -c conda-forge control slycot numpy scipy matplotlib ipykernel\r\n```\r\n \r\nI then run vscode with the python and jupyter extensions (packs) with the conda enviroment ``pichim``. The example ``phaseplots.py`` is working fine, others using more sophisticated tooling from python-control including ``slycot`` do not. E.g. ``cruise.ipynb`` is working fine, whereas ``robustsiso.py`` do not.\r\n\r\nI get the error:\r\n``` \r\n---------------------------------------------------------------------------\r\nImportError Traceback (most recent call last)\r\nFile [c:\\Users\\pichim\\miniconda3\\envs\\pichim\\lib\\site-packages\\control\\statesp.py:1547](file:///C:/Users/pichim/miniconda3/envs/pichim/lib/site-packages/control/statesp.py:1547), in _convert_to_statespace(sys, use_prefix_suffix)\r\n 1546 try:\r\n-\u003e 1547 from slycot import td04ad\r\n 1549 # Change the numerator and denominator arrays so that the transfer\r\n 1550 # function matrix has a common denominator.\r\n 1551 # matrices are also sized/padded to fit td04ad\r\n\r\nFile [c:\\Users\\pichim\\miniconda3\\envs\\pichim\\lib\\site-packages\\slycot\\__init__.py:16](file:///C:/Users/pichim/miniconda3/envs/pichim/lib/site-packages/slycot/__init__.py:16)\r\n 11 else:\r\n 12 \r\n 13 # import slycot.examples\r\n 14 \r\n 15 # Analysis routines (15/40 wrapped)\r\n---\u003e 16 from .analysis import ab01nd, ab05md, ab05nd, ab07nd, ab08nd, ab08nz\r\n 17 from .analysis import ab09ad, ab09ax, ab09bd, ab09md, ab09nd\r\n\r\nFile [c:\\Users\\pichim\\miniconda3\\envs\\pichim\\lib\\site-packages\\slycot\\analysis.py:22](file:///C:/Users/pichim/miniconda3/envs/pichim/lib/site-packages/slycot/analysis.py:22)\r\n 20 import numpy as np\r\n---\u003e 22 from . import _wrapper\r\n 23 from .exceptions import raise_if_slycot_error, SlycotParameterError\r\n\r\nImportError: DLL load failed while importing _wrapper: The specified module could not be found.\r\n...\r\n 1582 # the squeeze\r\n 1583 A, B, C, D = \\\r\n 1584 sp.signal.tf2ss(squeeze(sys.num), squeeze(sys.den))\r\n\r\nTypeError: No support for MIMO without slycot\r\nOutput is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?e2d3b551-dd88-41f7-90f8-e6ba35d27e94) or open in a [text editor](command:workbench.action.openLargeOutput?e2d3b551-dd88-41f7-90f8-e6ba35d27e94). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...\r\n``` \r\nListing the packages from the conda environment with ``conda list -n pichim`` produces the following output:\r\n``` \r\n# packages in environment at C:\\Users\\pichim\\miniconda3\\envs\\pichim:\r\n#\r\n# Name Version Build Channel\r\nasttokens 2.4.0 pyhd8ed1ab_0 conda-forge\r\nbackcall 0.2.0 pyh9f0ad1d_0 conda-forge\r\nbackports 1.0 pyhd8ed1ab_3 conda-forge\r\nbackports.functools_lru_cache 1.6.5 pyhd8ed1ab_0 conda-forge\r\nbrotli 1.1.0 hcfcfb64_1 conda-forge\r\nbrotli-bin 1.1.0 hcfcfb64_1 conda-forge\r\nca-certificates 2023.7.22 h56e8100_0 conda-forge\r\ncertifi 2023.7.22 pyhd8ed1ab_0 conda-forge\r\nclang 17.0.2 h3dc180e_0 conda-forge\r\nclang-17 17.0.2 default_heb8d277_0 conda-forge\r\nclangxx 17.0.2 default_heb8d277_0 conda-forge\r\ncolorama 0.4.6 pyhd8ed1ab_0 conda-forge\r\ncomm 0.1.4 pyhd8ed1ab_0 conda-forge\r\ncompiler-rt 17.0.2 h91493d7_1 conda-forge\r\ncompiler-rt_win-64 17.0.2 h91493d7_1 conda-forge\r\ncontourpy 1.1.1 py39h1f6ef14_1 conda-forge\r\ncontrol 0.9.4 pyhd8ed1ab_0 conda-forge\r\ncycler 0.12.1 pyhd8ed1ab_0 conda-forge\r\ndebugpy 1.8.0 py39h99910a6_1 conda-forge\r\ndecorator 5.1.1 pyhd8ed1ab_0 conda-forge\r\nexceptiongroup 1.1.3 pyhd8ed1ab_0 conda-forge\r\nexecuting 1.2.0 pyhd8ed1ab_0 conda-forge\r\nfonttools 4.43.1 py39ha55989b_0 conda-forge\r\nfreetype 2.12.1 hdaf720e_2 conda-forge\r\nicu 68.2 h0e60522_0 conda-forge\r\nimportlib-metadata 6.8.0 pyha770c72_0 conda-forge\r\nimportlib-resources 6.1.0 pyhd8ed1ab_0 conda-forge\r\nimportlib_metadata 6.8.0 hd8ed1ab_0 conda-forge\r\nimportlib_resources 6.1.0 pyhd8ed1ab_0 conda-forge\r\nintel-openmp 2023.2.0 h57928b3_50496 conda-forge\r\nipykernel 6.25.2 pyh60829e3_0 conda-forge\r\nipython 8.16.1 pyh5737063_0 conda-forge\r\njedi 0.19.1 pyhd8ed1ab_0 conda-forge\r\njpeg 9e hcfcfb64_3 conda-forge\r\njupyter_client 8.4.0 pyhd8ed1ab_0 conda-forge\r\njupyter_core 5.4.0 py39hcbf5309_0 conda-forge\r\nkiwisolver 1.4.5 py39h1f6ef14_1 conda-forge\r\nlerc 3.0 hd77b12b_0\r\nlibblas 3.9.0 19_win64_mkl conda-forge\r\nlibbrotlicommon 1.1.0 hcfcfb64_1 conda-forge\r\nlibbrotlidec 1.1.0 hcfcfb64_1 conda-forge\r\nlibbrotlienc 1.1.0 hcfcfb64_1 conda-forge\r\nlibcblas 3.9.0 19_win64_mkl conda-forge\r\nlibclang 11.1.0 default_h5c34c98_1 conda-forge\r\nlibdeflate 1.17 h2bbff1b_1\r\nlibflang 17.0.2 h63175ca_0 conda-forge\r\nlibhwloc 2.9.3 default_haede6df_1009 conda-forge\r\nlibiconv 1.17 h8ffe710_0 conda-forge\r\nliblapack 3.9.0 19_win64_mkl conda-forge\r\nlibpng 1.6.39 h19919ed_0 conda-forge\r\nlibsodium 1.0.18 h8d14728_1 conda-forge\r\nlibsqlite 3.43.2 hcfcfb64_0 conda-forge\r\nlibtiff 4.5.1 hd77b12b_0\r\nlibwebp 1.3.2 hcfcfb64_1 conda-forge\r\nlibwebp-base 1.3.2 hcfcfb64_0 conda-forge\r\nlibxml2 2.11.5 hc3477c8_1 conda-forge\r\nlibzlib 1.2.13 hcfcfb64_5 conda-forge\r\nmatplotlib 3.8.0 py39hcbf5309_2 conda-forge\r\nmatplotlib-base 3.8.0 py39hf19769e_2 conda-forge\r\nmatplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge\r\nmkl 2023.2.0 h6a75c08_50496 conda-forge\r\nmunkres 1.1.4 pyh9f0ad1d_0 conda-forge\r\nnest-asyncio 1.5.8 pyhd8ed1ab_0 conda-forge\r\nnumpy 1.26.0 py39hddb5d58_0 conda-forge\r\nopenjpeg 2.5.0 ha2aaf27_2 conda-forge\r\nopenssl 1.1.1w hcfcfb64_0 conda-forge\r\npackaging 23.2 pyhd8ed1ab_0 conda-forge\r\nparso 0.8.3 pyhd8ed1ab_0 conda-forge\r\npickleshare 0.7.5 py_1003 conda-forge\r\npillow 10.0.1 py39h045eedc_0\r\npip 23.3 pyhd8ed1ab_0 conda-forge\r\nplatformdirs 3.11.0 pyhd8ed1ab_0 conda-forge\r\nprompt-toolkit 3.0.39 pyha770c72_0 conda-forge\r\nprompt_toolkit 3.0.39 hd8ed1ab_0 conda-forge\r\npsutil 5.9.5 py39ha55989b_1 conda-forge\r\npthreads-win32 2.9.1 hfa6e2cd_3 conda-forge\r\npure_eval 0.2.2 pyhd8ed1ab_0 conda-forge\r\npygments 2.16.1 pyhd8ed1ab_0 conda-forge\r\npyparsing 3.1.1 pyhd8ed1ab_0 conda-forge\r\npyqt 5.12.3 py39hb0d2dfa_4 conda-forge\r\npyqt5-sip 4.19.18 pypi_0 pypi\r\npyqtchart 5.12 pypi_0 pypi\r\npyqtwebengine 5.12.1 pypi_0 pypi\r\npython 3.9.18 h6244533_0\r\npython-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge\r\npython_abi 3.9 2_cp39 conda-forge\r\npywin32 306 py39h99910a6_2 conda-forge\r\npyzmq 25.1.1 py39hea35a22_1 conda-forge\r\nqt 5.12.9 h5909a2a_4 conda-forge\r\nscipy 1.11.3 py39hddb5d58_1 conda-forge\r\nsetuptools 68.2.2 pyhd8ed1ab_0 conda-forge\r\nsix 1.16.0 pyh6c4a22f_0 conda-forge\r\nslycot 0.5.4 py39h73a3b6d_1 conda-forge\r\nsqlite 3.43.2 hcfcfb64_0 conda-forge\r\nstack_data 0.6.2 pyhd8ed1ab_0 conda-forge\r\ntbb 2021.10.0 h91493d7_1 conda-forge\r\ntk 8.6.13 hcfcfb64_0 conda-forge\r\ntornado 6.3.3 py39ha55989b_1 conda-forge\r\ntraitlets 5.11.2 pyhd8ed1ab_0 conda-forge\r\ntyping-extensions 4.8.0 hd8ed1ab_0 conda-forge\r\ntyping_extensions 4.8.0 pyha770c72_0 conda-forge\r\ntzdata 2023c h71feb2d_0 conda-forge\r\nucrt 10.0.22621.0 h57928b3_0 conda-forge\r\nunicodedata2 15.1.0 py39ha55989b_0 conda-forge\r\nvc 14.3 h64f974e_17 conda-forge\r\nvc14_runtime 14.36.32532 hdcecf7f_17 conda-forge\r\nvs2015_runtime 14.36.32532 h05e6639_17 conda-forge\r\nwcwidth 0.2.8 pyhd8ed1ab_0 conda-forge\r\nwheel 0.41.2 pyhd8ed1ab_0 conda-forge\r\nxz 5.4.2 h8cc25b3_0\r\nzeromq 4.3.4 h0e60522_1 conda-forge\r\nzipp 3.17.0 pyhd8ed1ab_0 conda-forge\r\nzlib 1.2.13 hcfcfb64_5 conda-forge\r\nzstd 1.5.5 h12be248_0 conda-forge\r\n``` \r\n- I also tried it with Pycharm on my default account, but the error was the same.\r\n- I know I managed to get the examples running in the past :-)\r\n- I already spent quit a bit of time browsing the internet for a solution, so I thought I would raise an Issue\r\n\r\nI greatly appreciate what you are doing, big respect!","author":{"url":"https://github.com/pichim","@type":"Person","name":"pichim"},"datePublished":"2023-10-17T07:03:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":23},"url":"https://github.com/219/Slycot/issues/219"}
| 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:f9d74d19-be9a-73ac-1786-82895026a0e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC36:3BC364:34AA5C5:4812B56:6979D7EB |
| html-safe-nonce | 95761322f432283a39e7e1b561fb22753c92dfb874b726770477d0cd65788573 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzM2OjNCQzM2NDozNEFBNUM1OjQ4MTJCNTY6Njk3OUQ3RUIiLCJ2aXNpdG9yX2lkIjoiODUzNjY3OTExNjcxODA2OTczOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d790f2aa530b420ed6168e6e927a79dc75438515cf5c68226b1727a19e90352 |
| hovercard-subject-tag | issue:1946870365 |
| 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/219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee18f5ed7cd2ec8886f4b4a2125a7d713002116de29d6c81f8941fb867aa8b12/python-control/Slycot/issues/219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee18f5ed7cd2ec8886f4b4a2125a7d713002116de29d6c81f8941fb867aa8b12/python-control/Slycot/issues/219 |
| og:image:alt | Hi everybody I would like to test and evaluate the package to eventually leave Matlab behind for my control systems class. Currently I'm using Windows 10. To make the error reproducible i created a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pichim |
| hostname | github.com |
| expected-hostname | github.com |
| None | c049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4 |
| 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 | aa81cb94735f56e8afe352515e35f16bd5c0018b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width