inverted_pendulum icon indicating copy to clipboard operation
inverted_pendulum copied to clipboard

ModuleNotFoundError: No module named 'slycot'

Open Ehsan-Home opened this issue 4 years ago • 1 comments

Hi. Thank you for your cool src of code.

I have a problem with running controlled_cart_and_pendulum.py.

When I try to run through python controlled_cart_and_pendulum.py

I get the following error:

`Traceback (most recent call last): File "C:\Users...\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\control\statefbk.py", line 389, in lqr from slycot import sb02md ModuleNotFoundError: No module named 'slycot'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "controlled_cart_and_pendulum.py", line 51, in K, S, E = control.lqr( ss.A, ss.B, Q, R ) File "C:\Users...\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\control\statefbk.py", line 392, in lqr raise ControlSlycot("can't find slycot module 'sb02md' or 'sb02nt'") control.exception.ControlSlycot: can't find slycot module 'sb02md' or 'sb02nt'`

Any help is highly appreciated.

Thanks!

Ehsan-Home avatar Jul 23 '20 04:07 Ehsan-Home

I see that you are running it on windows. I am not sure how to fix it, but looks like the python control package is the issue. I recommend you try to run some sample codes from control package on your system first.

mpkuse avatar Jul 23 '20 07:07 mpkuse