On 30Nov2018 02:19, srinivasan wrote:
Thanks a lot for your quick responses, again the below line seems to
be throwing the same error, is that should I again decode the line
where am facing the issue to str? or could you please let me if there
is any alternative solution for the same or workarou
Dear Mats,
Thanks a lot for your quick responses, again the below line seems to
be throwing the same error, is that should I again decode the line
where am facing the issue to str? or could you please let me if there
is any alternative solution for the same or workaround in python 3.6?
Code Snipp
On 29/11/2018 19:20, srinivasan wrote:
With the below code snippet, I am seeing the below error, I am using
python 3.6, could you please what could be the issue?
[snip]
Traceback (most recent call last):
File "/home/srinivasan/Downloads/bt_tests/qa/test_library/bt_tests.py",
line 169, in
On 11/29/18 12:20 PM, srinivasan wrote:
> Dear Python Experts,
>
> With the below code snippet, I am seeing the below error, I am using
> python 3.6, could you please what could be the issue?
> self.child = pexpect.spawn("bluetoothctl", echo = False)
...
> self.child.send(command
Dear Python Experts,
With the below code snippet, I am seeing the below error, I am using
python 3.6, could you please what could be the issue?
Code Snippet:
---
import time
import pexpect
import subprocess
import sys
class BluetoothctlError(Exception):
"""This exception is r
On 11/27/18 5:50 AM, srinivasan wrote:
> Dear Python Experts,
>
> As still I am newbie and learning python, I am trying to reuse the
> Bluetoothctl wrapper in Python from the link (
> https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6
> version, In pycharm editor on the bold
On 11/27/2018 8:24 AM, Frank Millman wrote:
In the line 'return None', it may be complaining that None is
superfluous - a plain 'return' does the same thing.
PEP 8 recommends explicit 'return None' if elsewhere in the function
there is an explicit 'return something', as in
if condition
On 11/27/2018 7:50 AM, srinivasan wrote:
Dear Python Experts,
As still I am newbie and learning python, I am trying to reuse the
Bluetoothctl wrapper in Python from the link (
https://gist.github.com/egorf/66d88056a9d703928f93
Created in 2015
) I am using python3.6
version, In pycharm editor
"srinivasan" wrote in message
news:cafstbwec-ww7agrwtotk5z8fhlrfa1hocoobkv7bcyds1be...@mail.gmail.com...
As still I am newbie and learning python, I am trying to reuse the
Bluetoothctl wrapper in Python from the link (
https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6
ve
On Tue, 2018-11-27 at 13:50 +0100, srinivasan wrote:
>
> *except BluetoothctlError, e:*
>
I don't have python3.6 available, but I believe the proper syntax is:
except BluetoothctlError as e:
print(e)
See:
https://docs.python.org/3/tutorial/errors.html?highlight=exception
HTW
--
h
Dear Python Experts,
As still I am newbie and learning python, I am trying to reuse the
Bluetoothctl wrapper in Python from the link (
https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6
version, In pycharm editor on the bold highlighted code snippets I see the
error message "
11 matches
Mail list logo