Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people 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

Viewing 1 reply thread
  • Author
    Posts
    • #12622
      Dave Fisher
      Participant

        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
        Moderator

          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.

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.