sputnikdev / eclipse-smarthome-bluetooth-binding

Eclipse SmartHome Bluetooth Binding
46 stars 10 forks source link

Unresolved requirement: Import-Package: org.apache.commons.collections - Unresolved requirement: Import-Package: org.sputnikdev.bluetooth #92

Open link855 opened 4 years ago

link855 commented 4 years ago

I tried to install binding, but i notice the following errors from Log viewer (frontail):

[WARN ] [lace.internal.BundleExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth [212]
  Unresolved requirement: Import-Package: org.apache.commons.collections

[WARN ] [lace.internal.BundleExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth.transport.tinyb [211]
  Unresolved requirement: Import-Package: org.sputnikdev.bluetooth

About bluetooth service:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-03-14 16:24:56 CET; 7s ago
     Docs: man:bluetoothd(8)
 Main PID: 11508 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 2319)
   Memory: 504.0K
   CGroup: /system.slice/bluetooth.service
           └─11508 /usr/libexec/bluetooth/bluetoothd

mar 14 16:24:56 RPi systemd[1]: Starting Bluetooth service...
mar 14 16:24:56 RPi bluetoothd[11508]: Bluetooth daemon 5.47
mar 14 16:24:56 RPi systemd[1]: Started Bluetooth service.
mar 14 16:24:56 RPi bluetoothd[11508]: Starting SDP server
mar 14 16:24:56 RPi bluetoothd[11508]: Bluetooth management interface 1.14 initialized

About bluetooth bindings:

openhab> bundle:list | grep bluetooth
244 | Installed |  80 | 1.1.3                   | org.sputnikdev:org.eclipse.smarthome.binding.bluetooth.transport.tinyb
245 | Installed |  80 | 1.1.6                   | org.sputnikdev:org.eclipse.smarthome.binding.bluetooth

About the platform:

Raspberry Pi 3 Model B+
openHABian v1.5 based on Debian Buster

Do you have any advice to solve them?

Thanks in advance, regards

naXa777 commented 4 years ago

Just installed the Bluetooth Binding following the steps in readme. But not able to scan for Bluetooth devices, because this binding is not shown in Paper UI. I have a similar exception in logs /var/log/openhab2/openhab.log:

[WARN ] [lace.internal.BundleExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth.transport.tinyb [243]
  Unresolved requirement: Import-Package: org.sputnikdev.bluetooth

[WARN ] [lace.internal.BundleExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth [244]
  Unresolved requirement: Import-Package: org.apache.commons.collections

diagnostics info

image

dpkg --list | grep openhab

image

sudo systemctl status bluetooth.service

image

dmesg | grep Blue

image

uname -a

image

lsb_release -a

image

naXa777 commented 4 years ago

this issue is a possible duplicate of #91

pmknowles commented 3 years ago

Caused by org.apach.commons.collections being removed from OH2.5. Download this file and copy to /usr/share/openhab2/addons. The binding should then work correctly.