question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker image doesn't work with Linak desk

See original GitHub issue

Describe the bug When trying to start a docker container with only Linak desk configured I’m getting error and the container fails to start.

To Reproduce Steps to reproduce the behavior:

Config file:

mqtt:
  host: mosquitto
  port: 1883
  topic_prefix: bluetooth
  client_id: bt-mqtt-gateway
  availability_topic: lwt_topic

manager:
  sensor_config:
    topic: homeassistant
    retain: true
  topic_subscription:
    update_all:
      topic: homeassistant/status
      payload: online
  workers:
    linakdesk:
      args:
        mac: VALID_MAC_ADDRESS_OF_MY_DESK
        topic_prefix: linak_desk
      update_interval: 300

Then run the following command: docker run --name bt2mqtt -v $PWD/config:/config zewelor/bt-mqtt-gateway

Expected behavior The container should start successfully.

Debug gateway logs

fido@home: ~/docker/bt2mqtt
$ docker run --name bt2mqtt -v $PWD/config:/config zewelor/bt-mqtt-gateway
Start in normal mode
18:40:02 Starting
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
  ERROR: Error [Errno 2] No such file or directory: 'git': 'git' while executing command git clone -q https://github.com/zewelor/linak_bt_desk.git /tmp/pip-install-tee1xae6/linakdpgbt
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
Traceback (most recent call last):
  File "./gateway.py", line 67, in <module>
    manager.register_workers(global_topic_prefix).start(mqtt)
  File "/application/workers_manager.py", line 91, in register_workers
    command_timeout, global_topic_prefix, **worker_config["args"]
  File "/application/workers/base.py", line 7, in __init__
    self._setup()
  File "/application/workers/linakdesk.py", line 20, in _setup
    from linak_dpg_bt import LinakDesk
ModuleNotFoundError: No module named 'linak_dpg_bt'

Server (please complete the following information):

  • OS: Linux
  • Distro: Debian 9 (Stretch)
  • Version: 30 December 2018

Additional context

It looks like it’s trying to download the library to handle Linak desk but git is not available.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
maxime1992commented, Mar 7, 2022

@twsl I have not with this lib and decided to take a different path, which eventually worked out perfectly.

I’ve created a project to dockerize an MQTT wrapper which uses a python script connecting to the desk in bluetooth. It works great for me and I’ve been able to fully integrate that solution into my Home Assistant setup. Here’s the project if you’re interested https://github.com/maxime1992/linak-2-mqtt

Note: I’ve mentionned Home Assistant but it could be used with anything really, it just exposes some MQTT endpoints

1reaction
zewelorcommented, Jan 26, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Docker image doesn't work with Linak desk -
Describe the bug. When trying to start a docker container with only Linak desk configured I'm getting error and the container fails to...
Read more >
Linak desk controller - #33 by maxime1992 - ESPHome
Hi all, heads up: noob question I want to use the HACS Linak Desk Control card, which says it relies on the below...
Read more >
LINAK DESKLINE® TROUBLESHOOTING GUIDE
The problem could be a faulty desk leg or a faulty motor cable. Desk is uneven. 1. Desk is uneven (P4). Appendix. What...
Read more >
12 reasons your standing desk is stuck & how to fix it
Standing desk won't go down - causes & solutions. 1. Object obstructing travel. 2. Too much weight on the desk. 3. Control box...
Read more >
How to Resolve When Your Standing Desk Stops Working?
The solution to this problem may be height adjustable desk troubleshooting. ... The desk may have lost power; The upper container may have ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found