Pymakr cannot connect after firmware upgrades

  • @Ralph some progress - the new firmware seems to be stabler under wifi, but not usb.

    USB still throws a stack widget error, but wifi seems to be moderately stable - had it fail once when I disconnected screen.

    Until the basics like realtime clock are there, I need to use other platforms so I'll come back in a while and see if the platform has matured. Until then I'm using the WiPy under ESP32 IDT.

  • Global Moderator

    @richardkt Next week we'll release a new version of Pymakr, as well as a firmware update.

  • @Ralph Hi, any idea on when the fixes will be released?

  • Global Moderator

    Hi @rogierb, There are two bugs responsible for this behaviour, with the versions you are using. One in the firmware that causes the USB Serial not to function and one in Pymakr that causes the QStackedWidget error. Both bugs have now been fixed and will be released soon.

  • @Ralph Hi Ralph, I just upgraded to Pymakr 1.0.0.b6 and Wipy to (sysname='WiPy', nodename='WiPy', release='0.9.4.b1', version='bc42ea7 on 2016-11-14', machine='WiPy with ESP32')

    Still these issues:

    • Connecting over USBSerial doesn't work (Yes, I have the correct REPL code on
    • Connecting over Wifi does work, but Pymakr crashes with "QStackedWidget::setCurrentWidget: widget 0x7fb7b85bdf70 not contained in stack"-error

    Connecting over wifi through telnet and doing some stuff on the command line works fine.

    (edit: after displaying the "setCurrentWidget"-error, my telnet is dead, I need to reboot the device)

  • Pybytes Beta

    @Ralph thx for the answer. I will give it a try tomorrow.

  • Global Moderator

    You can indeed find the and files in the /flash folder. Use FTP to download them to a folder on your pc. After this, you can go to Pymakr, create a new project for this folder and start coding and syncing code to the device from there. You can also skip the FTP download part and create new boot and main files from Pymakr.
    Let me know if this helps you to get started.

  • Global Moderator

    @jonirons said in Pymakr cannot connect after firmware upgrades:

    We really do need to know what is working, what isn't, and when it might be fixed.

    I completely agree with you and we are working on improving this. Step one is making more use of the new repo's on github for tracking issues.

    My colleagues will take care of your watchdog questions in those topics, since that's not my field of expertise.

  • Global Moderator

    @livius thanks for notifying this, l'll check if our update system is causing this version information error.

    I'm also still unable to connect Pymakr with the latest firmware version. This issue is probably the cause of this, perhaps somehow also involved in preventing connection over serial. We'll be working on a fix for this very soon.

  • @jonirons @Ralph
    Maybe I am just to new to this system, but I am having problems locating I searched the folders that I could and found nothing. How do I view the '/flash' folder?

  • @Ralph Yes - I tried that.
    The loop waiting for "not wlan.isconnected() caused a watchdog timeout (took 8 seconds to finish) and watchdog timer HALTED the machine (I've posted this issue on this forum). The only way out was to wipe the flash. I then removed that code from, and put it in a file, and discovered that watchdog feeding is not available (also posted somewhere on the forum).

    The difference between my code and the example is the use of 'dhcp'. I've also posted somewhere or other that dhcp on WiPy2 takes 10 seconds, whereas on WiPy 1 it takes a bit under 2 seconds.

    If 'dhcp' is not yet properly supported this would be useful to know, as would watchdog feeding, no support for RTC etc.

    We really do need to know what is working, what isn't, and when it might be fixed.

    More particularly those who haven't bought a device yet need to be advised that the software doesn't yet support all features.

    if machine.reset_cause() != machine.SOFT_RESET:
    # configuration below MUST match your home router settings!!
    wlan.ifconfig(config=('', '', '', ''))

    if not wlan.isconnected():
    # change the line below to match your network ssid, security and password
    wlan.connect('mywifi', auth=(WLAN.WPA2, 'mywifikey'), timeout=5000)
    while not wlan.isconnected():
    machine.idle() # save power while waiting

  • Pymakr can not connect to WiPy2 with newest firmware also.

    i got message

    pymakr - Error getting versions information
    The versions information could not be downloaded for the last 7 days. Please go online and try again.

    and trying to connect by pymakr

    Error while communicating with the Pycom device! (click to attempt to reconnect)
    Connecting to a Pycom device...

    and strange it now restart my device
    tested on Windows 10

  • Global Moderator

    One thing that could be going wrong, is the wifi code in your file. Pymakr does a soft reset when connecting, so you need this check just above your wifi code (see example):

    if machine.reset_cause() != machine.SOFT_RESET:

    This prevents your wifi connection to be reset when you connect using pymakr.

    Let me know if that helps with your issue.

  • Global Moderator

    Hi @dg66, Assuming you do have the REPL code enabled in your and do not have any other connections open to the board while trying to connect from Pymakr, I suggest you first try the latest firmware release from yesterday evening which has some stability improvements:

    Let me know if that helps, otherwise we'll go into more detail to debug your issue.

  • Pybytes Beta

    I can confirm that i'm unable to connect via serial with pymaker. I am able to use screen to connect so it is not a wipy related problem (like code crashing). I'm using pymakr 1.0.0b6 under ubuntu 16.04 on a brand new wipy2 with the latest firmware and no additional code. Connecting with rshell also work fine. Pymakr is configured to connect through the correct serial (/dev/ttyUSB0)

  • Global Moderator

    @hugo We are working on the QStackedWidget error, which will be solved in the next release.

  • While Rogierb seems to have fixed his problem mine is still there...
    Pymakr 1.0.0.b6
    Wipy 1.0 with v1.8.2.

    Cannot connect using serial connection

    EDIT: after I sorted out my permissions to /dev/ttyUSB0
    I get the same error as below

    QStackedWidget::setCurrentWidget: widget 0x3a38abc not contained in stack


  • Global Moderator

    @stevePy Thanks for the stacktrace and other information, I've seen that error once before and will definitely look into that. Same for the QStackedWidget error.

  • same as you. can not connect to wipy2 by pymakr. I pause my work with wipy for 1 month and back to see if all my problems are gone.
    Too much time waisted

  • Hi,

    I have successfully installed the 0.9.3.b2 firmware onto my WiPy 2.0 and I can connect via Telnet, FTP (FileZilla) and via Tera Term + REPL using the USB virtual UART. Using FileZilla, I have confirmed that my contains:-

    import os
    from machine import UART
    uart = UART(0, 115200)

    and using Tera Term + REPL with:-

    import os

    I have confirmed that the WiPy responds with 0.9.3.b2

    I have installed PyMakr version 1.0.0.b6 onto my Windows 10 pc (same as used for the above) and my WiPy is connected both via WiFi and via the USB serial - as tested and proven to work, above.

    When I try to connect using either the serial (with the correct COM port, as proven via Tera Term + REPL), or via the IP settings (as proven via Telnet and FTP) and the correct micro/python auth, I get the following error message:-

    "Error while communicating with the Pycom device! (click to attempt to reconnect)"

    This issue appears to be connected with the appearance of the PyMakr error message shown below.

    I also occasionally get a message which looks something like: QStackedWidget::setCurrentWidget: widget 0x???????????? not contained in stack

    Regards Steve

    2016-11-09, 10:30:20

    <type 'exceptions.TypeError'>:
    'NoneType' object has no attribute 'getitem'

    File "C:\Program Files (x86)\Pycom\Pymakr\Pymakr\Plugins\", line 90, in __onWindowLoad
    File "C:\Program Files (x86)\Pycom\Pymakr\Pymakr\Plugins\", line 75, in __windowLoaded
    File "C:\Program Files (x86)\Pycom\Pymakr\Pymakr\Plugins\", line 197, in __setupToolbars
    self.__initLiteToolbar(self.__ui, self.__toolbars)
    File "C:\Program Files (x86)\Pycom\Pymakr\Pymakr\Plugins\", line 183, in __initLiteToolbar
    for el in self.__ui.getToolbar(bar[0])[1].actions():

    Version Numbers:
    Python 2.7.12
    Qt 4.8.7
    PyQt 4.11.4
    sip 4.16.8
    QScintilla 2.9
    WebKit 534.34
    Pymakr 1.0.0.b6

    Platform: win32
    2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]

    Plugins Version Numbers:
    PluginAbout 6.1.0
    PluginAboutPymakr 1.0.0
    PluginCodeStyleChecker 6.1.0
    PluginCompletionJedi 1.0.3
    PluginEricapi 6.1.0
    PluginEricdoc 6.1.0
    PluginFeedback 1.0.0
    PluginFullUI 1.0.0
    PluginLiteUI 1.0.0
    PluginPycomDevice 1.0.0
    PluginPycomStyle 1.0.0
    PluginPycomSync 1.0.0
    PluginREPL 1.0.0
    PluginSyntaxChecker 6.1.0
    PluginTabnanny 6.1.0
    PluginUpdate 1.0.0
    PluginVcsMercurial 6.1.0
    PluginVcsPySvn 6.1.0
    PluginVcsSubversion 6.1.0
    PluginVmListspace 6.1.0
    PluginVmTabview 6.1.0
    PluginWizardE5MessageBox 6.1.0
    PluginWizardPyRegExp 6.1.0
    PluginWizardQColorDialog 6.1.0
    PluginWizardQFileDialog 6.1.0
    PluginWizardQFontDialog 6.1.0
    PluginWizardQInputDialog 6.1.0
    PluginWizardQMessageBox 6.1.0
    PluginWizardQRegExp 6.1.0
    PluginWizardQRegularExpression 6.1.0


Pycom on Twitter