Python Plugin : Broadlink

Python and python framework

Moderator: leecollings

zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Humm... strange.
The plugin code is the same at 98% for RM devices, including the mini.

Where the device type is important it's for code learning/sending.

The default one do not always work so this need to be changed to the real one
--> (you can found your code by doing a network scan/discovery, but suppose you already know that :)

If you're able to learn IR code, you do not have to change the default one.

Your device type will be present on the new version, but there is breaking changes on the broadlink module 0.18...
so need to find some times to verify that.

Maybe clear your browser cache or open a new private session, the Webadmin page should be available ???!!!
Aile
Posts: 8
Joined: Tuesday 27 September 2022 11:05
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by Aile »

I finally managed to get the temperature sensor to work by modifying line 727 of the plugin.py file like this:

Code: Select all

if Parameters["Mode3"] == 'RM2T' or Parameters["Mode3"] == 'RM24T' or Parameters["Mode3"] == 'RM24M':
instead of :

Code: Select all

if Parameters["Mode3"] == 'RM2T' or Parameters["Mode3"] == 'RM24T':
Btw, it would be nice to add the humidity sensor with the check_humidity() function, which is present in the Broadlink plugin.
knielen
Posts: 46
Joined: Sunday 10 September 2017 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by knielen »

I can't download the setup.py file anymore, is it still available?
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by renerene »

