Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Error installing EnviroDIY libraries in PlatformIO

Home Forums Mayfly Data Logger Error installing EnviroDIY libraries in PlatformIO

This topic contains 1 reply, has 2 voices, and was last updated by  Sara Damiano 7 months, 3 weeks ago.

  • Author
  • #12622

    Dave Fisher

    Following the instructions at https://github.com/EnviroDIY/Libraries, I’m entering the following command into a VSCode/PlatformIO terminal: pio lib -g install https://github.com/EnviroDIY/Libraries.git#platformio.

    I get this result: “Error: Could not load broken JSON: C:\Users\Dave’s Desktop\.platformio\lib\_tmp_installing-skmgx2-package\library.json”

    Following is the terminal output:

    PS C:\data\Mayfly\PlatformIO initialization> pio lib -g install https://github.com/EnviroDIY/Libraries.git#platformio
    Library Storage: C:\Users\Dave’s Desktop\.platformio\lib
    LibraryManager: Installing Libraries
    git version 2.19.1.windows.1
    Cloning into ‘C:\Users\Dave’s Desktop\.platformio\lib\_tmp_installing-skmgx2-package’…
    remote: Enumerating objects: 5, done.
    remote: Counting objects: 100% (5/5), done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 5 (delta 0), reused 3 (delta 0), pack-reused 0
    Unpacking objects: 100% (5/5), done.
    Error: Could not load broken JSON: C:\Users\Dave’s Desktop\.platformio\lib\_tmp_installing-skmgx2-package\library.json

    Any ideas on how to correct the error?

  • #12623

    Sara Damiano

    Oh dear. That definitely *is* a problem. And that’s entirely my fault; I hadn’t error-checked that json in a long time. It should be fixed now.

    Just FYI, there’s a lot in that library bundle.

You must be logged in to reply to this topic.