Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Errno 13] Permission denied running with root #40

Open
danimaciasperea opened this issue Dec 3, 2020 · 0 comments
Open

[Errno 13] Permission denied running with root #40

danimaciasperea opened this issue Dec 3, 2020 · 0 comments

Comments

@danimaciasperea
Copy link

I am having problems to use this library.
I am using python 3.5 version. Installed the library

root@TrastoRaspberry:/ pip3 install python-eq3bt
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: python-eq3bt in /usr/local/lib/python3.5/dist-packages (0.1.11)
Requirement already satisfied: click in /usr/local/lib/python3.5/dist-packages (from python-eq3bt) (7.1.2)
Requirement already satisfied: click-datetime in /usr/local/lib/python3.5/dist-packages (from python-eq3bt) (0.2)
Requirement already satisfied: construct in /usr/local/lib/python3.5/dist-packages (from python-eq3bt) (2.10.54)
Requirement already satisfied: bluepy>=1.0.5 in /usr/local/lib/python3.5/dist-packages (from python-eq3bt) (1.3.0)
Requirement already satisfied: click in /usr/local/lib/python3.5/dist-packages (from python-eq3bt) (7.1.2)

But when I try to use the library...

root@TrastoRaspberry:/home/dani# eq3cli --debug --mac 00:1A:22:16:8D:94 DEBUG:eq3bt.eq3btsmart:Querying the device.. DEBUG:eq3bt.connection:Trying to connect to 00:1A:22:16:8D:94 Traceback (most recent call last): File "/usr/local/bin/eq3cli", line 11, in <module> sys.exit(cli()) File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1236, in invoke return Command.invoke(self, ctx) File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/eq3bt/eq3cli.py", line 34, in cli thermostat.update() File "/usr/local/lib/python3.5/dist-packages/eq3bt/eq3btsmart.py", line 205, in update self._conn.make_request(PROP_WRITE_HANDLE, value) File "/usr/local/lib/python3.5/dist-packages/eq3bt/connection.py", line 71, in make_request with self: File "/usr/local/lib/python3.5/dist-packages/eq3bt/connection.py", line 36, in __enter__ self._conn.connect(self._mac) File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 445, in connect self._connect(addr, addrType, iface) File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 426, in _connect self._startHelper(iface) File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 284, in _startHelper preexec_fn = preexec_function) File "/usr/lib/python3.5/subprocess.py", line 676, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child raise child_exception_type(errno_num, err_msg) PermissionError: [Errno 13] Permission denied

Can anybody help me to find the solution? I have been able to connect with the thermostat using a different library based on bluetoothctl without problems, but I prefer the Python alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant