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

    Trouble initiating pymesh on FiPy

    Scheduled Pinned Locked Moved FiPy
    2 Posts 1 Posters 67 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.
    • M Offline
      Maciek
      last edited by

      Hi,
      I've been trying to run the pymesh examples on my FiPy for some time now, but I can't get it working - I get the error:

      Traceback (most recent call last):
        File "main.py", line 35, in <module>
        File "/flash/lib/pymesh.py", line 57, in __init__
        File "/flash/lib/mesh_interface.py", line 56, in __init__
        File "/flash/lib/mesh_internal.py", line 123, in __init__
        File "/flash/lib/loramesh.py", line 73, in __init__
        File "/flash/lib/loramesh.py", line 122, in _lora_init
      AttributeError: 'LoRa' object has no attribute 'Mesh'
      

      I know this problem has been occurring on previous firmware versions, and the solution was to update it to version 1.19, however I've already updated it and I am running the newest version:

      Pycom MicroPython 1.20.2.rc10 [v1.11-a159dee] on 2020-06-26; FiPy with ESP32
      Pybytes Version: 1.5.1
      

      I am running the pymesh_frozen/main.py from master of pycom libraries folder on github. The lib folder is taken from the same location. Am I missing something?
      Also, I tried running the main-pybytes.py script on the other board which is connected to pybytes and there I got the error:

      AttributeError: 'NoneType' object has no attribute '__pymesh'
      

      in

      pymesh = pybytes.__pymesh.__pymesh
      

      Any tips how to solve this? Both boards have the same firmware and pybytes version.

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

        Ok, it seems I found the solution, which was just downgrading the firmware to 1.20.0rc10.
        However, now I am experiencing the apparently known issue of Wi-Fi not working on legacy firmware (the WLAN.scan() function returns OSError: Scan operation failed)

        So - does anyone know which version of firmware has no issues with both pymesh and Wi-Fi connection?

        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