truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

[ESPHOME] Package not found error. Please see log. #1647

Closed BirdBare closed 2 years ago

BirdBare commented 2 years ago

SCALE version TrueNAS-SCALE-22.02-RC.1-1

App Version esphome 2021.12.2_9.0.33

Application Logs 2022-01-04 00:09:19.203807+00:00Traceback (most recent call last): 2022-01-04 00:09:19.203907+00:00File "/usr/bin/esphome", line 33, in 2022-01-04 00:09:19.203932+00:00sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')()) 2022-01-04 00:09:19.203939+00:00File "/usr/bin/esphome", line 22, in importlib_load_entry_point 2022-01-04 00:09:19.204013+00:00for entry_point in distribution(dist_name).entry_points 2022-01-04 00:09:19.204061+00:00File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution 2022-01-04 00:09:19.204236+00:00return Distribution.from_name(distribution_name) 2022-01-04 00:09:19.204278+00:00File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name 2022-01-04 00:09:19.204334+00:00raise PackageNotFoundError(name) 2022-01-04 00:09:19.204486+00:00importlib.metadata.PackageNotFoundError: esphome

Application Configuration Everything is default

Describe the bug 2022-01-04 00:09:19.204486+00:00importlib.metadata.PackageNotFoundError: esphome

To Reproduce All I did was run the app with all default parameters with my version of Scale.

Additional context Home assistant is also installed.

stavros-k commented 2 years ago

Mine starts and I can access the webUI with everything default. Logs are clean as well.

BirdBare commented 2 years ago

I tried again today. Still did not work with 9.0.33. I noticed there was an update. Updated the chart to 9.0.35 and it works again.

Not sure what you did to break it at first but it is fixed now.

Thanks for following up!

stavros-k commented 2 years ago

We just updated the image from upstream! Probably they did something there ;) Happy it worked

BirdBare commented 2 years ago

I'm having a new issue. Still completely default config.

When trying to install to an ESP I get the following error.

Not sure if I need to modify permissions somewhere.

PermissionError: [Errno 13] Permission denied: '/piolibs/ArduinoJson-esphomelib': File "/usr/local/lib/python3.9/dist-packages/platformio/builder/main.py", line 180: env.SConscript("$BUILD_SCRIPT") File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Script/SConscript.py", line 597: return _SConscript(self.fs, *files, **subst_kw) File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/config/.esphome/platformio/platforms/espressif32/builder/main.py", line 218: target_elf = env.BuildProgram() File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py", line 748: return self.method(*nargs, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/platformio.py", line 62: env.ProcessProjectDeps() File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py", line 748: return self.method(*nargs, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/platformio.py", line 141: project_lib_builder = env.ConfigureProjectLibBuilder() File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py", line 748: return self.method(*nargs, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 1104: project.install_dependencies() File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 922: if _is_builtin(spec): File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 914: for lb in self.env.GetLibBuilders(): File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py", line 748: return self.method(*nargs, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 1035: lb = LibBuilderFactory.new(env, lib_dir) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 61: obj = getattr(sys.modules[__name__], clsname)(env, path, verbose=verbose) File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 149: self.process_extra_options() File "/usr/local/lib/python3.9/dist-packages/platformio/builder/tools/piolib.py", line 288: with fs.cd(self.path): File "/usr/local/lib/python3.9/dist-packages/platformio/fs.py", line 37: os.chdir(self.new_path)

BirdBare commented 2 years ago

Really the error is in the final line -> os.chdir. It is trying to change directories and is getting permission denied.

stavros-k commented 2 years ago

If you are using version 9.0.37, App has zero permission restrictions. It might be an upstream issue?

stavros-k commented 2 years ago

Also different issue = new issue

BirdBare commented 2 years ago

Thanks!

PrivatePuffin commented 2 years ago

@all-contributors please add @BirdBare for bugs

allcontributors[bot] commented 2 years ago

@Ornias1993

I've put up a pull request to add @BirdBare! :tada:

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists