Skip to content

elf2bin.py: Verify/compile outputs two syntax warnings #9154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 6 tasks
Vic-Y opened this issue Jun 18, 2024 · 2 comments
Closed
4 of 6 tasks

elf2bin.py: Verify/compile outputs two syntax warnings #9154

Vic-Y opened this issue Jun 18, 2024 · 2 comments

Comments

@Vic-Y
Copy link
Contributor

Vic-Y commented Jun 18, 2024

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP8266 LOLIN(WEMOS) D1 mini (clone)]
  • Core Version:
  • Development Env: [Arduino IDE]
  • Operating System: [Ubuntu]

Settings in IDE

  • Module: [LOLIN(WEMOS) D1 mini (clone)]
  • Flash Mode: [DOUT(compatible)]
  • Flash Size: [4MB]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method:
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200]

Problem Description

Output window displays the following two syntax warnings during verify/compile:

/home/{user}/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/elf2bin.py:54: SyntaxWarning: invalid escape sequence '\s'
words = re.split('\s+', line)
/home/{user}/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/elf2bin.py:73: SyntaxWarning: invalid escape sequence '\s'
words = re.split('\s+', line)

I guess that the escape sequence '\s' should be replace by a space character, but since I do not know how elf2bin.py file works, I did not submit a commit.
words = re.split(' +', line)

@mcspr
Copy link
Collaborator

mcspr commented Jun 19, 2024

I guess that the escape sequence '\s' should be replace by a space character, but since I do not know how elf2bin.py file works, I did not submit a commit.
words = re.split(' +', line)

Fixed in master by #9034, should be part of the next release

@mcspr mcspr closed this as completed Jun 19, 2024
@madurapa
Copy link

You can use dev in the version to fix this warning (note this may break at any time)

esp8266:
  board: nodemcuv2
  framework:
    version: dev

More information on https://esphome.io/components/esp8266.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants