Python Plugin : Broadlink RM2 V4

Python and python framework
yorlik
Posts: 3
Joined: Wednesday 03 October 2018 22:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by yorlik » Friday 12 October 2018 22:38

Help another newbie please?

I have been trying to install broadlink into my working domoticz/mochad for 1 week. Being off work I probably have 80 hours into this and cannot get it!

I can install broadlink and see it in hardware of domoticz -IF I UPGRADE PYTHON3 from 3.5.3 to 3.6 or 3.7 -- the problem here is then it refuses to load plugin.py - it is definitely not pointing to new 3.6 or 3.7 and the 3.5 is not valid, so domoticz fails to load it per log and so it does not build a 'switch' to use...

Reason I tried newer python3 is with python 3.5 it fails to even install broadlink or Crypto or pyaes! This is the fault on ANY of the installs -- SSL faults:

**HELP PLEASE!!!**

sudo pip3 install broadlink
Collecting broadlink
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages
page = self._get_page(location)
File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/usr/lib/python3/dist-packages/pip/index.py", line 792, in get_page
"Cache-Control": "max-age=600",
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/pip/download.py", line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen
chunked=chunked)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 350, in _make_request
self._validate_conn(conn)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 837, in _validate_conn
conn.connect()
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 323, in connect
ssl_context=context)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/ssl_.py", line 308, in ssl_wrap_socket
context.load_verify_locations(ca_certs, ca_cert_dir)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 392, in load_verify_locations
self._ctx.load_verify_locations(cafile, capath)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 525, in load_verify_locations
_raise_current_error()
File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: []
pi@raspberrypi:~ $

HELP!!!

yorlik
Posts: 3
Joined: Wednesday 03 October 2018 22:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by yorlik » Saturday 13 October 2018 14:20

I appear to have an openSSL fault that I have no clue how to get around?

Flest
Posts: 2
Joined: Saturday 13 October 2018 15:21
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Flest » Saturday 13 October 2018 15:23

who can help?
I can't make it work.

orangePi PC2 debian
pyton 3.53

yorlik
Posts: 3
Joined: Wednesday 03 October 2018 22:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by yorlik » Monday 15 October 2018 20:19

I gave up trying to get past SSL fault in pyuthon3.5 and again (8th try) installed python 3.6.6. I can now install with sudo python3.6 -m pip install broadlink

kalinkamaen
Posts: 92
Joined: Sunday 04 January 2015 16:57
Target OS: Windows
Domoticz version: 4.900
Location: Norway
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by kalinkamaen » Monday 15 October 2018 21:21

Windows 10
Domoticz Beta 4.10064
Python 3.3.6

Trying to install Setup.exe, but gets Plugin.py error.
Please help.
Spoiler: show
Found existing installation: broadlink 0.8
Uninstalling broadlink-0.8:
Successfully uninstalled broadlink-0.8
Running setup.py install for broadlink ... done
Successfully installed broadlink-0.8
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
File not found - plugin.py
0 File(s) copied
""
"ERROR: copy plugin error"
Windows 7, Domoticz 4.9700

kalinkamaen
Posts: 92
Joined: Sunday 04 January 2015 16:57
Target OS: Windows
Domoticz version: 4.900
Location: Norway
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by kalinkamaen » Tuesday 16 October 2018 9:26

kalinkamaen wrote:
Monday 15 October 2018 21:21
Windows 10
Domoticz Beta 4.10064
Python 3.3.6

Trying to install Setup.exe, but gets Plugin.py error.
Please help.
Spoiler: show
Found existing installation: broadlink 0.8
Uninstalling broadlink-0.8:
Successfully uninstalled broadlink-0.8
Running setup.py install for broadlink ... done
Successfully installed broadlink-0.8
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
File not found - plugin.py
0 File(s) copied
""
"ERROR: copy plugin error"
This was fixed by making a new plugins\BroadlinkRM2 folder. And copying Plugin.py in to BroadlinkRM2 folder.
C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\Plugin.py

Running Setup.exe in admin mode still made an error. Error was plugin already installed. But after reboot Broalink plugin was avaiable.
Windows 7, Domoticz 4.9700

Flest
Posts: 2
Joined: Saturday 13 October 2018 15:21
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Flest » Tuesday 16 October 2018 17:16

any help?

Can anyone have instructions on how to put this on debian?
it is easy to install on windows, but debian ...

fvdp80
Posts: 9
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by fvdp80 » Thursday 18 October 2018 14:14

@Flest

take a look at my instructions on page 15 regarding Stretch for the RPI. Maybe it will work for your Debia install.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests