How to end TCP socket data while using readline()?
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-object, and so somehow I have to communicate to the server that it is the end-of-file. here is some server code sock1.bind(('', port)) print "Listening at port: ", port sock1.listen(1) # listening socket (conn, addr) = sock1.accept()# connected socket print 'Client (localhost) port: ', addr[1] cf = conn.makefile('r',0)# file like obj for socket lf = open('ccs.txt','w') for line in cf: lf.write(line) lf.flush() sys.stdout.write(line) print len(line) lf.close() (*here*) cf.close() cf = conn.makefile('w',0) print len(line) print 'sendin' stat = 'done' cf.write(stat) print stat print 'sent' cf.close() print 'script done & connection closed' The client is sending the lines through this code: s.connect((host,port)) sfp = open("dcs.txt") # script = sfp.readlines() stat = 'still' cf = s.makefile('w',0) for line in sfp.readlines(): cf.write(line) print len(line) print 'close' cf.flush() cf.close() sfp.close() cf = s.makefile('r',0) print stat, 'waiting' stat = cf.readline() print stat, 'waiting' # this should become "done waiting" cf.close() s.close() So what I am wondering is: 1. Using a file-like object means that the socket becomes uni- directional, until the mode of the file object is changed from 'r' to 'w' (or vice versa). This seems inefficient, and rather unPythonesque. Can somebody tell me if there is a more elegant way of receiving all the lines from the client, and then sending a "done" message to the client? 2. Where I have marked (*here*) in the server code, is where the execution seems to stay waiting... apparently for more input from the client. But then when I force-terminate the client script, the execution continues on the server-side!! So then it sends the "done" status to a (already dead) client, and then exits. How do I get the server to know when the EOF has been reached while using FLOs? Input on this will be much appreciated, because the documentation for readlines() didn't help me with this. Cheers, A -- http://mail.python.org/mailman/listinfo/python-list
Python for speech recognition
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-list
Re: Python3 - How do I import a class from another file
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 lost, and >as a result it is garbage-collected. Right ? > Quite likely... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Unable to insert data into MongoDB.
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.bind((IP, PORT)) File "C:\Python27\lib\socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions and when I change the IP of MongoDB server, it shows Hello World! Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", line 32, in s.bind((IP, PORT)) File "C:\Python27\lib\socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 10049] The requested address is not valid in its context. Could you please help me out? I have disabled the firewall as well. Here's the API I have written. #!/usr/bin/python import socket import socket from pymongo import MongoClient #from eve import Eve import datetime # Connection to server (PLC) on port 27017 server = socket.socket() host = "10.52.124.135" #IP of PLC port = 27017 BUFFER_SIZE = 1024 ### server.connect((host, port)) print server.recv(1024) server.close #Connection to Client (Mongodb) on port 27017 IP = "127.0.0.1" PORT = 27017 BUFFER_SIZE = 1024 client = MongoClient('127.0.0.1', 27017) db = client.test_database s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((IP, PORT)) s.listen(1) #connections loop while True: conn, addr = s.accept() print 'Connection address:',addr try: # read loop while True: data = server.recv(BUFFER_SIZE) if not data: break conn.sendall(data) # send to MongoDB mongodoc = { "data": data, "date" : datetime.datetime.utcnow() } ABC = db.ABC ABC_id = ABC.insert_one(mongodoc).inserted_id finally: conn.close() -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to insert data into MongoDB.
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 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.bind((IP, PORT)) File "C:\Python27\lib\socket.py", > line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 10013] > An attempt was made to access a socket in a way forbidden by its access > permissions > and when I change the IP of MongoDB server, it shows > > > Hello World! > Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", > line 32, in s.bind((IP, PORT)) File "C:\Python27\lib\socket.py", > line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 10049] > The requested address is not valid in its context. > > Could you please help me out? I have disabled the firewall as well. > > Here's the API I have written. > > #!/usr/bin/python > > import socket > import socket > from pymongo import MongoClient > #from eve import Eve > import datetime > > # Connection to server (PLC) on port 27017 > server = socket.socket() > host = "10.52.124.135" #IP of PLC > port = 27017 > BUFFER_SIZE = 1024 > ### > > server.connect((host, port)) > print server.recv(1024) > > server.close > > #Connection to Client (Mongodb) on port 27017 > IP = "127.0.0.1" > PORT = 27017 > BUFFER_SIZE = 1024 > > client = MongoClient('127.0.0.1', 27017) > db = client.test_database > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.bind((IP, PORT)) > s.listen(1) > > #connections loop > while True: > conn, addr = s.accept() > print 'Connection address:',addr > try: > # read loop > while True: > data = server.recv(BUFFER_SIZE) > > if not data: break > conn.sendall(data) > > > # send to MongoDB > > mongodoc = { "data": data, "date" : datetime.datetime.utcnow() } > > > ABC = db.ABC > ABC_id = ABC.insert_one(mongodoc).inserted_id > > finally: > conn.close() -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to insert data into MongoDB.
I changed the port number from 27017 to 5 in the code segment: IP = "127.0.0.1" PORT = 27017 BUFFER_SIZE = 1024 client = MongoClient('127.0.0.1', 27017) And my output on Python shell is: hello world! Connection address: ('127.0.0.1', 16951) Connection address: ('127.0.0.1', 16953) Connection address: ('127.0.0.1', 16957) Connection address: ('127.0.0.1', 16958) Connection address: ('127.0.0.1', 16959) Connection address: ('127.0.0.1', 16961) Connection address: ('127.0.0.1', 16962) Connection address: ('127.0.0.1', 16963) Connection address: ('127.0.0.1', 16964) Connection address: ('127.0.0.1', 16965) and it goes on and on... What does the above port numbers mean? And I can't still see the data being inserted into Database yet. And as you said, if I change server.close to server.close(), then I get a traceback: Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", line 41, in data = server.recv(BUFFER_SIZE) File "C:\Python27\lib\socket.py", line 174, in _dummy raise 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 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.bind((IP, PORT)) File "C:\Python27\lib\socket.py", > > line 228, in meth return getattr(self._sock,name)(*args) error: [Errno > > 10013] An attempt was made to access a socket in a way forbidden by its > > access permissions > > and when I change the IP of MongoDB server, it shows > > > > > > Hello World! > > Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", > > line 32, in s.bind((IP, PORT)) File "C:\Python27\lib\socket.py", > > line 228, in meth return getattr(self._sock,name)(*args) error: [Errno > > 10049] The requested address is not valid in its context. > > > > Could you please help me out? I have disabled the firewall as well. > > > > Here's the API I have written. > > > > #!/usr/bin/python > > > > import socket > > import socket > > from pymongo import MongoClient > > #from eve import Eve > > import datetime > > > > # Connection to server (PLC) on port 27017 > > server = socket.socket() > > host = "10.52.124.135" #IP of PLC > > port = 27017 > > BUFFER_SIZE = 1024 > > ### > > > > server.connect((host, port)) > > print server.recv(1024) > > > > server.close > > > > #Connection to Client (Mongodb) on port 27017 > > IP = "127.0.0.1" > > PORT = 27017 > > BUFFER_SIZE = 1024 > > > > client = MongoClient('127.0.0.1', 27017) > > db = client.test_database > > > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > s.bind((IP, PORT)) > > s.listen(1) > > > > #connections loop > > while True: > > conn, addr = s.accept() > > print 'Connection address:',addr > > try: > > # read loop > > while True: > > data = server.recv(BUFFER_SIZE) > > > > if not data: break > > conn.sendall(data) > > > > > > # send to MongoDB > > > > mongodoc = { "data": data, "date" : datetime.datetime.utcnow() } > > > > > > ABC = db.ABC > > ABC_id = ABC.insert_one(mongodoc).inserted_id > > > > finally: > > conn.close() > > > I don't know whether it's relevant, but you didn't close the server > socket. You have "server.close" instead of "server.close()". > > Also, the code as posted won't compile because the block after the > "while True:" isn't indented. -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to insert data into MongoDB.
Hi Peter. Thank you for the reply. This is the read_server code: import socket from pymongo import MongoClient #import datetime import sys # Connection to server (PLC) on port 27017 host = "10.52.124.135" port = 27017 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) sys.stdout.write(s.recv(1024)) And the write_db code: from pymongo import MongoClient import datetime import socket import sys client = MongoClient('mongodb://localhost:27017/') db = client.test_database mongodoc = { "data": 'data', "date" : datetime.datetime.utcnow() } values = db.values values_id = values.insert_one(mongodoc).inserted_id So, both these scripts work independently. While, read_server shows the output of the actual data from PLC, write_db inserts the sample data into the MongoDB. I am not sure as to how to combine 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 that one > works I recommend that you write two independent scripts, from scratch: > > (1) write_to_db.py: > Write made-up data into the MongoDB on your local machine. > > (2) read_from_server.py: > Read data from the server and print it to stdout. > > Reduce these scripts to the bare minimum. Debug them one ofter another. > > Once both scripts work to your satisfaction replace the sample data in > script one with code from script two that reads actual data. -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to insert data into MongoDB.
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:00:37 PM UTC+1, Arjun Srivatsa wrote: > Hi Peter. > > Thank you for the reply. > > This is the read_server code: > > import socket > from pymongo import MongoClient > #import datetime > import sys > > # Connection to server (PLC) on port 27017 > host = "10.52.124.135" > port = 27017 > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.connect((host, port)) > sys.stdout.write(s.recv(1024)) > > > And the write_db code: > > from pymongo import MongoClient > import datetime > import socket > import sys > > client = MongoClient('mongodb://localhost:27017/') > db = client.test_database > > mongodoc = { "data": 'data', "date" : datetime.datetime.utcnow() } > values = db.values > values_id = values.insert_one(mongodoc).inserted_id > > > So, both these scripts work independently. While, read_server shows the > output of the actual data from PLC, write_db inserts the sample data into the > MongoDB. > > I am not sure as to how to combine 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 that one > > works I recommend that you write two independent scripts, from scratch: > > > > (1) write_to_db.py: > > Write made-up data into the MongoDB on your local machine. > > > > (2) read_from_server.py: > > Read data from the server and print it to stdout. > > > > Reduce these scripts to the bare minimum. Debug them one ofter another. > > > > Once both scripts work to your satisfaction replace the sample data in > > script one with code from script two that reads actual data. -- https://mail.python.org/mailman/listinfo/python-list
Re: Unable to insert data into MongoDB.
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_server code: > > > > import socket > > from pymongo import MongoClient > > #import datetime > > import sys > > > > # Connection to server (PLC) on port 27017 > > host = "10.52.124.135" > > port = 27017 > > > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > s.connect((host, port)) > > sys.stdout.write(s.recv(1024)) > > > > > > And the write_db code: > > > > from pymongo import MongoClient > > import datetime > > import socket > > import sys > > > > client = MongoClient('mongodb://localhost:27017/') > > db = client.test_database > > > > mongodoc = { "data": 'data', "date" : datetime.datetime.utcnow() } > > values = db.values > > values_id = values.insert_one(mongodoc).inserted_id > > > > > > So, both these scripts work independently. While, read_server shows the > > output of the actual data from PLC, write_db inserts the sample data into > > the MongoDB. > > > > I am not sure as to how to combine these both and get the desired output. > > What I mean is once you have working scripts > > connect_to_mongodb() > while True: > record = make_fake_data() > insert_record_into_mongodb(record) > > and > > connect_to_server() > while True: > record = read_record_from_server() > print(record) > > you can combine the code in a third script to > > connect_to_server() > connect_to_mongodb() > while True: > record = read_record_from_server() > insert_record_into_mongodb(record) > > and be fairly sure that the combination works, too. -- https://mail.python.org/mailman/listinfo/python-list
Cant install virtualenv
Hai, While trying to install virtualenv in my system(windows 10 Home) using pip i'm getting the following error "Could not find a version that satisfies the requirement virtualenv (from versions: ) No matching distribution found for virtualenv". Right now i'm using 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)
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 once for each function it appears in.) main.cpp:8: `Py_Finalise' undeclared (first use this function) Process terminated with status 1 (0 minutes, 1 seconds) I included "E:\Python25\include\Python.h" Also I think that when I use C instead of c++ errors did'nt happen although I can't repeat that now Also do I need to link only 'libpython25.a' -- http://mail.python.org/mailman/listinfo/python-list
Re: Can't embed python in C++(Mingw[3.*] compiler)
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 > > Configure your environment so using: > > #include > > works (you may need to add E:\Python25\include to some list of searched > directories, maybe an INCLUDE environment variable). > > -- > Gabriel Genellina That AND I didn't use the american spelling Py_Initiali >>> Z <<< e(); -- http://mail.python.org/mailman/listinfo/python-list
Re: How to end TCP socket data while using readline()?
Thanks for the feedback. Opening a separate file-obj for writing and for reading is just what I've been trying, but I don't seem to get it to work. I'm new to python and I'm not sure if I'm missing the intricacy of some command. Please help: Here is my server snippet: (conn, addr) = sock1.accept()# connected socket print 'Client (localhost) port: ', addr[1] cf = conn.makefile('r',0)# file obj for reading lf = open('ccs.txt','w') for linenum, line in enumerate(cf):# iterate over socket lines lf.write(line) #sys.stdout.write(line) print len(line) cf.close() stat = 'wrote %s lines to file.\n' %(linenum+1) cff = conn.makefile('w',0) # file obj for writing cff.writelines(stat) # cff.write(stat) does not work either!! cff.close() lf.close() conn.close() print stat, "DONE!" And here is the client that I have for it: (sfp is the local file object i read from) for line in sfp.readlines(): cf.write(line) print len(line) print 'done sending' cf.close() #writing ends here cff = s.makefile('r',0) # file obj for writing for line in cff.readlines(): print line 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? Help much appreciated, with a small explanation. Cheers, Arjun On Sat, Feb 27, 2010 at 05:11, Cameron Simpson wrote: > On 26Feb2010 10:39, Arjun wrote: > | 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-object, and so somehow I have to communicate to the > | server that it is the end-of-file. > | > | here is some server code > | > | sock1.bind(('', port)) > | print "Listening at port: ", port > | sock1.listen(1) # listening socket > | (conn, addr) = sock1.accept()# connected socket > | print 'Client (localhost) port: ', addr[1] > | > | cf = conn.makefile('r',0)# file like obj for socket > [...] > | print 'close' > | cf.flush() > | cf.close() > | sfp.close() > [...] > > Too many files. It's not that hard! Or shouldn't be. > > | So what I am wondering is: > | > | 1. Using a file-like object means that the socket becomes uni- > | directional, until the mode of the file object is changed from 'r' to > | 'w' (or vice versa). This seems inefficient, and rather unPythonesque. > | Can somebody tell me if there is a more elegant way of receiving all > | the lines from the client, and then sending a "done" message to the > | client? > > Get the socket. It is a file descriptor (or in may be a python "socket" > object with a file descriptor inside). > > Open _two_ "file" objects on it using > from_file = os.fdopen(fd_of_socket, "r") > to_file = os.fdopen(fd_of_socket, "w"). > > Use the same: > print >>to_file, 'close' > to_file.flush() > method as you're using already. > Read from to_file as needed. > > The same scheme should work in both server and client: > > Don't look for EOF, watch the input line flow. > > You might need to use readline() instead of the file-by-line iteration > stuff, > which I seem to recall has some sort of problem handing out the "latest" > line. > > Cheers, > -- > Cameron Simpson DoD#743 > http://www.cskk.ezoshosting.com/cs/ > > It's better, when you're riding with someone you don't know so well, to > stick > to the inside line - it's easier to avoid the bits... >- Barry Sheene > -- http://mail.python.org/mailman/listinfo/python-list
Re: How to end TCP socket data while using readline()?
It DOES seem like only when the connection socket is closed via conn.close() that the data is flushed and the 'waiting' ends. So with the earlier suggestion that I open one file-obj for reading and one for writing, I still cannot acheive two-way communication because I need to close the 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've > been trying, but I don't seem to get it to work. I'm new to python and I'm > not sure if I'm missing the intricacy of some command. Please help: > > Here is my server snippet: > > > (conn, addr) = sock1.accept()# connected socket > print 'Client (localhost) port: ', addr[1] > > cf = conn.makefile('r',0)# file obj for reading > > lf = open('ccs.txt','w') > > for linenum, line in enumerate(cf):# iterate over socket > lines > lf.write(line) > #sys.stdout.write(line) > print len(line) > > cf.close() > > stat = 'wrote %s lines to file.\n' %(linenum+1) > cff = conn.makefile('w',0) # file obj for writing > cff.writelines(stat) # cff.write(stat) does not work > either!! > cff.close() > > lf.close() > conn.close() > print stat, "DONE!" > > And here is the client that I have for it: (sfp is the local file object i > read from) > > > for line in sfp.readlines(): > cf.write(line) > print len(line) > > print 'done sending' > cf.close() #writing ends here > > cff = s.makefile('r',0) # file obj for writing > for line in cff.readlines(): > print line > > 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? Help much appreciated, with a small > explanation. > > Cheers, > Arjun > > -- http://mail.python.org/mailman/listinfo/python-list
intersting datt with girls.......sign in to this website
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
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 > small > > window by the window with a black screen: > > -- > > python.exe - System Error > > The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is > missing from > > your computer. Try reinstalling the program to fix this problem. > > > > I tried the following: > > > > (a) restarting Windows and trying again: same result; > > > > (a) running the installer file again and selecting repair: > > this stalled for a long time so I had to abort it; > > > > (b) restarting my computer, running the installer file again and > selecting uninstall: > > this uninstalled Python, so it said; > > > > (c) running the installer file again and choosing install: this > installed Python afresh. > > But then I had the same problem as at the start when I tried to run > Python. > > Python's installer should try to install the Universal C runtime > update, but this seems to fail frequently. If you want to help improve > the installer, zip up Python's installation logs that are in your > %Temp% directory to a single zip file; open an issue on > bugs.python.org; and attach the zip file to the issue. > > You probably didn't get the CRT update from Windows Update because you > don't have the option enabled to install recommended updates. Anyway, > you can manually download and install Windows6.1-KB3118401-x64.msu > (the 64-bit version for NT 6.1, i.e. Windows 7) from the following > site: > > https://www.microsoft.com/en-us/download/details.aspx?id=50410 > -- https://mail.python.org/mailman/listinfo/python-list