How to end TCP socket data while using readline()?

2010-02-26 Thread Arjun
Hi, I have a small script that runs a TCP server. A client connects to this server and transmits a stored file line-by-line, and then waits for a confirmation "done". However, when I run them the first loop never really ends -- as the TCP server keeps expecting more data. I am using a file-like-obj

Python for speech recognition

2019-11-24 Thread Arjun Chandran
I would like to create a python program for converting speech to text. I am not getting the best results by using google API , SpeechRecognition class. Anybody please provide the best way possible to do this. I have attached the program i used. -- https://mail.python.org/mailman/listinfo/python

Re: Python3 - How do I import a class from another file

2019-12-11 Thread Arjun pazhanikumar
You could write the name of the class variable you want to import for example class manager On December 10, 2019, at 2:46 AM, Dennis Lee Bieber wrote: On Mon, 9 Dec 2019 20:21:39 +0100, "R.Wieser" declaimed the following: > >And than when the instance is deleted the binding to the class is

Unable to insert data into MongoDB.

2016-02-11 Thread Arjun Srivatsa
Hi guys. I am basically transferring the data from PLC to PC (where the Python API runs) but I'm unable to insert into MongoDB thereafter. When I run the Python script on IDLE, the output is Hello World! Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", line 32, in s.bi

Re: Unable to insert data into MongoDB.

2016-02-11 Thread Arjun Srivatsa
Hello, I changed PORT = 27017 to PORT = 5. I am not getting the error anymore. But I am still unable to insert the data into MongoDB. On Thursday, February 11, 2016 at 4:12:30 PM UTC+1, Arjun Srivatsa wrote: > Hi guys. I am basically transferring the data from PLC to

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
e error(EBADF, 'Bad file descriptor') error: [Errno 9] Bad file descriptor On Thursday, February 11, 2016 at 5:09:53 PM UTC+1, MRAB wrote: > On 2016-02-11 15:12, Arjun Srivatsa wrote: > > Hi guys. I am basically transferring the data from PLC to PC (where the > > Python API

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
bine these both and get the desired output. On Monday, February 15, 2016 at 12:37:02 PM UTC+1, Peter Otten wrote: > Arjun Srivatsa wrote: > > > I changed the port number from 27017 to 5 in the code segment: > > Instead of throwing arbitrary changes at your script in the hope

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
Okay, I added with open('yourfile','w') as f: f.write(data) to the read_server code in which the Actual data is stored in a file on my desktop. Then, it must be possible to read this file in the Write_db script to insert the data. On Monday, February 15, 2016 at 4:0

Re: Unable to insert data into MongoDB.

2016-02-16 Thread Arjun Srivatsa
Thanks a lot. Will implement that. Although I am able to do using just 2 scripts as well. On Monday, February 15, 2016 at 5:34:08 PM UTC+1, Peter Otten wrote: > Arjun Srivatsa wrote: > > > Hi Peter. > > > > Thank you for the reply. > > > > This is the read

Cant install virtualenv

2016-03-19 Thread Arjun Prathap
Python 3.5.1 (v3.5.1:37a07cee5969), i have also tried using python 2.7 but the errors were same. Please help me to rectify this problem. Thanks in advance. -- *Yours faithfully* *ARJUN PRATHAP* -- https://mail.python.org/mailman/listinfo/python-list

Can't embed python in C++(Mingw[3.*] compiler)

2007-05-19 Thread Arjun Narayanan
For thr program, #include "E:\Python25\include\Python.h" #include int main(int argc, char* argv[]){ Py_Initialise(); Py_Finalise(); return 0; } I get the errors, main.cpp:7: `Py_Initialise' undeclared (first use this function) main.cpp:7: (Each undeclared identifier is reported only on

Re: Can't embed python in C++(Mingw[3.*] compiler)

2007-05-19 Thread Arjun Narayanan
On May 20, 1:28 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 19 May 2007 13:14:40 -0300, Arjun Narayanan > <[EMAIL PROTECTED]> escribió: > > > For thr program, > > #include "E:\Python25\include\Python.h" > > #include >

Re: How to end TCP socket data while using readline()?

2010-03-01 Thread Arjun Chennu
cff.close() sfp.close() s.close() The execution sends all the lines (and prints out the len(line) ) and then stays waiting. THen when I manually terminate the client script, the server script happily types the "DONE!" output. Where is this protocol hanging up?

Re: How to end TCP socket data while using readline()?

2010-03-01 Thread Arjun Chennu
connection for it to actually occur completely! My client waits after the "done sending" line indefinitely. Weird. A On Mon, Mar 1, 2010 at 16:35, Arjun Chennu wrote: > Thanks for the feedback. > > Opening a separate file-obj for writing and for reading is just what I'

intersting datt with girls.......sign in to this website

2010-03-06 Thread karan arjun
RE U WANT RUSSIAN GIRL FRIENDS... WEBPAGE ---> http://123maza.com/hashan/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Installation issue with Python 3.6.1 for 64 bit Windows

2017-03-26 Thread Arjun Janah
Thank you, Eryk Sun. On Mar 26, 2017 12:40 PM, "eryk sun" wrote: > On Sun, Mar 26, 2017 at 4:01 AM, arjun.janah > wrote: > > > > I ran the file and it appeared to install properly. But when I tried to > run Python from > > the Windows All Programs menu tab, I got the following message, in a > s