#Hey all
1 messages · Page 1 of 1 (latest)
Running a windows machine, I've got WSL going (fresh install that I just re-installed.
I first try the dev container; that fails to start 😦
=> CACHED [dev_container_auto_added_stage_label 14/17] RUN pip3 install -r requirements.txt --use-deprecated=legacy-resolver 0.0s
=> CACHED [dev_container_auto_added_stage_label 15/17] COPY requirements_test.txt requirements_test_pre_commit.txt ./ 0.0s
=> ERROR [dev_container_auto_added_stage_label 16/17] RUN pip3 install -r requirements_test.txt --use-deprecated=legacy-resolver 2.7s
#0 2.547 ERROR: Could not find a version that satisfies the requirement codecov==2.1.12 (from -r requirements_test.txt (line 11)) (from versions: 2.1.13)
#0 2.547 ERROR: No matching distribution found for codecov==2.1.12 (from -r requirements_test.txt (line 11))
OK, so I try a manual environment...
I get up to running hass referencing the config file and get stuck at:
hass -c config
Traceback (most recent call last):
File "/mnt/c/git/hass_core/venv/bin/hass", line 33, in <module>
sys.exit(load_entry_point('homeassistant', 'console_scripts', 'hass')())
File "/mnt/c/git/hass_core/venv/bin/hass", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/mnt/c/git/hass_core/homeassistant/__main__.py", line 10, in <module>
from .const import REQUIRED_PYTHON_VER, RESTART_EXIT_CODE, __version__
File "/mnt/c/git/hass_core/homeassistant/const.py", line 4, in <module>
from enum import StrEnum
ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)
I've tried installing enum34, uninstalling enum34, new environment, etc...
I'm not sure what else to do before I start trying to modify the dockerfile to get the dev container working...
#devs_core-archived would be a better channel for this