Hello, while working on a fresh install on Bullseye and domoticz stable version Version: 2022.2, I followed the procedure in the first post:
Open a terminal session, go to Broadlink directory and execute this command : python setup.py (tested on Windows with admin right, maybe need sudo on
Can somebody please verify that this method is still valid?
Got error on missing Rust Compiler and Cryptography and it looks like the python Broadlink module is not installed.

Domoticz log:

Code: Select all

2022-12-28 00:29:22.665 Error: broadlink: (Broadlink) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Broadlink/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2022-12-28 00:29:22.672 Error: broadlink: Traceback (most recent call last):
2022-12-28 00:29:22.673 Error: broadlink: File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 127, in <module>
2022-12-28 00:29:22.673 Error: broadlink: import broadlink
2022-12-28 00:29:22.673 Error: broadlink: ModuleNotFoundError: No module named 'broadlink'
Result of sudo python setup.py --> Error importing broadlink

Image

Code: Select all

pi@raspberrypi:~/domoticz/plugins/Broadlink $ sudo python setup.py
*
================================================================================
*
                     Broadlink Plugin Installation
*
================================================================================
*
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
________________________________________
# We need Domoticz Net info
----------------------------------------
ENTER Domoticz IP address (e.g. 192.168.1.45): 192.168.0.107
ENTER Domoticz Port Number (e.g. 8080): 8080
IP/PORT OK
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Request from domoticz to : type=settings
We work with this language : en
On this platform : Linux
________________________________________
# we install necessary modules
----------------------------------------
-*-
 We execute this command : sudo -H python -m pip install setuptools
 We have installed : setuptools
-*-
 We execute this command : sudo -H python -m pip install wheel
 We have installed : wheel
-*-
 We execute this command : sudo -H python -m pip install googletrans
 We have installed : googletrans
-*-
 We execute this command : sudo -H python -m pip install translate
 We have installed : translate
-*-
 We execute this command : sudo -H python -m pip install requests
 We have installed : requests
-*-
 We execute this command : sudo -H python -m pip install requests_toolbelt
 We have installed : requests_toolbelt
-*-
 We execute this command : sudo -H python -m pip install irgen
 We have installed : irgen
________________________________________
# we download plugin files from DropBox (zip format)
----------------------------------------
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host 'synnas.publicvm.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
We download plugin files to: BroadlinkSetup.zip
>> Bytes downloaded -->**2174399**: 100% Done
________________________________________
# we extract necessary plugin files
----------------------------------------
File Name                                             Modified             Size
Broadlink/                                     2022-12-27 23:39:22            0
Broadlink/bkp/                                 2022-12-27 23:39:22            0
Broadlink/broadlink_cli.py                     2022-02-14 17:03:22         7840
Broadlink/broadlink_discovery.py               2022-02-14 17:03:22         1452
Broadlink/Dombroadlink.py                      2022-02-14 17:03:22        34987
Broadlink/ini/                                 2022-12-27 23:39:22            0
Broadlink/ini/import/                          2022-12-27 23:39:22            0
Broadlink/ini/remote/                          2022-12-27 23:39:22            0
Broadlink/lng/                                 2022-12-27 23:39:22            0
Broadlink/lng/en_ar.lng                        2022-02-14 17:03:22        21959
Broadlink/lng/en_bg.lng                        2022-02-14 17:03:22        26107
Broadlink/lng/en_bs.lng                        2022-02-14 17:03:22        18895
Broadlink/lng/en_ca.lng                        2022-02-14 17:03:22        19923
Broadlink/lng/en_cs.lng                        2022-02-14 17:03:22        18690
Broadlink/lng/en_da.lng                        2022-02-14 17:03:22        17843
Broadlink/lng/en_de.lng                        2022-02-14 17:03:22        18950
Broadlink/lng/en_el.lng                        2022-02-14 17:03:22        27588
Broadlink/lng/en_en.lng                        2022-02-21 11:42:10        18298
Broadlink/lng/en_en.lng.tmp                    2021-01-04 13:36:08        18298
Broadlink/lng/en_es.lng                        2022-02-14 17:03:22        19341
Broadlink/lng/en_et.lng                        2022-02-14 17:03:22        17038
Broadlink/lng/en_fa.lng                        2022-02-14 17:03:22        45771
Broadlink/lng/en_fi.lng                        2022-02-14 17:03:22        17882
Broadlink/lng/en_fr.lng                        2022-02-14 17:03:22        20728
Broadlink/lng/en_fr.lng.tmp                    2022-02-14 17:03:22        19633
Broadlink/lng/en_he.lng                        2022-02-14 17:03:22        20596
Broadlink/lng/en_hu.lng                        2022-02-14 17:03:22        19657
Broadlink/lng/en_is.lng                        2022-02-14 17:03:22        18421
Broadlink/lng/en_it.lng                        2022-02-14 17:03:22        19090
Broadlink/lng/en_lt.lng                        2022-02-14 17:03:22        18217
Broadlink/lng/en_lv.lng                        2022-02-14 17:03:22        18825
Broadlink/lng/en_mk.lng                        2022-02-14 17:03:22        26733
Broadlink/lng/en_nl.lng                        2022-02-14 17:03:22        18492
Broadlink/lng/en_no.lng                        2022-02-14 17:03:22        17974
Broadlink/lng/en_pl.lng                        2022-02-14 17:03:22        18436
Broadlink/lng/en_pt.lng                        2022-02-14 17:03:22        18715
Broadlink/lng/en_ro.lng                        2022-02-14 17:03:22        19152
Broadlink/lng/en_ru.lng                        2022-02-14 17:03:22        24982
Broadlink/lng/en_sk.lng                        2022-02-14 17:03:22        18989
Broadlink/lng/en_sl.lng                        2022-02-14 17:03:22        18562
Broadlink/lng/en_sq.lng                        2022-02-14 17:03:22        18744
Broadlink/lng/en_sr.lng                        2022-02-14 17:03:22        25313
Broadlink/lng/en_sv.lng                        2022-02-14 17:03:22        18022
Broadlink/lng/en_tr.lng                        2022-02-14 17:03:22        18631
Broadlink/lng/en_uk.lng                        2022-02-14 17:03:22        25586
Broadlink/lng/en_zh.lng                        2022-02-14 17:03:22        16863
Broadlink/lng/en_zh_TW.lng                     2022-02-14 17:03:22        60914
Broadlink/log/                                 2022-12-27 23:39:22            0
Broadlink/plugin.py                            2022-02-14 17:15:04       213793
Broadlink/python-broadlink-master/             2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/broadlink/   2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/broadlink/exceptions.py 2022-02-14 17:03:22         2230
Broadlink/python-broadlink-master/broadlink/__init__.py 2022-02-14 17:03:22        39918
Broadlink/python-broadlink-master/broadlink.egg-info/ 2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/broadlink.egg-info/dependency_links.txt 2022-02-14 17:03:26            1
Broadlink/python-broadlink-master/broadlink.egg-info/not-zip-safe 2022-02-14 16:48:16            2
Broadlink/python-broadlink-master/broadlink.egg-info/PKG-INFO 2022-02-14 17:03:26          524
Broadlink/python-broadlink-master/broadlink.egg-info/requires.txt 2022-02-14 17:03:26           20
Broadlink/python-broadlink-master/broadlink.egg-info/SOURCES.txt 2022-02-14 17:03:26          268
Broadlink/python-broadlink-master/broadlink.egg-info/top_level.txt 2022-02-14 17:03:26           10
Broadlink/python-broadlink-master/build/       2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/build/bdist.win32/ 2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/build/lib/   2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/build/lib/broadlink/ 2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/build/lib/broadlink/exceptions.py 2022-02-14 17:03:22         2230
Broadlink/python-broadlink-master/build/lib/broadlink/__init__.py 2022-02-14 17:03:22        39918
Broadlink/python-broadlink-master/cli/         2022-12-27 23:39:22            0
Broadlink/python-broadlink-master/cli/broadlink_cli 2022-02-14 17:03:22         7840
Broadlink/python-broadlink-master/cli/broadlink_discovery 2022-02-14 17:03:22         1452
Broadlink/python-broadlink-master/cli/README.md 2022-02-14 17:03:22         1859
Broadlink/python-broadlink-master/.gitignore   2022-02-14 17:03:22            6
Broadlink/python-broadlink-master/LICENSE      2022-02-14 17:03:22         1111
Broadlink/python-broadlink-master/protocol.md  2022-02-14 17:03:22         6527
Broadlink/python-broadlink-master/README.md    2022-05-04 07:45:40         2471
Broadlink/python-broadlink-master/requirements.txt 2022-02-14 17:03:22           20
Broadlink/python-broadlink-master/setup.py     2022-02-14 17:03:22          750
Broadlink/README.md                            2022-06-02 07:32:36         4309
Broadlink/scr/                                 2022-12-27 23:39:22            0
Broadlink/scr/dombr.cmd                        2022-02-14 17:03:22           45
Broadlink/scr/dombr.sh                         2021-01-11 10:42:08           21
Broadlink/setup.py                             2022-02-14 17:03:22         9129
Broadlink/tst-plugin                           2022-04-14 00:01:08       213722
Broadlink/web/                                 2022-12-27 23:39:22            0
Broadlink/web/css/                             2022-12-27 23:39:22            0
Broadlink/web/css/animations.css               2022-02-14 17:03:22        63164
Broadlink/web/css/button.css                   2022-02-14 17:03:22          600
Broadlink/web/css/listdir.css                  2022-02-14 17:03:22        26535
Broadlink/web/css/manage.css                   2022-02-14 17:03:22         4398
Broadlink/web/css/ModalDialog.css              2022-02-14 17:03:22         3144
Broadlink/web/css/multi.css                    2022-02-14 17:03:22          359
Broadlink/web/css/website.css                  2022-02-14 17:03:22        12403
Broadlink/web/img/                             2022-12-27 23:39:22            0
Broadlink/web/img/A1.txt                       2022-02-14 17:03:22        20914
Broadlink/web/img/MP1.txt                      2022-02-14 17:03:22        11082
Broadlink/web/img/RM2M.txt                     2022-02-14 17:03:22        28330
Broadlink/web/img/RM2.txt                      2022-02-14 17:03:22        10858
Broadlink/web/img/SP.txt                       2022-02-14 17:03:22        15178
Broadlink/web/img/UNK.txt                      2022-02-14 17:03:22         3858
Broadlink/web/js/                              2022-12-27 23:39:22            0
Broadlink/web/js/dynatree.js                   2022-02-14 17:03:22        45094
Broadlink/web/js/iframeResizer.contentWindow.js 2022-02-14 17:03:22        34362
Broadlink/web/js/iframeResizer.js              2022-02-14 17:03:22        36463
Broadlink/web/js/plugincontroller.js           2022-02-14 17:03:22        68167
Broadlink/web/js/RGraph.common.core.js         2022-02-14 17:03:22       119363
Broadlink/web/js/RGraph.common.dynamic.js      2022-02-14 17:03:22        19333
Broadlink/web/js/RGraph.common.tooltips.js     2022-02-14 17:03:22        11590
Broadlink/web/js/RGraph.fuel.js                2022-02-14 17:03:22        13216
Broadlink/web/js/RGraph.gauge.js               2022-02-14 17:03:22        22493
Broadlink/web/js/RGraph.meter.js               2022-02-14 17:03:22        22178
Broadlink/web/js/RGraph.odo.js                 2022-02-14 17:03:22        23141
Broadlink/web/js/RGraph.thermometer.js         2022-02-14 17:03:22        15219
Broadlink/web/js/RGraph.vprogress.js           2022-02-14 17:03:22        22682
Broadlink/web/js/Sortable.min.js               2022-02-14 17:03:22        42997
Broadlink/web/js/sorttable.js                  2022-02-14 17:03:22        16877
Broadlink/web/js/splitter.js                   2022-02-14 17:03:22         5258
Broadlink/web/js/tablesorter.js                2022-02-14 17:03:22        17188
Extracting all the files now...
-*-
 We execute this command : sudo -H python -m pip install python-broadlink-master/.
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python /tmp/tmpke70a4df_in_process.py build_wheel /tmp/tmp_n0j7wxv
       cwd: /tmp/pip-install-eqz6d0xa/cryptography_37168df445bc496a86a47ddf397eea29
  Complete output (191 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-cpython-39
  creating build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/__about__.py -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat
  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat
  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat
  creating build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends
  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
  running egg_info
  writing src/cryptography.egg-info/PKG-INFO
  writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  writing requirements to src/cryptography.egg-info/requires.txt
  writing top-level names to src/cryptography.egg-info/top_level.txt
  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'vectors'
  warning: no previously-included files matching '*' found under directory 'vectors'
  warning: no previously-included files matching '*' found under directory '.github'
  warning: no previously-included files found matching 'release.py'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'dev-requirements.txt'
  warning: no previously-included files found matching 'tox.ini'
  warning: no previously-included files found matching 'mypy.ini'
  warning: no previously-included files matching '*' found under directory '.circleci'
  adding license file 'LICENSE'
  adding license file 'LICENSE.APACHE'
  adding license file 'LICENSE.BSD'
  adding license file 'LICENSE.PSF'
  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
  /tmp/pip-build-env-48tpn_kq/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
      !!


      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  running build_ext
  running build_rust

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Read https://cryptography.io/en/latest/installation/ for specific
         instructions for your platform.
      3) Check our frequently asked questions for more information:
         https://cryptography.io/en/latest/faq/
      4) Ensure you have a recent Rust toolchain installed:
         https://cryptography.io/en/latest/installation/#rust

      Python: 3.9.2
      platform: Linux-5.15.61-v7+-armv7l-with-glibc2.31
      pip: n/a
      setuptools: 65.6.3
      setuptools_rust: 1.5.2
      rustc: n/a
      =============================DEBUG ASSISTANCE=============================

  error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

  This package requires Rust >=1.48.0.
  ----------------------------------------
  ERROR: Failed building wheel for cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
