MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Fitbit2 PythonShell is not a constructor

    Troubleshooting
    6
    14
    696
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vizulize Module Developer last edited by

      I have updated the module: https://github.com/m-roberts/MMM-Fitbit2/commit/27706ea0a9ab13b8d12a020f7234adf361d108ae

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Vizulize last edited by sdetweil

        @vizulize i think it depends on what version of python-shell you are running…

        https://github.com/extrabacon/python-shell/issues/154

        your package.json says

        "python-shell": "^0.5.0"
        

        which means 0.5.0 OR ABOVE (technically ‘at minimum’)

        if u want ONLY 0.5.0, take the ^ off the front…
        else sometimes u will get 1.x

        Sam

        Create a working config
        How to add modules

        V 1 Reply Last reply Reply Quote 0
        • V
          Vizulize Module Developer @sdetweil last edited by

          @sdetweil It is defined as 0.5.0 in the dependencies.

          To be honest, the Python should be rewritten in JS anyway. Perhaps I will get around to doing that in the near future 🤔

          Then this issue goes away!

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @Vizulize last edited by

            @vizulize yeh, i don’t know whay there is a python_shell lib… as exec and spawn are so easy…

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy