I observed a strange behavior with my pythonscripting binding. Maybe someone has an idea? Maybe @Nadahar
If I install the included one, everything works.
If I install the marketplace version via WebUI or via “addons” folder, it works for several seconds and is then uninstalled automatically again. This happend in my test setup and for someone else too. But it works in my production setup without any problems.
First I increased the log level
openhab> log:set TRACE org.openhab.core.addon.marketplace
openhab> log:set TRACE org.osgi.framework
after the installation my features looks like
openhab> feature:list | grep ython
openhab-automation-pythonscripting │ 5.0.0.SNAPSHOT │ x │ Started │ org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT │ Python Scripting
org.openhab.automation.pythonscripting │ 5.0.0.SNAPSHOT │ x │ Started │ org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT │ openHAB Add-ons :: Bundles :: Automation :: Pytho
openhab-automation-jythonscripting │ 5.0.0 │ │ Uninstalled │ openhab-addons-5.0.0 │ Jython Scripting
openhab-automation-pythonscripting │ 5.0.0 │ │ Uninstalled │ openhab-addons-5.0.0 │ Python Scripting
the related bundle state is
openhab> bundle:list | grep ython
469 │ Active │ 78 │ 24.2.1 │ GraalVM :: Python :: Language
470 │ Active │ 78 │ 24.2.1 │ GraalVM :: Python :: Resources
484 │ Active │ 80 │ 5.0.0.202507241323 │ openHAB Add-ons :: Bundles :: Automation :: Python Scripting
487 │ Active │ 80 │ 0 │ wrap_file__openhab_userdata_tmp_kar_org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT_org_lastnpe_eea_eea-all_2.4.0_eea-all-2.4.0.jar
the related logs of the installation are
2025-07-25 09:30:04.735 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1625)] : dm $000 tracking 3 SingleStatic removed {org.openhab.core.ui.components.UIComponentRegistryFactory}={service.id=2194, service.bundleid=223, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), $000.target=(component.factory=org.openhab.core.ui.component.provider.factory), component.name=org.openhab.core.ui.internal.components.UIComponentRegistryFactoryImpl, component.id=1725} (enter)
2025-07-25 09:30:04.735 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1625)] : Querying state active
2025-07-25 09:30:04.735 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1625)] : Deactivating component
2025-07-25 09:30:04.735 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1625)] : registration change queue [unregistered]
2025-07-25 09:30:04.735 [DEBUG] [ity.CommunityMarketplaceAddonService] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityMarketplaceAddonService(1627)] : dm AddonHandler tracking 12 MultipleDynamic removed {org.openhab.core.addon.marketplace.MarketplaceAddonHandler}={service.id=2195, service.bundleid=157, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler, component.id=1625} (enter)
..
..
..
due to the maximum character limit the whole install log can be found here
after a while (between some seconds and 2 minutes) the following logs occurs
2025-07-25 09:31:07.331 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1747)] : dm $000 tracking 3 SingleStatic removed {org.openhab.core.ui.components.UIComponentRegistryFactory}={service.id=2339, service.bundleid=223, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), $000.target=(component.factory=org.openhab.core.ui.component.provider.factory), component.name=org.openhab.core.ui.internal.components.UIComponentRegistryFactoryImpl, component.id=1847} (enter)
2025-07-25 09:31:07.332 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1747)] : Querying state active
2025-07-25 09:31:07.332 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1747)] : Deactivating component
2025-07-25 09:31:07.332 [DEBUG] [ity.CommunityBlockLibaryAddonHandler] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler(1747)] : registration change queue [unregistered]
2025-07-25 09:31:07.332 [DEBUG] [ity.CommunityMarketplaceAddonService] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityMarketplaceAddonService(1749)] : dm AddonHandler tracking 12 MultipleDynamic removed {org.openhab.core.addon.marketplace.MarketplaceAddonHandler}={service.id=2340, service.bundleid=157, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.addon.marketplace.internal.community.CommunityBlockLibaryAddonHandler, component.id=1747} (enter)
2025-07-25 09:31:07.332 [DEBUG] [ity.CommunityMarketplaceAddonService] - bundle org.openhab.core.addon.marketplace:5.0.0 (157)[org.openhab.core.addon.marketplace.internal.community.CommunityMarketplaceAddonService(1749)] : getting unbind: removeAddonHandler
..
..
..
due to the maximum character limit the whole uninstall log can be found here
the related feature state is then
openhab> feature:list | grep ython
openhab-automation-pythonscripting │ 5.0.0.SNAPSHOT │ │ Uninstalled │ org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT │ Python Scripting
org.openhab.automation.pythonscripting │ 5.0.0.SNAPSHOT │ x │ Started │ org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT │ openHAB Add-ons :: Bundles :: Automation :: Pytho
and the related bundle state is
openhab> bundle:list | grep ython
466 │ Active │ 80 │ 0 │ wrap_file__openhab_userdata_tmp_kar_org.openhab.automation.pythonscripting-5.0.0-SNAPSHOT_org_lastnpe_eea_eea-all_2.4.0_eea-all-2.4.0.jar
— UPDATE related to my production system —
This error does not happen if I download the kar file. Put it to the addons folder. And this is important, I configure the Addons via the conf/services/addons.cfg
If I put automation = jsscripting,pythonscripting
there, everything works. Not auto uninstallation.
This is installing the default jsscripting which comes with openhab and in addition, it is installing pythonscripting from the kar file inside the addons folder.
This works without jsscripting too. I just added it to show that they are not influencing each other and can work together.
Important is also that the original Python Scripting binding is not active before. Otherwise you have 2 running Add-ons at the same time and you have to manually stop/clean it via the console.
In my marketplace page I descibed the only working way to install my Add-on and keep it running. But this is the worst userexperience ever and I guess, with that way, I won’t convince new users to test it.