ERROR to start subprocess
1
sudo -H python -m pip install python-broadlink-master/.
b"Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nProcessing ./python-broadlink-master\nCollecting cryptography>=2.1.1\n  Downloading cryptography-38.0.4.tar.gz (599 kB)\n  Installing build dependencies: started\n  Installing build dependencies: finished with status 'done'\n  Getting requirements to build wheel: started\n  Getting requirements to build wheel: finished with status 'done'\n    Preparing wheel metadata: started\n    Preparing wheel metadata: finished with status 'done'\nCollecting cffi>=1.12\n  Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)\nCollecting pycparser\n  Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)\nBuilding wheels for collected packages: broadlink, cryptography\n  Building wheel for broadlink (setup.py): started\n  Building wheel for broadlink (setup.py): finished with status 'done'\n  Created wheel for broadlink: filename=broadlink-0.14.1-py3-none-any.whl size=12074 sha256=be36be386dfb18c06d5d761fcb9b164cbad81824e75936c9912d87438632e7fd\n  Stored in directory: /root/.cache/pip/wheels/e3/66/77/cd349150c2a6356d177216b27b61fd15ef63c1adc8a4a520b7\n  Building wheel for cryptography (PEP 517): started\n  Building wheel for cryptography (PEP 517): finished with status 'error'\nSuccessfully built broadlink\nFailed to build cryptography\n"
 ERROR to install : python-broadlink-master/.
 could be normal if already exist, continue in anyway....
________________________________________
# We do necessary modifications depend of Platform
----------------------------------------
 put *.py files executable (+x) OK
 put *.sh files executable (+x) OK
________________________________________
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported irgen
Error importing broadlink
pi@raspberrypi:~/domoticz/plugins/Broadlink $
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Maybe try this :
sudo apt -y install rustc

or this :

https://www.how2shout.com/linux/how-to- ... -bullseye/
?????
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by renerene »

zak45 wrote: Wednesday 28 December 2022 12:37 Maybe try this :
sudo apt -y install rustc

or this :

https://www.how2shout.com/linux/how-to- ... -bullseye/
?????
Nope.... "A problem occurred in a Python script. "

Code: Select all

pi@raspberrypi:~ $ sudo apt -y install rustc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  cargo libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0 libstd-rust-1.48 libstd-rust-dev rust-gdb
Suggested packages:
  cargo-doc gdb-doc rust-doc rust-src lld-11
Recommended packages:
  cargo
The following NEW packages will be installed:
  cargo libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0 libstd-rust-1.48 libstd-rust-dev rust-gdb rustc
0 upgraded, 10 newly installed, 0 to remove and 51 not upgraded.
Need to get 49.8 MB of archives.
After this operation, 209 MB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libhttp-parser2.9 armhf 2.9.4-4+deb11u1 [20.7 kB]
Get:2 http://mirror.serverius.net/raspbian/raspbian bullseye/main armhf libmbedcrypto3 armhf 2.16.9-0.1 [196 kB]
Get:3 http://mirror.serverius.net/raspbian/raspbian bullseye/main armhf libmbedx509-0 armhf 2.16.9-0.1 [104 kB]
Get:4 http://mirror.serverius.net/raspbian/raspbian bullseye/main armhf libmbedtls12 armhf 2.16.9-0.1 [132 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libgit2-1.1 armhf 1.1.0+dfsg.1-4 [373 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libstd-rust-1.48 armhf 1.48.0+dfsg1-1+rpi1 [17.8 MB]
Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libstd-rust-dev armhf 1.48.0+dfsg1-1+rpi1 [26.7 MB]
Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf rustc armhf 1.48.0+dfsg1-1+rpi1 [1,871 kB]
Get:9 http://mirror.serverius.net/raspbian/raspbian bullseye/main armhf cargo armhf 0.47.0-3 [2,466 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf rust-gdb all 1.48.0+dfsg1-1+rpi1 [165 kB]
Fetched 49.8 MB in 12s (4,326 kB/s)
Selecting previously unselected package libhttp-parser2.9:armhf.
(Reading database ... 57528 files and directories currently installed.)
Preparing to unpack .../0-libhttp-parser2.9_2.9.4-4+deb11u1_armhf.deb ...
Unpacking libhttp-parser2.9:armhf (2.9.4-4+deb11u1) ...
Selecting previously unselected package libmbedcrypto3:armhf.
Preparing to unpack .../1-libmbedcrypto3_2.16.9-0.1_armhf.deb ...
Unpacking libmbedcrypto3:armhf (2.16.9-0.1) ...
Selecting previously unselected package libmbedx509-0:armhf.
Preparing to unpack .../2-libmbedx509-0_2.16.9-0.1_armhf.deb ...
Unpacking libmbedx509-0:armhf (2.16.9-0.1) ...
Selecting previously unselected package libmbedtls12:armhf.
Preparing to unpack .../3-libmbedtls12_2.16.9-0.1_armhf.deb ...
Unpacking libmbedtls12:armhf (2.16.9-0.1) ...
Selecting previously unselected package libgit2-1.1:armhf.
Preparing to unpack .../4-libgit2-1.1_1.1.0+dfsg.1-4_armhf.deb ...
Unpacking libgit2-1.1:armhf (1.1.0+dfsg.1-4) ...
Selecting previously unselected package libstd-rust-1.48:armhf.
Preparing to unpack .../5-libstd-rust-1.48_1.48.0+dfsg1-1+rpi1_armhf.deb ...
Unpacking libstd-rust-1.48:armhf (1.48.0+dfsg1-1+rpi1) ...
Selecting previously unselected package libstd-rust-dev:armhf.
Preparing to unpack .../6-libstd-rust-dev_1.48.0+dfsg1-1+rpi1_armhf.deb ...
Unpacking libstd-rust-dev:armhf (1.48.0+dfsg1-1+rpi1) ...
Selecting previously unselected package rustc.
Preparing to unpack .../7-rustc_1.48.0+dfsg1-1+rpi1_armhf.deb ...
Unpacking rustc (1.48.0+dfsg1-1+rpi1) ...
Selecting previously unselected package cargo.
Preparing to unpack .../8-cargo_0.47.0-3_armhf.deb ...
Unpacking cargo (0.47.0-3) ...
Selecting previously unselected package rust-gdb.
Preparing to unpack .../9-rust-gdb_1.48.0+dfsg1-1+rpi1_all.deb ...
Unpacking rust-gdb (1.48.0+dfsg1-1+rpi1) ...
Setting up rust-gdb (1.48.0+dfsg1-1+rpi1) ...
Setting up libstd-rust-1.48:armhf (1.48.0+dfsg1-1+rpi1) ...
Setting up libmbedcrypto3:armhf (2.16.9-0.1) ...
Setting up libhttp-parser2.9:armhf (2.9.4-4+deb11u1) ...
Setting up libmbedx509-0:armhf (2.16.9-0.1) ...
Setting up libmbedtls12:armhf (2.16.9-0.1) ...
Setting up libstd-rust-dev:armhf (1.48.0+dfsg1-1+rpi1) ...
Setting up rustc (1.48.0+dfsg1-1+rpi1) ...
Setting up libgit2-1.1:armhf (1.1.0+dfsg.1-4) ...
Setting up cargo (0.47.0-3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u4) ...
pi@raspberrypi:~ $ rustc --version
rustc 1.66.0 (69f9c33d7 2022-12-12)
pi@raspberrypi:~ $ cd domoticz/plugins/Broadlink
pi@raspberrypi:~/domoticz/plugins/Broadlink $ ls
bkp  broadlink_cli.py  broadlink_discovery.py  Dombroadlink.py  ini  lng  log  plugin.py  __pycache__  python-broadlink-master  README.md  scr  setup.py  tst-plugin  web
pi@raspberrypi:~/domoticz/plugins/Broadlink $  sudo python setup.py
*
================================================================================
*
                     Broadlink Plugin Installation
