ct-Open-Source / ct-Open-Source/tuya-convert

tuya-convert container standard input not working correctly (Fix found)

Open
#1,174 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

OS: Pop!_OS 24.04 LTS x86_64

When running `docker compose up` for the containerized version of tuya-convert, the standard input is not fed correctly into the container. This makes the script unusable and after making the firmware backup it loops forever on the firmware selection prompt.

The naive fix that worked was suggested by chatgpt but i did not fully understand and test it.

It consists in modifying in the `docker-compose.yml` and adding two lines:

```
tuya:
...
stdin_open: true
tty: true
...
```

However that does duplicate the output of `docker compose up`.

I did use instead:
`docker compose up -d && docker attach tuya-convert-tuya-1` . In my case `tuya-convert-tuya-1` is the name of the container.

At the end it worked, however I am now pretty tired as it took various hours of trial and error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with docker-compose.yml and reproduce the containerized flow using docker compose up, checking how standard input reaches the service. Confirm a fix lets the firmware selection prompt accept input without looping or duplicating output, then verify the documented docker compose invocation behaves as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, python
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.