Skip to main content
Visitor II
May 10, 2021
Solved

Python scripts do not work : No module named 'click'

  • May 10, 2021
  • 3 replies
  • 6736 views

I am trying to use the DATALOG1_V1.1.0\Utilities\Python_SDK

When I call the script hsdatalog_data_export I get an error: "No module named 'click'

What to do to make these scrpits work? Pyhton is V3.7.80693W00000ANsnIQAT.jpg

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @Community member​ ,

    if not already done, please consider the UM2688 user manual, dealing with the STM32Cube High Speed Datalog function pack.

    In particular, you can refer to the last part of section 2.6.2, p.33, especially about the libraries that have to be installed in order to make the script working. The Python version you are using should be ok.

    0693W00000AOF4aQAH.png 

    If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.

    -Eleon

    3 replies

    ST Employee
    May 13, 2021

    Hi @Community member​ ,

    if not already done, please consider the UM2688 user manual, dealing with the STM32Cube High Speed Datalog function pack.

    In particular, you can refer to the last part of section 2.6.2, p.33, especially about the libraries that have to be installed in order to make the script working. The Python version you are using should be ok.

    0693W00000AOF4aQAH.png 

    If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.

    -Eleon

    Visitor II
    January 6, 2025

    Hi @Eleon BORLINI , 

    After i installed 'click' on my computer and on the virtual environment, i am still with the same error. Do you know what can i do to fix it?

    Thanks!Captura de ecrã 2025-01-06 123040.png

    Visitor II
    January 6, 2025

    I already solved the issued with click, but now i have the following error:

    "No module named 'st_hsdatalog'"

    Can you help me? @Eleon BORLINI 

    Thanks

     

     

    ST Employee
    May 17, 2021

    Hi @Community member​ ,

    any update about your issue?

    -Eleon

    Visitor II
    May 18, 2021

    I had Pyton V2.7 installed from another project, and this was blocking the V3.7 Python to install correctly.

    After uninstalling all and reinstall V3.7.9, I was able to run the pip installation of the needed modules.

    So now the scripts are working fine.

    Thx

    ST Employee
    May 18, 2021

    Glad to hear you solved your issue, Stefan!

    -Eleon