*
================================================================================
*
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
________________________________________
# We need Domoticz Net info
----------------------------------------
ENTER Domoticz IP address (e.g. 192.168.1.45): 192.168.0.107
ENTER Domoticz Port Number (e.g. 8080): 8080
IP/PORT OK
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Request from domoticz to : type=settings
We work with this language : en
On this platform : Linux
________________________________________
# we install necessary modules
----------------------------------------
-*-
 We execute this command : sudo -H python -m pip install setuptools
 We have installed : setuptools
-*-
 We execute this command : sudo -H python -m pip install wheel
 We have installed : wheel
-*-
 We execute this command : sudo -H python -m pip install googletrans
 We have installed : googletrans
-*-
 We execute this command : sudo -H python -m pip install translate
 We have installed : translate
-*-
 We execute this command : sudo -H python -m pip install requests
 We have installed : requests
-*-
 We execute this command : sudo -H python -m pip install requests_toolbelt
 We have installed : requests_toolbelt
-*-
 We execute this command : sudo -H python -m pip install irgen
 We have installed : irgen
________________________________________
# we download plugin files from DropBox (zip format)
----------------------------------------
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host 'synnas.publicvm.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
We download plugin files to: BroadlinkSetup.zip
>> Bytes downloaded -->**2174399**: 100% Done
________________________________________
# we extract necessary plugin files
----------------------------------------
File Name                                             Modified             Size
Broadlink/                                     2022-12-28 14:11:34            0
Broadlink/bkp/                                 2022-12-28 14:11:34            0
Broadlink/broadlink_cli.py                     2022-02-14 17:03:22         7840
Broadlink/broadlink_discovery.py               2022-02-14 17:03:22         1452
Broadlink/Dombroadlink.py                      2022-02-14 17:03:22        34987
Broadlink/ini/                                 2022-12-28 14:11:34            0
Broadlink/ini/import/                          2022-12-28 14:11:34            0
Broadlink/ini/remote/                          2022-12-28 14:11:34            0
Broadlink/lng/                                 2022-12-28 14:11:34            0
Broadlink/lng/en_ar.lng                        2022-02-14 17:03:22        21959
Broadlink/lng/en_bg.lng                        2022-02-14 17:03:22        26107
Broadlink/lng/en_bs.lng                        2022-02-14 17:03:22        18895
Broadlink/lng/en_ca.lng                        2022-02-14 17:03:22        19923
Broadlink/lng/en_cs.lng                        2022-02-14 17:03:22        18690
Broadlink/lng/en_da.lng                        2022-02-14 17:03:22        17843
Broadlink/lng/en_de.lng                        2022-02-14 17:03:22        18950
Broadlink/lng/en_el.lng                        2022-02-14 17:03:22        27588
Broadlink/lng/en_en.lng                        2022-02-21 11:42:10        18298
Broadlink/lng/en_en.lng.tmp                    2021-01-04 13:36:08        18298
Broadlink/lng/en_es.lng                        2022-02-14 17:03:22        19341
Broadlink/lng/en_et.lng                        2022-02-14 17:03:22        17038
Broadlink/lng/en_fa.lng                        2022-02-14 17:03:22        45771
Broadlink/lng/en_fi.lng                        2022-02-14 17:03:22        17882
Broadlink/lng/en_fr.lng                        2022-02-14 17:03:22        20728
Broadlink/lng/en_fr.lng.tmp                    2022-02-14 17:03:22        19633
Broadlink/lng/en_he.lng                        2022-02-14 17:03:22        20596
Broadlink/lng/en_hu.lng                        2022-02-14 17:03:22        19657
Broadlink/lng/en_is.lng                        2022-02-14 17:03:22        18421
Broadlink/lng/en_it.lng                        2022-02-14 17:03:22        19090
Broadlink/lng/en_lt.lng                        2022-02-14 17:03:22        18217
Broadlink/lng/en_lv.lng                        2022-02-14 17:03:22        18825
Broadlink/lng/en_mk.lng                        2022-02-14 17:03:22        26733
Broadlink/lng/en_nl.lng                        2022-02-14 17:03:22        18492
Broadlink/lng/en_no.lng                        2022-02-14 17:03:22        17974
Broadlink/lng/en_pl.lng                        2022-02-14 17:03:22        18436
Broadlink/lng/en_pt.lng                        2022-02-14 17:03:22        18715
Broadlink/lng/en_ro.lng                        2022-02-14 17:03:22        19152
Broadlink/lng/en_ru.lng                        2022-02-14 17:03:22        24982
Broadlink/lng/en_sk.lng                        2022-02-14 17:03:22        18989
Broadlink/lng/en_sl.lng                        2022-02-14 17:03:22        18562
Broadlink/lng/en_sq.lng                        2022-02-14 17:03:22        18744
Broadlink/lng/en_sr.lng                        2022-02-14 17:03:22        25313
Broadlink/lng/en_sv.lng                        2022-02-14 17:03:22        18022
Broadlink/lng/en_tr.lng                        2022-02-14 17:03:22        18631
Broadlink/lng/en_uk.lng                        2022-02-14 17:03:22        25586
Broadlink/lng/en_zh.lng                        2022-02-14 17:03:22        16863
Broadlink/lng/en_zh_TW.lng                     2022-02-14 17:03:22        60914
Broadlink/log/                                 2022-12-28 14:11:34            0
Broadlink/plugin.py                            2022-02-14 17:15:04       213793
Broadlink/python-broadlink-master/             2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/broadlink/   2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/broadlink/exceptions.py 2022-02-14 17:03:22         2230
Broadlink/python-broadlink-master/broadlink/__init__.py 2022-02-14 17:03:22        39918
Broadlink/python-broadlink-master/broadlink.egg-info/ 2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/broadlink.egg-info/dependency_links.txt 2022-02-14 17:03:26            1
Broadlink/python-broadlink-master/broadlink.egg-info/not-zip-safe 2022-02-14 16:48:16            2
Broadlink/python-broadlink-master/broadlink.egg-info/PKG-INFO 2022-02-14 17:03:26          524
Broadlink/python-broadlink-master/broadlink.egg-info/requires.txt 2022-02-14 17:03:26           20
Broadlink/python-broadlink-master/broadlink.egg-info/SOURCES.txt 2022-02-14 17:03:26          268
Broadlink/python-broadlink-master/broadlink.egg-info/top_level.txt 2022-02-14 17:03:26           10
Broadlink/python-broadlink-master/build/       2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/build/bdist.win32/ 2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/build/lib/   2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/build/lib/broadlink/ 2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/build/lib/broadlink/exceptions.py 2022-02-14 17:03:22         2230
Broadlink/python-broadlink-master/build/lib/broadlink/__init__.py 2022-02-14 17:03:22        39918
Broadlink/python-broadlink-master/cli/         2022-12-28 14:11:34            0
Broadlink/python-broadlink-master/cli/broadlink_cli 2022-02-14 17:03:22         7840
Broadlink/python-broadlink-master/cli/broadlink_discovery 2022-02-14 17:03:22         1452
Broadlink/python-broadlink-master/cli/README.md 2022-02-14 17:03:22         1859
Broadlink/python-broadlink-master/.gitignore   2022-02-14 17:03:22            6
Broadlink/python-broadlink-master/LICENSE      2022-02-14 17:03:22         1111
Broadlink/python-broadlink-master/protocol.md  2022-02-14 17:03:22         6527
Broadlink/python-broadlink-master/README.md    2022-05-04 07:45:40         2471
Broadlink/python-broadlink-master/requirements.txt 2022-02-14 17:03:22           20
Broadlink/python-broadlink-master/setup.py     2022-02-14 17:03:22          750
Broadlink/README.md                            2022-06-02 07:32:36         4309
Broadlink/scr/                                 2022-12-28 14:11:34            0
Broadlink/scr/dombr.cmd                        2022-02-14 17:03:22           45
Broadlink/scr/dombr.sh                         2021-01-11 10:42:08           21
Broadlink/setup.py                             2022-02-14 17:03:22         9129
Broadlink/tst-plugin                           2022-04-14 00:01:08       213722
Broadlink/web/                                 2022-12-28 14:11:34            0
Broadlink/web/css/                             2022-12-28 14:11:34            0
Broadlink/web/css/animations.css               2022-02-14 17:03:22        63164
Broadlink/web/css/button.css                   2022-02-14 17:03:22          600
Broadlink/web/css/listdir.css                  2022-02-14 17:03:22        26535
Broadlink/web/css/manage.css                   2022-02-14 17:03:22         4398
Broadlink/web/css/ModalDialog.css              2022-02-14 17:03:22         3144
Broadlink/web/css/multi.css                    2022-02-14 17:03:22          359
Broadlink/web/css/website.css                  2022-02-14 17:03:22        12403
Broadlink/web/img/                             2022-12-28 14:11:34            0
Broadlink/web/img/A1.txt                       2022-02-14 17:03:22        20914
Broadlink/web/img/MP1.txt                      2022-02-14 17:03:22        11082
Broadlink/web/img/RM2M.txt                     2022-02-14 17:03:22        28330
Broadlink/web/img/RM2.txt                      2022-02-14 17:03:22        10858
Broadlink/web/img/SP.txt                       2022-02-14 17:03:22        15178
Broadlink/web/img/UNK.txt                      2022-02-14 17:03:22         3858
Broadlink/web/js/                              2022-12-28 14:11:34            0
Broadlink/web/js/dynatree.js                   2022-02-14 17:03:22        45094
Broadlink/web/js/iframeResizer.contentWindow.js 2022-02-14 17:03:22        34362
Broadlink/web/js/iframeResizer.js              2022-02-14 17:03:22        36463
Broadlink/web/js/plugincontroller.js           2022-02-14 17:03:22        68167
Broadlink/web/js/RGraph.common.core.js         2022-02-14 17:03:22       119363
Broadlink/web/js/RGraph.common.dynamic.js      2022-02-14 17:03:22        19333
Broadlink/web/js/RGraph.common.tooltips.js     2022-02-14 17:03:22        11590
Broadlink/web/js/RGraph.fuel.js                2022-02-14 17:03:22        13216
Broadlink/web/js/RGraph.gauge.js               2022-02-14 17:03:22        22493
Broadlink/web/js/RGraph.meter.js               2022-02-14 17:03:22        22178
Broadlink/web/js/RGraph.odo.js                 2022-02-14 17:03:22        23141
Broadlink/web/js/RGraph.thermometer.js         2022-02-14 17:03:22        15219
Broadlink/web/js/RGraph.vprogress.js           2022-02-14 17:03:22        22682
Broadlink/web/js/Sortable.min.js               2022-02-14 17:03:22        42997
Broadlink/web/js/sorttable.js                  2022-02-14 17:03:22        16877
Broadlink/web/js/splitter.js                   2022-02-14 17:03:22         5258
Broadlink/web/js/tablesorter.js                2022-02-14 17:03:22        17188
Extracting all the files now...
-*-
 We execute this command : sudo -H python -m pip install python-broadlink-master/.
