Skip to content

ModuleNotFoundError: No module named 'slycot' #1

@Ehsan-Home

Description

@Ehsan-Home

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions