jaidenlabelle / tuya-vacuum-maps

🏠 Tuya vacuum maps In Home Assistant
MIT License
6 stars 1 forks source link

"Error The configuration flow could not be loaded: 500 Internal Server Error Server got itself in trouble #1

Closed Wellynounet closed 2 days ago

Wellynounet commented 1 week ago

Hello , ive got a issue when i try add this integration in my HA

"Error The configuration flow could not be loaded: 500 Internal Server Error Server got itself in trouble

image

jaidenlabelle commented 1 week ago

Can you share the home assistant log file?

Wellynounet commented 1 week ago

Can you share the home assistant log file?

[2024-11-20 22:58:04.034 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package lz4: error: Failed to prepare distributions Caused by: Failed to download and build lz4==4.3.3 Caused by: Build backend failed to build wheel through build_wheel (exit status: 1)

[stdout] running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-312/lz4 copying lz4/init.py -> build/lib.linux-x86_64-cpython-312/lz4 copying lz4/version.py -> build/lib.linux-x86_64-cpython-312/lz4 creating build/lib.linux-x86_64-cpython-312/lz4/block copying lz4/block/init.py -> build/lib.linux-x86_64-cpython-312/lz4/block creating build/lib.linux-x86_64-cpython-312/lz4/frame copying lz4/frame/init.py -> build/lib.linux-x86_64-cpython-312/lz4/frame running build_ext building 'lz4._version' extension creating build/temp.linux-x86_64-cpython-312/lz4 creating build/temp.linux-x86_64-cpython-312/lz4libs gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ilz4libs -I/tmp/.tmpTGwXfr/builds-v0/.tmpjlVyRc/include -I/usr/local/include/python3.12 -c lz4/_version.c -o build/temp.linux-x86_64-cpython-312/lz4/_version.o -O3 -Wall -Wundef

[stderr] /tmp/.tmpTGwXfr/builds-v0/.tmpjlVyRc/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /tmp/.tmpTGwXfr/builds-v0/.tmpjlVyRc/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py:92: UserWarning: version of lz4 already set warnings.warn(f"version of {dist_name} already set") error: command 'gcc' failed: No such file or directory 2024-11-20 22:58:04.034 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of lz4 2024-11-20 22:58:05.655 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package lz4: error: Failed to prepare distributions Caused by: Failed to download and build lz4==4.3.3 Caused by: Build backend failed to build wheel through build_wheel (exit status: 1)

[stdout] running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-312/lz4 copying lz4/init.py -> build/lib.linux-x86_64-cpython-312/lz4 copying lz4/version.py -> build/lib.linux-x86_64-cpython-312/lz4 creating build/lib.linux-x86_64-cpython-312/lz4/block copying lz4/block/init.py -> build/lib.linux-x86_64-cpython-312/lz4/block creating build/lib.linux-x86_64-cpython-312/lz4/frame copying lz4/frame/init.py -> build/lib.linux-x86_64-cpython-312/lz4/frame running build_ext building 'lz4._version' extension creating build/temp.linux-x86_64-cpython-312/lz4 creating build/temp.linux-x86_64-cpython-312/lz4libs gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ilz4libs -I/tmp/.tmpOy3Nts/builds-v0/.tmps7dt5s/include -I/usr/local/include/python3.12 -c lz4/_version.c -o build/temp.linux-x86_64-cpython-312/lz4/_version.o -O3 -Wall -Wundef

[stderr] /tmp/.tmpOy3Nts/builds-v0/.tmps7dt5s/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /tmp/.tmpOy3Nts/builds-v0/.tmps7dt5s/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py:92: UserWarning: version of lz4 already set warnings.warn(f"version of {dist_name} already set") error: command 'gcc' failed: No such file or directory 2024-11-20 22:58:05.659 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 567, in _handle return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post return await self._post_impl(request, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl return await super()._post_impl(request, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl result = await self._flow_mgr.async_init( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init flow, result = await self._async_init(flow_id, handler, context, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1326, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1518, in async_create_flow handler = await _async_get_flow_handler( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3268, in _async_get_flow_handler await _load_integration(hass, domain, hass_config) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3245, in _load_integration await async_process_deps_reqs(hass, hass_config, integration) File "/usr/src/homeassistant/homeassistant/setup.py", line 575, in async_process_deps_reqs await requirements.async_get_integration_with_requirements( File "/usr/src/homeassistant/homeassistant/requirements.py", line 54, in async_get_integration_with_requirements return await manager.async_get_integration_with_requirements(domain) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements await future File "/usr/src/homeassistant/homeassistant/requirements.py", line 159, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/usr/src/homeassistant/homeassistant/requirements.py", line 182, in _async_process_integration await self.async_process_requirements( File "/usr/src/homeassistant/homeassistant/requirements.py", line 269, in async_process_requirements await self._async_process_requirements(name, missing) File "/usr/src/homeassistant/homeassistant/requirements.py", line 307, in _async_process_requirements raise RequirementsNotFound(name, list(failures)) homeassistant.requirements.RequirementsNotFound: Requirements for tuya_vacuum_maps not found: ['lz4'].](url)

jaidenlabelle commented 1 week ago

After testing with a fresh install of home assistant, it seems like the issue is caused by another integration you installed using a different version of lz4 then the tuya-vacuum library does. I'll tweak the requirements of the library to work with different versions.

jaidenlabelle commented 1 week ago

I released a new version, please let me know if it resolves the issue.

Wellynounet commented 1 week ago

Hello a new issue pop up :)

https://github.com/user-attachments/assets/a8dbc969-9f23-44f2-9340-421d6a76691d

and i have delete my tuya integration to test and same with or without

image

williamwmd commented 6 days ago

Olá, um novo problema apareceu :)

tório_4zjMpbu5wG.mp4 e eu deletei minha integração tuya para testar e o mesmo com ou sem

imagem

I'm getting the same error. HA version: 2024.11.2

jaidenlabelle commented 6 days ago

Hello a new issue pop up :) thorium_4zjMpbu5wG.mp4

and i have delete my tuya integration to test and same with or without

image

Can you share your home assistant log again for both errors?

jaidenlabelle commented 2 days ago

Hello a new issue pop up :) thorium_4zjMpbu5wG.mp4

and i have delete my tuya integration to test and same with or without

image

The invalid handler issue has been fixed in v0.1.2

jaidenlabelle commented 2 days ago

After testing with a fresh install of home assistant, it seems like the issue is caused by another integration you installed using a different version of lz4 then the tuya-vacuum library does. I'll tweak the requirements of the library to work with different versions.

After testing with v0.1.2, the issue with different lz4 versions seems to be solved

Wellynounet commented 1 day ago

eah everything work now: )

jaidenlabelle commented 1 day ago

Thanks for letting me know, glad I was able to help you