TimeoutExpired
Python 3.9.2: /usr/bin/python
Wed Dec 28 15:13:37 2022

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 /home/pi/domoticz/plugins/Broadlink/setup.py in <module>
  272 print('-*-')
  273 print(' We execute this command : ' + command)
  274 if mycmd(command):
  275     print(' We have installed : ' + mod)
  276
mycmd = <function mycmd>
command = 'sudo -H python -m pip install python-broadlink-master/.'

 /home/pi/domoticz/plugins/Broadlink/setup.py in mycmd(icommand='sudo -H python -m pip install python-broadlink-master/.')
  108 def mycmd(icommand):
  109     try:
  110         subprocess.check_output(icommand, shell=True, timeout=120)
  111
  112     except subprocess.CalledProcessError as e:
global subprocess = <module 'subprocess' from '/usr/lib/python3.9/subprocess.py'>
subprocess.check_output = <function check_output>
icommand = 'sudo -H python -m pip install python-broadlink-master/.'
shell undefined
timeout undefined

 /usr/lib/python3.9/subprocess.py in check_output(timeout=120, *popenargs=('sudo -H python -m pip install python-broadlink-master/.',), **kwargs={'shell': True})
  422         kwargs['input'] = empty
  423
  424     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  425                **kwargs).stdout
  426
