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] Unable to import from 'network'

    Scheduled Pinned Locked Moved Getting Started
    librarynetworkvs code pymakrlopy
    6 Posts 3 Posters 2.2k Views 4 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.
    • C Offline
      CBaudrit
      last edited by CBaudrit

      Hi, I'm an ultra begginer (just started yesturday), I have a LoPy on a Pysense. I wanted to test the LoRaMAC but the imports of LoRa from network don't workThis is my code right now.
      I don't know If my project is well set or else, If I can take any advice to make it work I would thank you.
      Sorry if I didn't explained my problem well, I'm french, but I hope you understood

      1 Reply Last reply Reply Quote 1
      • sebS Offline
        seb
        last edited by

        network is a library built into our firmware, the error you are seeing is from visual studio code, it cannot find a network python module, so it complains. If you upload your code to the module will be successfully imported.

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          CBaudrit
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C Offline
            CBaudrit @seb
            last edited by

            @seb Alrig thank you it worked indeed ! I have another question, when I try to setup LoRa region like this it says that LoRa has no attribute EU868. How can I fix that ?

            robert-hhR 1 Reply Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @CBaudrit
              last edited by

              @cbaudrit Are you sure that you are using the most recent firmware?

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                CBaudrit @robert-hh
                last edited by

                @robert-hh Hello, I updated the firmware and it seems to work, thank you ! Can't belive I didn't do this step ...

                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