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

    Upload failed.: OSError: [Errno 22] EINVAL with LoPy4 and PyMakr

    Scheduled Pinned Locked Moved LoPy
    lopy4pymakrexpansion board
    2 Posts 2 Posters 553 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.
    • C Offline
      christian_kohler
      last edited by christian_kohler

      I have a LoPy4 (version 1.18), plugged into an Expansion Board 2, and connected via USB to a Mac running Atom 1.27.2, and PyMakr 1.3.3

      I can upload some small projects without a problem, but one project is failing consistently, see below.

      >>>
      Uploading project (main folder)...
      Safe booting device... (see settings for more info)
      
      Reading file status
      Creating dir lib
      [1/3] Writing file lib/sht31.py
      [2/3] Writing file lib/urequests.py
      [3/3] Writing file main.py
      Upload failed.: OSError: [Errno 22] EINVAL
       Please reboot your device manually.
      OKTraceback (most recent call last):
        File "<stdin>", line 2, in <module>
      OSError: [Errno 22] EINVAL
      >OKTraceback (most recent call last):
        File "<stdin>", line 2, in <module>
      OSError: [Errno 22] EINVAL
      >OKTraceback (most recent call last):
        File "<stdin>", line 2, in <module>
      OSError: [Errno 22] EINVAL
      >OK>OKets Jun  8 2016 00:22:57
      
      rst:0x7 (TG0WDT_SYS_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff8028,len:8
      load:0x3fff8030,len:1728
      load:0x4009fa00,len:0
      load:0x4009fa00,len:14584
      entry 0x400a059c
      

      I did manage to upload it over FTP once, but that has not been a reliable route. Often when I connect to the LoPy AP and use FileZilla to connect to 192.168.4.1 I cannot get it to work.

      Status:      	Connecting to 192.168.4.1:21...
      Error:        	Connection timed out after 20 seconds of inactivity
      Error:        	Could not connect to server
      

      Any idea what is going on here?

      Thanks

      Christian

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

        @christian_kohler Did you set Filezilla to single link/passive mode? The number of simultaneous links have to be set in the server settings submenu->transfer settings for each connection.
        I'm using ftp all the time, and it is pretty reliable and fast. SInce I have Firfox open all the time anyhow, I prefer the FireFTP plugin.

        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