TinyTUYA no way to get working after brand new server installation

Python and python framework

Moderator: leecollings

Post Reply
dennis1975
Posts: 1
Joined: Thursday 16 October 2025 15:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

TinyTUYA no way to get working after brand new server installation

Post by dennis1975 »

Hi

i had to build a new domoticz with anew raspebrry, with all updated OS and domoticz 2025.2

i got all my plugin working as before, but when i try to instal the tinytuya as the procedure from gihub i got alway a warning as show below
__________________________________________________________________
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
_________________________________________________________________________________

i try all the way
1) with --break-sytem-package, but no way
2) creating a /Domoticz_Python_Environment following many procedure but no way domoticz newer see the plugin as before

what i got is tinytuya installed in the /Domoticz_Python_Environment but from there Domotiz doesnt show the plugin and so doesnt see any the device

can somebody help me to find a solution? :(

p.s i m not linux expert, so i just follow procedure and command

thx in advance :)
User avatar
gizmocuz
Posts: 2709
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: TinyTUYA no way to get working after brand new server installation

Post by gizmocuz »

Did you install Domoticz with docker compose?
Quality outlives Quantity!
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: TinyTUYA no way to get working after brand new server installation

Post by waltervl »

The plugin owner of Zigbee4Domoticz wrote a nice instruction how to deal with the Python Environments and Domoticz on bookworm:
https://zigbeefordomoticz.github.io/wik ... alEnv.html
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DzJan
Posts: 5
Joined: Wednesday 04 October 2017 21:57
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Contact:

Re: TinyTUYA no way to get working after brand new server installation

Post by DzJan »

Did you adjusted the new PATH environment, I guess it is missing the venv path as first option:

Code: Select all

	/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
After I changed this for my Docker container setup I did logged in to the console and:

Code: Select all

echo 'install tinytuya'
pip3 install tinytuya PyCryptodome==3.21.0 chardet==3.0.4 requests==2.23.0 charset-normalizer==3.0.1 tuya-connector-python --break-system-packages
then did:

Code: Select all

cd /opt/domoticz/userdata/plugins
rm -r Domoticz-TinyTUYA-Plugin
git clone https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin.git
Then I restarted the container and everything ran as before!
Synology NAS DS411+
Mega 2560 PRO, Mini RFLink R47
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest