Skip to content
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

esphome won't start - missing argument #831

Closed
lwqcz opened this issue Nov 8, 2019 · 4 comments · Fixed by esphome/esphome#849
Closed

esphome won't start - missing argument #831

lwqcz opened this issue Nov 8, 2019 · 4 comments · Fixed by esphome/esphome#849

Comments

@lwqcz
Copy link

lwqcz commented Nov 8, 2019

Operating environment/Installation (Hass.io/Docker/pip/etc.):

  • pip on Xenial i386 machine

ESP (ESP32/ESP8266, Board/Sonoff):

ESP8266 onboard Wemos D1 Mini

Affected component:

https://esphome.io/guides/getting_started_command_line.html

Description of problem:
I've followed CLI getting started procedure and everything was fine.
When I've tried to start a text based wizard of dashboard - only this error was thrown thru stderr:

Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 7, in <module>
    from esphome.__main__ import main
  File "/usr/local/lib/python3.5/dist-packages/esphome/__main__.py", line 10, in <module>
    from esphome import const, writer, yaml_util
  File "/usr/local/lib/python3.5/dist-packages/esphome/writer.py", line 7, in <module>
    from esphome.config import iter_components
  File "/usr/local/lib/python3.5/dist-packages/esphome/config.py", line 15, in <module>
    from esphome import core, core_config, yaml_util
  File "/usr/local/lib/python3.5/dist-packages/esphome/core_config.py", line 5, in <module>
    import esphome.codegen as cg
  File "/usr/local/lib/python3.5/dist-packages/esphome/codegen.py", line 11, in <module>
    from esphome.cpp_generator import (  # noqa
  File "/usr/local/lib/python3.5/dist-packages/esphome/cpp_generator.py", line 23, in <module>
    Type[bool], Type[int], Type[float], List[Any]]
  File "/usr/lib/python3.5/typing.py", line 552, in __getitem__
    dict(self.__dict__), parameters, _root=True)
  File "/usr/lib/python3.5/typing.py", line 512, in __new__
    for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
  File "/usr/lib/python3.5/typing.py", line 512, in <genexpr>
    for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
  File "/usr/lib/python3.5/typing.py", line 1077, in __subclasscheck__
    if super().__subclasscheck__(cls):
  File "/usr/lib/python3.5/abc.py", line 225, in __subclasscheck__
    for scls in cls.__subclasses__():
TypeError: descriptor '__subclasses__' of 'type' object needs an argument

Problem-relevant YAML-configuration entries:

# no applicable

Logs (if applicable):

# no applicable

Additional information and things you've tried:

  • I assumed that my Python3 env is working as the esptool.py or other tools are working correctly.
@OttoWinter
Copy link
Member

ESPHome 1.14+ requires Python 3.6+ - you have 3.5 installed.

Seems to be an error in setup.py - it's accepting py3.5 where it should reject that python version.

Please upgrade your python install to 3.6 or higher.

@lwqcz
Copy link
Author

lwqcz commented Nov 8, 2019

I see :-) after upgrade to python3.6 and setup of env, everything is working fine I assume :-) thank you ...

Anyway ... Where can I see this requirement from a common user perspective at https://esphome.io/guides/getting_started_command_line.html ?
I didn't notice even use of pip3, but pip instead ...

@OttoWinter
Copy link
Member

@lwqcz It's all in a transition phase right now.

in 1.13.6, only python 2 was really supported (py3 worked, but was experimental).

in 1.14.x, both py2/3 are supported - hence the use of pip in the docs.

in 1.15.x, only py3 will be supported, then the docs will be updated to reflect that.

@lwqcz
Copy link
Author

lwqcz commented Nov 11, 2019

🆗 I understand now, thank you a bunch for your great work and besides, I'll contribute too - I'm interested in support for Melexis's IR sensors and others 😎

@lwqcz lwqcz closed this as completed Nov 11, 2019
OttoWinter added a commit to esphome/esphome that referenced this issue Nov 12, 2019
OttoWinter added a commit to esphome/esphome that referenced this issue Nov 12, 2019
* Mark python 3.5 unsupported

Fixes esphome/issues#831

* Update .travis.yml

* Update typing dep
OttoWinter added a commit to esphome/esphome that referenced this issue Nov 17, 2019
* Mark python 3.5 unsupported

Fixes esphome/issues#831

* Update .travis.yml

* Update typing dep
@lock lock bot locked and limited conversation to collaborators Nov 18, 2019
silverchris pushed a commit to silverchris/esphome that referenced this issue May 23, 2020
* Mark python 3.5 unsupported

Fixes esphome/issues#831

* Update .travis.yml

* Update typing dep
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants