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

    [SOLVED] OTA Not Working

    Scheduled Pinned Locked Moved LoPy
    ota
    3 Posts 2 Posters 662 Views 2 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.
    • J Offline
      JuanMa
      last edited by JuanMa

      Hi all,

      I am trying to use OTA Wifi following the documentation, but when the device requests the manifest, an error ocurrs:

      File "OTA_server.py", line 156, in do_GET
          manifest = generate_manifest(current_ver, host)
        File "OTA_server.py", line 287, in generate_manifest
          to_delete, new_files, to_update = get_diff_list(current_ver, latest)
        File "OTA_server.py", line 215, in get_diff_list
          right_paths = get_all_paths(right, ignore=ignore)
        File "OTA_server.py", line 201, in get_all_paths
          paths += [os.path.join(d, f) for f in files]
        File "OTA_server.py", line 201, in <listcomp>
          paths += [os.path.join(d, f) for f in files]
        File "/usr/lib/python3.5/posixpath.py", line 89, in join
          genericpath._check_arg_types('join', a, *p)
        File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
          (funcname, s.__class__.__name__)) from None
      TypeError: join() argument must be str or bytes, not 'NoneType'
      

      I have followed it and the problem seems to be that the method os.walk(path) returns None as dirpath. Am I doing something wrong?

      PD: The files inside the script folder are these:

      ServerFiles-->
                     OTA_Server.py
                     firmware_1.0.0.bin
                     firmware_1.0.1.bin
      

      Thanks,

      JuanMa

      1 Reply Last reply Reply Quote 0
      • J Offline
        JuanMa
        last edited by

        Problem solved. It is mandatory to create the version folders.

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          railmonitor @JuanMa
          last edited by

          @JuanMa I am currently trying the same, also referencing this video from Pycom: https://www.youtube.com/watch?v=NnUVYIedl_w

          When i run the HTTP server from the OTA folder in pycom-libraries-master/examples/OTA the folders are already in place, but i get same error as you! What did you do to solve it precisely?

          Thanks
          /RM

          1 Reply Last reply Reply Quote 0

          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