starlette==0.16.* is required by platformio #251

Closed
opened 5 months ago by Xuefer · 0 comments
Xuefer commented 5 months ago

$ esphome logs balcony.yaml --device balcony.lan

INFO Reading configuration balcony.yaml...
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (starlette 0.17.0 (/usr/lib/python3.9/site-packages), Requirement.parse('starlette==0.16.*'), {'platformio'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/esphome", line 33, in <module>
    sys.exit(load_entry_point('esphome==2021.12.0', 'console_scripts', 'esphome')())
  File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 823, in main
    return run_esphome(sys.argv)
  File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 810, in run_esphome
    rc = POST_CONFIG_ACTIONS[args.command](args, config)
  File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 360, in command_logs
    return show_logs(config, args, port)
  File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 280, in show_logs
    from esphome.components.api.client import run_logs
  File "/usr/lib/python3.9/site-packages/esphome/components/api/client.py", line 6, in <module>
    from aioesphomeapi import APIClient, ReconnectLogic, APIConnectionError, LogLevel
  File "/usr/lib/python3.9/site-packages/aioesphomeapi/__init__.py", line 2, in <module>
    from .client import APIClient
  File "/usr/lib/python3.9/site-packages/aioesphomeapi/client.py", line 15, in <module>
    from google.protobuf import message
  File "/usr/lib/python3.9/site-packages/google/__init__.py", line 1, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'starlette==0.16.*' distribution was not found and is required by platformio
$ esphome logs balcony.yaml --device balcony.lan ``` INFO Reading configuration balcony.yaml... Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (starlette 0.17.0 (/usr/lib/python3.9/site-packages), Requirement.parse('starlette==0.16.*'), {'platformio'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/esphome", line 33, in <module> sys.exit(load_entry_point('esphome==2021.12.0', 'console_scripts', 'esphome')()) File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 823, in main return run_esphome(sys.argv) File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 810, in run_esphome rc = POST_CONFIG_ACTIONS[args.command](args, config) File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 360, in command_logs return show_logs(config, args, port) File "/usr/lib/python3.9/site-packages/esphome/__main__.py", line 280, in show_logs from esphome.components.api.client import run_logs File "/usr/lib/python3.9/site-packages/esphome/components/api/client.py", line 6, in <module> from aioesphomeapi import APIClient, ReconnectLogic, APIConnectionError, LogLevel File "/usr/lib/python3.9/site-packages/aioesphomeapi/__init__.py", line 2, in <module> from .client import APIClient File "/usr/lib/python3.9/site-packages/aioesphomeapi/client.py", line 15, in <module> from google.protobuf import message File "/usr/lib/python3.9/site-packages/google/__init__.py", line 1, in <module> __import__('pkg_resources').declare_namespace(__name__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'starlette==0.16.*' distribution was not found and is required by platformio ```
onkelbeh added the
requirement
label 5 months ago
onkelbeh self-assigned this 5 months ago
onkelbeh referenced this issue from a commit 5 months ago
onkelbeh closed this issue 5 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.