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

    Serial Detection and Atom Pymakr debugging problems

    Scheduled Pinned Locked Moved Issues & Bugs
    pymakratomsipyserialdebug
    2 Posts 2 Posters 1.7k 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.
    • A Offline
      adrien3d
      last edited by adrien3d

      First of all, thank you for all the work you are doing for democratizing hardware with micropython support.

      As a Sigfox embassador, I'm trying to make a tutorial and open-source fir
      mware, using SiPy.

      But, on my Mac OS Sierra 10.12.5, the setup is very buggy.
      I've already installed and reinstalled FTDI Drivers, Atom, and the Pymakr package.

      While my ESP32 "dev boards" are working seamlessly (quickly and always detected as a /dev/tty.SLAB_USBtoUART), it's pretty impossible to detect my SiPy's as serial.

      I managed to upload files with WiFi/Filezilla, but it's impossible to debug that! (No serial = no debugging).

      I'm trying to get the Atom Pymakr plugin to work, but unsuccessfully, on startup, I have the following message:
      Do you have any ideas for either detect easily the SiPy serial port, or make the Pymakr Atom package working?

      [Enter steps to reproduce:]

      1. ...
      2. ...

      Atom: 1.17.2 x64
      Electron: 1.3.15
      OS: Mac OS X 10.12.5
      Thrown From: Pymakr package 1.0.1

      Stack Trace

      Failed to load the Pymakr package

      At dlopen(/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node, 1): no suitable image found.  Did find:
      	/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
      	/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
      
      Error: dlopen(/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node, 1): no suitable image found.  Did find:
      	/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
      	/Users/adrien/.atom/packages/Pymakr/lib/connections/serialport-linux/build/Release/serialport.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
          at Error (native)
          at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:168:20)
          at Object.Module._extensions..node (module.js:583:18)
          at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:168:20)
          at Module.load (module.js:473:32)
          at tryModuleLoad (module.js:432:12)
          at Function.Module._load (module.js:424:3)
          at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
          at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
          at bindings (/packages/Pymakr/node_modules/bindings/bindings.js:76:44)
          at /packages/Pymakr/lib/connections/serialport-linux/lib/bindings.js:3:35)
          at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:1)
          at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:230:1)
          at Module.load (module.js:473:32)
          at tryModuleLoad (module.js:432:12)
          at Function.Module._load (module.js:424:3)
          at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
          at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
          at /packages/Pymakr/lib/connections/serialport-linux/lib/serialport.js:12:25)
          at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:1)
          at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:230:1)
          at Module.load (module.js:473:32)
          at tryModuleLoad (module.js:432:12)
          at Function.Module._load (module.js:424:3)
          at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
          at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
          at /packages/pymakr/lib/connections/pyserial.js:14:18)
          at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:1)
          at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:230:1)
          at Module.load (module.js:473:32)
      

      Commands

        2x -0:02.8.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
      

      Non-Core Packages

      autocomplete-clang 0.11.3 
      build 0.68.0 
      busy 0.7.0 
      file-icons 2.1.6 
      intentions 1.1.2 
      language-ini 1.19.0 
      linter 2.1.4 
      linter-gcc 0.7.1 
      linter-ui-default 1.6.0 
      minimap 4.28.2 
      platformio-ide 2.0.0-beta.4 
      platformio-ide-debugger 1.2.0 
      platformio-ide-terminal 2.5.1 
      Pymakr 1.0.1 
      tool-bar 1.1.0 
      
      1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @adrien3d,

        Could you please try following the instructions at the bottom of this page, https://atom.io/packages/pymakr? It looks like you're having issues with the serial port module!

        Let me know if this helps,

        Alex

        Developer Evangelist - Pycom

        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