question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to install package plugp100==2.1.13b1 with HA 2022.03.3

See original GitHub issue

Describe the bug

Earlier I switched from HomeAssistant-Tapo-P100-Control to this home-assistant-tapo-p100 because of the HACS integration and UI setup support. Setup went smoothly with ~ 10 Bulb and ~ 8 plug and everything worked fine After I updated HA core to 2022.3.0 the integration stopped working with the described log messages I tried to reinstall/manually remove + add the repository My HomeAssistant is running in a docker container under OpenMediaVault

Debug log


2022-03-11 12:39:57 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package plugp100==2.1.13b1: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
Testing support for clang
Target does not support clang
Testing support for gcc
Target does not support gcc
Testing support for stdint.h header
Target does not support stdint.h header
Testing support for 128-bit integer
Target does not support 128-bit integer
Testing support for cpuid.h header
Target does not support cpuid.h header
Testing support for intrin.h header
Target does not support intrin.h header
Testing support for posix_memalign
Target does not support posix_memalign
Testing support for memalign
Target does not support memalign
Testing support for SSE2(intrin.h)
Target does not support SSE2(intrin.h)
Testing support for SSE2(x86intrin.h)
Target does not support SSE2(x86intrin.h)
Testing support for SSE2(emmintrin.h)
Target does not support SSE2(emmintrin.h)
Warning: compiler does not support AESNI instructions
Warning: compiler does not support CLMUL instructions
running bdist_wheel
running build
running build_py
running build_ext
building 'Crypto.Hash._MD2' extension
error: command 'gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycryptodome
error: subprocess-exited-with-error
× Running setup.py install for pycryptodome did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Testing support for clang
Target does not support clang
Testing support for gcc
Target does not support gcc
Testing support for stdint.h header
Target does not support stdint.h header
Testing support for 128-bit integer
Target does not support 128-bit integer
Testing support for cpuid.h header
Target does not support cpuid.h header
Testing support for intrin.h header
Target does not support intrin.h header
Testing support for posix_memalign
Target does not support posix_memalign
Testing support for memalign
Target does not support memalign
Testing support for SSE2(intrin.h)
Target does not support SSE2(intrin.h)
Testing support for SSE2(x86intrin.h)
Target does not support SSE2(x86intrin.h)
Testing support for SSE2(emmintrin.h)
Target does not support SSE2(emmintrin.h)
Warning: compiler does not support AESNI instructions
Warning: compiler does not support CLMUL instructions
running install
/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
running build_ext
building 'Crypto.Hash._MD2' extension
error: command 'gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /usr/local/lib/python3.9/site-packages
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pycryptodome
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

Note

Earlier I added this issue as a comment to another one but I think the two issues are not necessarily related. Thanks for your help Please let me know I I need to add any more information

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lanerobertlanecommented, Apr 6, 2022

Pro tip for anyone else running in docker. who sees this in future (and probably myself next update). The Docker container isn’t running on ubuntu, and runs on buildroot/ alpine linux so there’s no apt-get or build-essentials. Instead of that, do an apk add build-base and python3-dev, and then restart the container and it’ll work.

1reaction
petretiandreacommented, Mar 12, 2022

You can try to update it. But if home assistant is running in a docker container, you must install build-essentials and python3-dev inside the container and not on the host machine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Poetry refuses to install package with correct hash · Issue #4523
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >
unable to install package in R Studio - Warning
Team I am unable to install any package from my R Studio. Please find below errors while installing the package. install.packages("ggplot2") Warning in ......
Read more >
Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get...
Read more >
Nuget package installation failure - Stack Overflow
Slippery Pete fixed this problem for me. The first time I tried to install my Assembly I got: Could not install package 'Package...
Read more >
Package installation keeps failing - UiPath Community Forum
When I reinstalled UI Path IT WORKED! The process ran again with no problems. BUT THEN, a couple of days later the package...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found