m-lundberg / simple-pid

A simple and easy to use PID controller in Python
MIT License
799 stars 217 forks source link

import issue #89

Closed NLuca closed 2 months ago

NLuca commented 2 months ago

I can not import the library. import simple-pid as PID --> "SyntaxError: invalid syntax" If I use "_" instead of "-" I get: ModuleNotFoundError: No module named 'simple_pid' What do you recommend? Thank you.

m-lundberg commented 2 months ago

As the error suggests, the module could not be found. Please double check that you installed the library correctly with pip.

NLuca commented 2 months ago

Hi Martin,

I am using PyCharm for my project. I have tried to install the module through the PyCharm interface and also using the PyCharm terminal. I have the same errors in both cases. What do you recommend?

Best regards, Luca Neri

On Sat, Sep 14, 2024 at 5:06 AM Martin Lundberg @.***> wrote:

As the error suggests, the module could not be found. Please double check that you installed the library correctly with pip.

— Reply to this email directly, view it on GitHub https://github.com/m-lundberg/simple-pid/issues/89#issuecomment-2350922838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK4IHJ2RVIROGGAKKI2BLDZWP4CXAVCNFSM6AAAAABOF7LYHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHEZDEOBTHA . You are receiving this because you authored the thread.Message ID: @.***>

NLuca commented 2 months ago

Hi Martin,

I have just solved the problem by installing the module outside PyCharm.

Thank you. Best regards, Luca Neri

On Mon, Sep 16, 2024 at 3:51 PM Luca Neri @.***> wrote:

Hi Martin,

I am using PyCharm for my project. I have tried to install the module through the PyCharm interface and also using the PyCharm terminal. I have the same errors in both cases. What do you recommend?

Best regards, Luca Neri

On Sat, Sep 14, 2024 at 5:06 AM Martin Lundberg @.***> wrote:

As the error suggests, the module could not be found. Please double check that you installed the library correctly with pip.

— Reply to this email directly, view it on GitHub https://github.com/m-lundberg/simple-pid/issues/89#issuecomment-2350922838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK4IHJ2RVIROGGAKKI2BLDZWP4CXAVCNFSM6AAAAABOF7LYHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHEZDEOBTHA . You are receiving this because you authored the thread.Message ID: @.***>