Skip to content

Project Import failed #60

Description

@dentech82

Hey,

I've got an error at KNX-Project Import:

Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/knx/project.py:122
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 20:25:00 (1 Vorkommnis)
Zuletzt protokolliert: 20:25:00

[139773103896224] Error handling message: Unknown error (unknown_error) dennis from 192.168.60.138 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/knx/websocket.py", line 147, in with_knx
await func(hass, knx, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/knx/websocket.py", line 248, in ws_project_file_process
await knx.project.process_project_file(
...<3 lines>...
)
File "/usr/src/homeassistant/homeassistant/components/knx/project.py", line 124, in process_project_file
project = await self.hass.async_add_executor_job(_parse_project)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/knx/project.py", line 122, in _parse_project
return xknxproj.parse()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/xknxproject/xknxproj.py", line 41, in parse
with extract(self.path, self.password) as knx_project_content:
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/contextlib.py", line 141, in enter
return next(self.gen)
File "/usr/local/lib/python3.14/site-packages/xknxproject/zip/extractor.py", line 71, in extract
with ZipFile(archive_path, mode="r") as zip_archive:
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/zipfile/init.py", line 1472, in init
self._RealGetContents()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/zipfile/init.py", line 1539, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions