esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

ImportError: cannot import name 'core' from 'esphome' #3258

Closed prod-cnd closed 1 year ago

prod-cnd commented 2 years ago

The problem

Hello, I use ESPHome on Windows. Everything was working perfectly. I could create projects and send them to my ESPs. Now I can no longer create projects or send them: Anaconda powershell Prompt returns me:

(base) PS H:\PROJETS\ESPHOME\PROJET_HA\weather-station-evo3> esphome wizard weather-station-evo3.yaml
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\Scripts\esphome.exe\__main__.py", line 4, in <module>
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\esphome\__main__.py", line 8, in <module>
    from esphome import const, writer, yaml_util
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\esphome\writer.py", line 7, in <module>
    from esphome.config import iter_components
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\esphome\config.py", line 12, in <module>
    from esphome import core, yaml_util, loader
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\esphome\yaml_util.py", line 12, in <module>
    from esphome import core
ImportError: cannot import name 'core' from 'esphome' (C:\Users\User\AppData\Roaming\Python\Python39\site-packages\esphome\__init__.py)
(base) PS H:\PROJETS\ESPHOME\PROJET_HA\weather-station-evo3>

I installed Anaconda and ran these commands as administrator:

cd H:\PROJECTS\ESPHOME
conda install git
conda install whell
conda install pip

Install ESPHOME pip3 install https://github.com/esphome/esphome/archive/refs/heads/dev.zip

How do I make my ESP Home operational again? I already uninstalled anaconda and reinstalled epshome.

Which version of ESPHome has the issue?

Last

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

Last

What platform are you using?

ESP32

Board

ESP32DEV

Component causing the issue

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.