global run = <function run>
popenargs = ('sudo -H python -m pip install python-broadlink-master/.',)
stdout undefined
global PIPE = -1
timeout = 120
check undefined
kwargs = {'shell': True}
).stdout undefined

 /usr/lib/python3.9/subprocess.py in run(input=None, capture_output=False, timeout=120, check=True, *popenargs=('sudo -H python -m pip install python-broadlink-master/.',), **kwargs={'shell': True, 'stdout': -1})
  505     with Popen(*popenargs, **kwargs) as process:
  506         try:
  507             stdout, stderr = process.communicate(input, timeout=timeout)
  508         except TimeoutExpired as exc:
  509             process.kill()
stdout undefined
stderr undefined
process = <Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>
process.communicate = <bound method Popen.communicate of <Popen: retur...', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>>
input = None
timeout = 120

 /usr/lib/python3.9/subprocess.py in communicate(self=<Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>, input=None, timeout=120)
 1132
 1133             try:
 1134                 stdout, stderr = self._communicate(input, endtime, timeout)
 1135             except KeyboardInterrupt:
 1136                 # https://bugs.python.org/issue25942
stdout undefined
stderr undefined
self = <Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>
self._communicate = <bound method Popen._communicate of <Popen: retu...', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>>
input = None
endtime = 661.503761677
timeout = 120

 /usr/lib/python3.9/subprocess.py in _communicate(self=<Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>, input=None, endtime=661.503761677, orig_timeout=120)
 1980
 1981                     ready = selector.select(timeout)
 1982                     self._check_timeout(endtime, orig_timeout, stdout, stderr)
 1983
 1984                     # XXX Rewrite these to use non-blocking I/O on the file
