Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
link855 opened this issue Mar 14, 2020 · 3 comments

Comments

@link855
Copy link

link855 commented Mar 14, 2020

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
Copy link

naXa777 commented Jun 4, 2020

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
Copy link

naXa777 commented Jun 4, 2020

this issue is a possible duplicate of #91

@pmknowles
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants