Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread David Rock
> On Nov 12, 2018, at 13:37, srinivasan wrote: > > Dear Python Experts, > > *First method:* > > I need to get the IP address basically the gateway IP in my setup I get it > as "192.168.178.1" when I run the below standalone python code. Is there a requirement to use only what comes in the

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Bill Campbell
On Tue, Nov 13, 2018, srinivasan wrote: >Dear Python Experts, > >*First method:* > >I need to get the IP address basically the gateway IP in my setup I get it >as "192.168.178.1" when I run the below standalone python code. > > >*def get_gateway_ip(self):* >*"""* >*Get the

[Tutor] I think I've broken my Python

2018-11-12 Thread Matthew Ngaha
I haven't coded in about 3 years and I used to use Python3.4 on openSUSE13.1. I had a virtual environment with this Python for a development Django website. Before I stopped coding, I upgraded to Python3.5, but everything still worked if I remember correctly. But now I'm back to coding I tried to

Re: [Tutor] I think I've broken my Python

2018-11-12 Thread Mats Wichmann
On 11/12/18 4:45 AM, Matthew Ngaha wrote: > I haven't coded in about 3 years and I used to use Python3.4 on > openSUSE13.1. I had a virtual environment with this Python for a > development Django website. Before I stopped coding, I upgraded to > Python3.5, but everything still worked if I remember

Re: [Tutor] I think I've broken my Python

2018-11-12 Thread Matthew Ngaha
On Mon, Nov 12, 2018 at 3:31 PM Mats Wichmann wrote: > > Reconstruct the virtualenv you want maybe? Their whole concept is that > they're cheap and easy and can just be thrown away. Of course, you then > have to remember what you did to create it in order to make a new one... It's been 3 years,

Re: [Tutor] I think I've broken my Python

2018-11-12 Thread Mats Wichmann
On 11/12/18 10:07 AM, Matthew Ngaha wrote: > On Mon, Nov 12, 2018 at 3:31 PM Mats Wichmann wrote: >> >> Reconstruct the virtualenv you want maybe? Their whole concept is that >> they're cheap and easy and can just be thrown away. Of course, you then >> have to remember what you did to create it

Re: [Tutor] Example for read and readlines() (Asad)

2018-11-12 Thread Asad
Hi All , Thanks for the reply . I am building a framework for the two error conditions, therefore I need to read and readlines because in one only regex is required and in other regex+ n-1 line is required to process : #Here we are opening the file and substituting space " " for each \n

[Tutor] Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Dear Python Experts team, This question might be very simple for you, As am newbie to python, could you please how to parse the below strings 1. Could you please do the needful in guiding me, that how can I extract the strings under the UUID column in python code in the below output (nmcli c

[Tutor] How to create a html hyperlink for a document

2018-11-12 Thread Asad
Hi All , I am creating a python script to analyze the log and provide a solution , in the solution part I want to include a document and create a hyperlink to the document so that its clickable . I have python 2.6.6 cannot use :hyperlink module because this is production server and the

Re: [Tutor] I think I've broken my Python

2018-11-12 Thread Roger B. Atkins
What about installing or reinstalling Django using the python version that produced the error message? On Mon, Nov 12, 2018 at 10:10 AM Matthew Ngaha wrote: > > On Mon, Nov 12, 2018 at 3:31 PM Mats Wichmann wrote: > > > > Reconstruct the virtualenv you want maybe? Their whole concept is that > >

Re: [Tutor] (no subject)

2018-11-12 Thread Avi Gross
In replying to what "Stealth Fleet" asked, I have too many comments, starting with a suggestion to put a SUBECT on the Subject: line. Your first error was not converting the text input to an integer or floating point number. tokenAmount = input( "How many tokens would you like to buy or

Re: [Tutor] Issue in parsing the strings in python code

2018-11-12 Thread Shakti Kumar
On Mon, 12 Nov 2018 at 14:02, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > 1. Could you please do the needful in guiding me, that how can I extract > the strings under

[Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread srinivasan
Dear Python Experts, *First method:* I need to get the IP address basically the gateway IP in my setup I get it as "192.168.178.1" when I run the below standalone python code. *def get_gateway_ip(self):* *"""* *Get the IP address to the WIFI module from the AP* *