self = <Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>
self._check_timeout = <bound method Popen._check_timeout of <Popen: re...', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>>
endtime = 661.503761677
orig_timeout = 120
stdout = [b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\n', b'Processing ./python-broadlink-master\n', b'Collecting cryptography>=2.1.1\n', b'  Using cached cryptography-38.0.4.tar.gz (599 kB)\n', b'  Installing build dependencies: started\n', b"  Installing build dependencies: finished with status 'done'\n", b'  Getting requirements to build wheel: started\n', b"  Getting requirements to build wheel: finished with status 'done'\n", b'    Preparing wheel metadata: started\n', b"    Preparing wheel metadata: finished with status 'done'\n", b'Collecting cffi>=1.12\n', b'  Using cached https://www.piwheels.org/simple...ffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)\n', b'Collecting pycparser\n', b'  Using cached https://www.piwheels.org/simple...r/pycparser-2.21-py2.py3-none-any.whl (119 kB)\n', b'Building wheels for collected packages: broadlink, cryptography\n', b'  Building wheel for broadlink (setup.py): started\n', b"  Building wheel for broadlink (setup.py): finished with status 'done'\n", b'  Created wheel for broadlink: filename=broadl...f8425370040698740b70cf3d90aa94093e7e74d2f5bb1d\n', b'  Stored in directory: /root/.cache/pip/wheels...f626ebd1f2e68827d8ffe520fdb42f90ea8ec064b51fde\n', b'  Building wheel for cryptography (PEP 517): started\n']
stderr = None

 /usr/lib/python3.9/subprocess.py in _check_timeout(self=<Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>, endtime=661.503761677, orig_timeout=120, stdout_seq=[b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\n', b'Processing ./python-broadlink-master\n', b'Collecting cryptography>=2.1.1\n', b'  Using cached cryptography-38.0.4.tar.gz (599 kB)\n', b'  Installing build dependencies: started\n', b"  Installing build dependencies: finished with status 'done'\n", b'  Getting requirements to build wheel: started\n', b"  Getting requirements to build wheel: finished with status 'done'\n", b'    Preparing wheel metadata: started\n', b"    Preparing wheel metadata: finished with status 'done'\n", b'Collecting cffi>=1.12\n', b'  Using cached https://www.piwheels.org/simple...ffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)\n', b'Collecting pycparser\n', b'  Using cached https://www.piwheels.org/simple...r/pycparser-2.21-py2.py3-none-any.whl (119 kB)\n', b'Building wheels for collected packages: broadlink, cryptography\n', b'  Building wheel for broadlink (setup.py): started\n', b"  Building wheel for broadlink (setup.py): finished with status 'done'\n", b'  Created wheel for broadlink: filename=broadl...f8425370040698740b70cf3d90aa94093e7e74d2f5bb1d\n', b'  Stored in directory: /root/.cache/pip/wheels...f626ebd1f2e68827d8ffe520fdb42f90ea8ec064b51fde\n', b'  Building wheel for cryptography (PEP 517): started\n'], stderr_seq=None, skip_check_and_raise=False)
 1176             return
 1177         if skip_check_and_raise or _time() > endtime:
 1178             raise TimeoutExpired(
 1179                     self.args, orig_timeout,
 1180                     output=b''.join(stdout_seq) if stdout_seq else None,
global TimeoutExpired = <class 'subprocess.TimeoutExpired'>
self = <Popen: returncode: -9 args: ['s', 'u', 'd', 'o', ' ', '-', 'H', ' ', 'p', '...>
self.args = 'sudo -H python -m pip install python-broadlink-master/.'
orig_timeout = 120
output undefined
stdout_seq = [b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\n', b'Processing ./python-broadlink-master\n', b'Collecting cryptography>=2.1.1\n', b'  Using cached cryptography-38.0.4.tar.gz (599 kB)\n', b'  Installing build dependencies: started\n', b"  Installing build dependencies: finished with status 'done'\n", b'  Getting requirements to build wheel: started\n', b"  Getting requirements to build wheel: finished with status 'done'\n", b'    Preparing wheel metadata: started\n', b"    Preparing wheel metadata: finished with status 'done'\n", b'Collecting cffi>=1.12\n', b'  Using cached https://www.piwheels.org/simple...ffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)\n', b'Collecting pycparser\n', b'  Using cached https://www.piwheels.org/simple...r/pycparser-2.21-py2.py3-none-any.whl (119 kB)\n', b'Building wheels for collected packages: broadlink, cryptography\n', b'  Building wheel for broadlink (setup.py): started\n', b"  Building wheel for broadlink (setup.py): finished with status 'done'\n", b'  Created wheel for broadlink: filename=broadl...f8425370040698740b70cf3d90aa94093e7e74d2f5bb1d\n', b'  Stored in directory: /root/.cache/pip/wheels...f626ebd1f2e68827d8ffe520fdb42f90ea8ec064b51fde\n', b'  Building wheel for cryptography (PEP 517): started\n']
stderr undefined
stderr_seq = None
TimeoutExpired: Command 'sudo -H python -m pip install python-broadlink-master/.' timed out after 120 seconds
    __cause__ = None
    __class__ = <class 'subprocess.TimeoutExpired'>
    __context__ = None
    __delattr__ = <method-wrapper '__delattr__' of TimeoutExpired object>
    __dict__ = {'cmd': 'sudo -H python -m pip install python-broadlink-master/.', 'output': b"Looking in indexes: https://pypi.org/simple, h...ding wheel for cryptography (PEP 517): started\n", 'stderr': None, 'timeout': 120}
    __dir__ = <built-in method __dir__ of TimeoutExpired object>
    __doc__ = 'This exception is raised when the timeout expire...        cmd, output, stdout, stderr, timeout\n    '
    __eq__ = <method-wrapper '__eq__' of TimeoutExpired object>
    __format__ = <built-in method __format__ of TimeoutExpired object>
    __ge__ = <method-wrapper '__ge__' of TimeoutExpired object>
    __getattribute__ = <method-wrapper '__getattribute__' of TimeoutExpired object>
    __gt__ = <method-wrapper '__gt__' of TimeoutExpired object>
    __hash__ = <method-wrapper '__hash__' of TimeoutExpired object>
    __init__ = <bound method TimeoutExpired.__init__ of Timeout... -m pip install python-broadlink-master/.', 120)>
    __init_subclass__ = <built-in method __init_subclass__ of type object>
    __le__ = <method-wrapper '__le__' of TimeoutExpired object>
    __lt__ = <method-wrapper '__lt__' of TimeoutExpired object>
    __module__ = 'subprocess'
    __ne__ = <method-wrapper '__ne__' of TimeoutExpired object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of TimeoutExpired object>
    __reduce_ex__ = <built-in method __reduce_ex__ of TimeoutExpired object>
    __repr__ = <method-wrapper '__repr__' of TimeoutExpired object>
    __setattr__ = <method-wrapper '__setattr__' of TimeoutExpired object>
    __setstate__ = <built-in method __setstate__ of TimeoutExpired object>
    __sizeof__ = <built-in method __sizeof__ of TimeoutExpired object>
    __str__ = <bound method TimeoutExpired.__str__ of TimeoutE... -m pip install python-broadlink-master/.', 120)>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __suppress_context__ = False
    __traceback__ = <traceback object>
    __weakref__ = None
    args = ('sudo -H python -m pip install python-broadlink-master/.', 120)
    cmd = 'sudo -H python -m pip install python-broadlink-master/.'
    output = b"Looking in indexes: https://pypi.org/simple, h...ding wheel for cryptography (PEP 517): started\n"
    stderr = None
    stdout = b"Looking in indexes: https://pypi.org/simple, h...ding wheel for cryptography (PEP 517): started\n"
    timeout = 120
    with_traceback = <built-in method with_traceback of TimeoutExpired object>

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "/home/pi/domoticz/plugins/Broadlink/setup.py", line 274, in <module>
    if mycmd(command):
  File "/home/pi/domoticz/plugins/Broadlink/setup.py", line 110, in mycmd
    subprocess.check_output(icommand, shell=True, timeout=120)
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 507, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/lib/python3.9/subprocess.py", line 1134, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.9/subprocess.py", line 1982, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
  File "/usr/lib/python3.9/subprocess.py", line 1178, in _check_timeout
    raise TimeoutExpired(
subprocess.TimeoutExpired: Command 'sudo -H python -m pip install python-broadlink-master/.' timed out after 120 seconds


pi@raspberrypi:~/domoticz/plugins/Broadlink $   ERROR: Failed building wheel for cryptography
ERROR: Pipe to stdout was broken
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Frtoto
Posts: 4
Joined: Monday 06 August 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Python Plugin : Broadlink

Post by Frtoto »

Hello !

The link for download "setup. py" is not responding.

Does anyone have another link ?

thanks a lot
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Frtoto wrote: Friday 10 March 2023 20:54 Hello !

The link for download "setup. py" is not responding.

Does anyone have another link ?

thanks a lot
My new ISP is full IPV6 and put me on also, link has been updated now and shoud work... hope so!
Frtoto
Posts: 4
Joined: Monday 06 August 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Python Plugin : Broadlink

Post by Frtoto »

Thanks but still not working
Jujutasvu
Posts: 1
Joined: Thursday 16 March 2023 21:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: fr
Contact:

Re: Python Plugin : Broadlink

Post by Jujutasvu »

zak45 wrote: Tuesday 14 March 2023 0:17
Frtoto wrote: Friday 10 March 2023 20:54 Hello !

The link for download "setup. py" is not responding.

Does anyone have another link ?

thanks a lot
My new ISP is full IPV6 and put me on also, link has been updated now and shoud work... hope so!
Hi doesn't work for me either. Thanks for the work anyway
gjp1
Posts: 2
Joined: Saturday 11 January 2020 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by gjp1 »

zak45 wrote: Monday 21 September 2020 15:50
yo3ggx wrote: Monday 21 September 2020 12:49 Done already several times, unsuccessfully. Mustr be something related to plugin configuration, as over IR it works.
Broadlink focus on the right frequency, as if I press remote when in Sweep mode, Learn button is activated.
try to learn RF in manual mode (cli) and let know if working:


I have exactly same issue as you, did you ever get it learn RF codes?
I am also unable/unsure how to get it to work using CLI
rewil
Posts: 4
Joined: Friday 03 June 2022 17:16
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by rewil »

zak45 wrote: Tuesday 14 March 2023 0:17
Frtoto wrote: Friday 10 March 2023 20:54 Hello !

The link for download "setup. py" is not responding.

Does anyone have another link ?

thanks a lot
My new ISP is full IPV6 and put me on also, link has been updated now and shoud work... hope so!
Why u dont use github??

Error receive / save files from Gdrive : synnas publicvm com:4430/s/Czn9r8G8QwrZ7ji/download
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Planned
pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Python Plugin : Broadlink

Post by pfloryann »

Hi , i have fresh install bullseye with domoticz and i want to install broadlink plugin but It doesn't work, how can I install it?

Thanks!
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Python Plugin : Broadlink

Post by pfloryann »

I found the plugin files, i installed all pip's, but i have this error:

sudo python setup.py
/home/pi/domoticz/plugins/Broadlink/setup.py:23: DeprecationWarning: 'cgitb' is deprecated and slated for removal in Python 3.13
import cgitb
*
================================================================================
*
Broadlink Plugin Installation
*
================================================================================
*
Python 3.11.3 (main, May 3 2023, 20:11:57) [GCC 10.2.1 20210110] on linux
________________________________________
# We need Domoticz Net info
----------------------------------------
ENTER Domoticz IP address (e.g. 192.168.1.45): 192.168.0.111
ENTER Domoticz Port Number (e.g. 8080): 8888
IP/PORT OK
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Traceback (most recent call last):
File "/home/pi/domoticz/plugins/Broadlink/setup.py", line 74, in exe_domoticz
html = urllib.request.urlopen('http://' + str(Domoticz) + ':' + str(Port) + '/json.htm?' + params, timeout=20)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

urllib.error.HTTPError: HTTP Error 401: Unauthorized

Verify no user/password required for local Lan.

And the Git version is on go...!!
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Python Plugin : Broadlink

Post by pfloryann »

This version i have from github. I solved the previous problem thank you for suggestion, but now i have this:



sudo python setup.py
/home/pi/domoticz/plugins/Broadlink/setup.py:23: DeprecationWarning: 'cgitb' is deprecated and slated for removal in Python 3.13
import cgitb
*
================================================================================
*
Broadlink Plugin Installation
*
================================================================================
*
Python 3.11.3 (main, May 3 2023, 20:11:57) [GCC 10.2.1 20210110] on linux
________________________________________
# We need Domoticz Net info
----------------------------------------
ENTER Domoticz IP address (e.g. 192.168.1.45): 192.168.0.111
ENTER Domoticz Port Number (e.g. 8080): 8888
IP/PORT OK
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Request from domoticz to : type=settings
We work with this language : en
On this platform : Linux
________________________________________
# we install necessary modules
----------------------------------------
-*-
We execute this command : sudo -H python -m pip install setuptools
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is no t available.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour wit h the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa .io/warnings/venv
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is no t available.
WARNING: There was an error checking the latest version of pip.
We have installed : setuptools
-*-
We execute this command : sudo -H python -m pip install wheel
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is no t available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/wheel/
ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
ERROR: No matching distribution found for wheel
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is no t available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install wheel
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL ht tps://pypi.org/simple/wheel/: There was a problem confirming the ssl certificate: HTTPSConnectionPool( host=\'pypi.org\', port=443): Max retries exceeded with url: /simple/wheel/ (Caused by SSLError("Can\' t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL htt ps://www.piwheels.org/simple/wheel/: There was a problem confirming the ssl certificate: HTTPSConnecti onPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/wheel/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould no t fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSCon nectionPool(host=\'pypi.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLEr ror("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fet ch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPS ConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caus ed by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\n'
ERROR to install : wheel
could be normal if already exist, continue in anyway....
-*-
We execute this command : sudo -H python -m pip install googletrans
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is no t available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connecti on broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simpl e/googletrans/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/googletrans/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/googletrans/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/googletrans/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/googletrans/
ERROR: Could not find a version that satisfies the requirement googletrans (from versions: none)
ERROR: No matching distribution found for googletrans
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install googletrans
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL https://pypi.org/simpl e/googletrans/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443): Max retries exceeded with url: /simple/googletrans/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/googletrans/: There was a problem confi rming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simpl e/googletrans/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCo uld not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(ho st=\'pypi.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL b ecause the SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skip ping\n'
ERROR to install : googletrans
could be normal if already exist, continue in anyway....
-*-
We execute this command : sudo -H python -m pip install translate
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/translate/
ERROR: Could not find a version that satisfies the requirement translate (from versions: none)
ERROR: No matching distribution found for translate
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install translate
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL https://pypi.org/simpl e/translate/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443): Max re tries exceeded with url: /simple/translate/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/translate/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/tran slate/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pyp i.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because t he SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/pip/: There was a probl em confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url : /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\n'
ERROR to install : translate
could be normal if already exist, continue in anyway....
-*-
We execute this command : sudo -H python -m pip install requests
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install requests
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL https://pypi.org/simpl e/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443): Max ret ries exceeded with url: /simple/requests/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not a vailable.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/request s/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetc h URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.or g\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the S SL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/pip/: There was a problem c onfirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /s imple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\n'
ERROR to install : requests
could be normal if already exist, continue in anyway....
-*-
We execute this command : sudo -H python -m pip install requests_toolbelt
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/requests-toolbelt/
ERROR: Could not find a version that satisfies the requirement requests_toolbelt (from versions: none)
ERROR: No matching distribution found for requests_toolbelt
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install requests_toolbelt
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL https://pypi.org/simpl e/requests-toolbelt/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443) : Max retries exceeded with url: /simple/requests-toolbelt/ (Caused by SSLError("Can\'t connect to HTTPS URL because the S SL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/requests-toolbelt/: There w as a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceede d with url: /simple/requests-toolbelt/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not avai lable.")) - skipping\nCould not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate : HTTPSConnectionPool(host=\'pypi.org\', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\' t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.or g/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443 ): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\n'
ERROR to install : requests_toolbelt
could be normal if already exist, continue in anyway....
-*-
We execute this command : sudo -H python -m pip install irgen
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLErr or("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/irgen/
ERROR: Could not find a version that satisfies the requirement irgen (from versions: none)
ERROR: No matching distribution found for irgen
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: There was an error checking the latest version of pip.
ERROR to start subprocess
1
sudo -H python -m pip install irgen
b'Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCould not fetch URL https://pypi.org/simpl e/irgen/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=443): Max retrie s exceeded with url: /simple/irgen/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not availab le.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/irgen/: There was a problem confirming the ssl cert ificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/irgen/ (Caused b y SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https: //pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=\'pypi.org\', port=44 3): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\nCould not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming th e ssl certificate: HTTPSConnectionPool(host=\'www.piwheels.org\', port=443): Max retries exceeded with url: /simple/pip/ ( Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.")) - skipping\n'
ERROR to install : irgen
could be normal if already exist, continue in anyway....
________________________________________
# we download plugin files from GIT (zip format)
----------------------------------------
ModuleNotFoundError
Python 3.11.3: /usr/bin/python
Thu May 11 20:14:36 2023

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/home/pi/domoticz/plugins/Broadlink/setup.py in <module>
212 #
213
214 import requests
215 import shutil
216
requests undefined
ModuleNotFoundError: No module named 'requests'
__cause__ = None
__class__ = <class 'ModuleNotFoundError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of ModuleNotFoundError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of ModuleNotFoundError object>
__doc__ = 'Module not found.'
__eq__ = <method-wrapper '__eq__' of ModuleNotFoundError object>
__format__ = <built-in method __format__ of ModuleNotFoundError object>
__ge__ = <method-wrapper '__ge__' of ModuleNotFoundError object>
__getattribute__ = <method-wrapper '__getattribute__' of ModuleNotFoundError object>
__getstate__ = <built-in method __getstate__ of ModuleNotFoundError object>
__gt__ = <method-wrapper '__gt__' of ModuleNotFoundError object>
__hash__ = <method-wrapper '__hash__' of ModuleNotFoundError object>
__init__ = <method-wrapper '__init__' of ModuleNotFoundError object>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ModuleNotFoundError object>
__lt__ = <method-wrapper '__lt__' of ModuleNotFoundError object>
__ne__ = <method-wrapper '__ne__' of ModuleNotFoundError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ModuleNotFoundError object>
__reduce_ex__ = <built-in method __reduce_ex__ of ModuleNotFoundError object>
__repr__ = <method-wrapper '__repr__' of ModuleNotFoundError object>
__setattr__ = <method-wrapper '__setattr__' of ModuleNotFoundError object>
__setstate__ = <built-in method __setstate__ of ModuleNotFoundError object>
__sizeof__ = <built-in method __sizeof__ of ModuleNotFoundError object>
__str__ = <method-wrapper '__str__' of ModuleNotFoundError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
add_note = <built-in method add_note of ModuleNotFoundError object>
args = ("No module named 'requests'",)
msg = "No module named 'requests'"
name = 'requests'
path = None
with_traceback = <built-in method with_traceback of ModuleNotFoundError object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/home/pi/domoticz/plugins/Broadlink/setup.py", line 214, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin : Broadlink

Post by waltervl »

You probably have to install the additional python modules with sudo so

Sudo pip3 install 'your missing modules'
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Double check your python/OS installation.
Take a look here https://stackoverflow.com/questions/630 ... -available

or this one

https://stackoverflow.com/questions/674 ... er-the-ssl
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests