Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pybytes: MQTT ERROR! function got multiple values for argument 'user'

    Scheduled Pinned Locked Moved Pybytes IoT platform
    7 Posts 5 Posters 138 Views 6 Watching
    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.
    • T Offline
      tttadam
      last edited by

      This is the error what I get after the boot.py finished.
      This issue could be related to that I am connecting our mqtt server in boot.py?
      Thank you!
      This is the whole thing:

      WMAC: 3C71BF878480
      Firmware: 1.20.2.rc10
      Pybytes: 1.5.1
      Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
      WiFi connection established
      MQTT ERROR! function got multiple values for argument 'user'
      ERROR! Could not connect to Pybytes!
      Pybytes configuration read from /flash/pybytes_config.json
      
      1 Reply Last reply Reply Quote 0
      • ahmadelmasriA Offline
        ahmadelmasri
        last edited by

        Hi @tttadam,

        We will take a look and get back to you.

        can you please share config details (without SSID, and password) with me on the below email address.

        ahmad@pycom.io

        Best Regards,
        Ahmad El Masri

        Ahmad EL Masri

        M 1 Reply Last reply Reply Quote 0
        • T Offline
          tttadam
          last edited by

          I did this morning. Thank you.

          1 Reply Last reply Reply Quote 0
          • M Offline
            mrolfson @ahmadelmasri
            last edited by

            @ahmadelmasri
            I experience same error 2.5 months later, any ideas?
            My config file
            {
            "wifi": {"ssid": "", "password": ""},
            "wlan_antenna": 0,
            "dump_ca": false,
            "server": "mqtt.pybytes.pycom.io",
            "ssl": false,
            "lte": {"apn": null, "cid": 1, "reset": false, "carrier": null, "band": null, "type": null},
            "device_id": "6ac49f67-a7b9-40a3-bed8-f3aea1e2c851",
            "network_preferences": ["wifi"],
            "ota_server": {"port": 443, "domain": "software.pycom.io"},
            "pybytes_autostart": true,
            "username": "m
            .*******@gmail.com"
            }

            1 Reply Last reply Reply Quote 0
            • T Offline
              thinginnovations
              last edited by thinginnovations

              I'm seeing this error also with a LoPy using MQTT library to retrieve data to display on a LED matrix.

              Firmware: 1.20.2.r1
              Pybytes: 1.6.0
              Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
              WiFi connection established
              MQTT ERROR! function got multiple values for argument 'user'
              ERROR! Could not connect to Pybytes!
              Pybytes configuration read from /flash/pybytes_config.json
              Connecting to WiFi
              Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
              WiFi connection established
              MQTT ERROR! function got multiple values for argument 'user'
              ERROR! Could not connect to Pybytes!
              

              Clearly this issue hasn't yet been fixed or even responded to.

              Thanks

              Andrew

              1 Reply Last reply Reply Quote 0
              • PB123P Offline
                PB123
                last edited by PB123

                I realize this is an old thread but it might help someone.
                Situation
                I had pybytes up and running after which I went to play with MQTT connectivity. For this I installed the mqtt.py from the lib on github. Afterward I wanted to go back to pybytes and placed my old boot.py and main.py but I left the /flash/lib/mqtt.py
                Error
                Upon restart I ran into the error message:
                MQTT ERROR! function got multiple values for argument 'user'
                Fix
                I removed the /flash/lib/mqtt.py and the error was gone.
                To my knowledge I did not do anything else to fix this. I suspect there is a naming clash in the mqtt module name which results in pybytes getting a different mqtt import or such?

                Anyway, this might help someone else get unstuck ;-)

                EDIT:
                Found another post that explains why this happens and provides an elegant solution:
                https://forum.pycom.io/topic/6801/mqtt-library-conflict-with-pybytes/2?_=1613294236230

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tttadam
                  last edited by

                  I am sorry, forgot to post the solution.
                  I even had a quick skype call with one of the pycom developers.
                  Yes the solition was the same for me also. I renamed the file mqtt.py to something else like mqttclient.py, and it solved the issue. Somewhere deep there is a mqtt.py file in the pybytes firmware. That caused the issue.

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom