errno

socket.gaierror: [Errno -2] Name or service not known

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Guys i'm a newbie to the socket programming Following program is a client program which request a file from the server,But i'm getting the error as show below.. My input is GET index.html and the code is Can anyone solve this error...? #!/usr/bin/env python import httplib import sys http_server = sys.argv[0] conn = httplib.HTTPConnection(http_server) while 1: cmd = raw_input('input command (ex. GET index.html): ') cmd = cmd.split() if cmd[0] == 'exit': break conn.request(cmd[0],cmd[1]) rsp = conn.getresponse() print(rsp.status, rsp.reason)

Get Errno from Python Requests ConnectionError?

走远了吗. 提交于 2019-12-03 07:36:32
问题 I'm catching and printing Python Requests ConnectionErrors fine with just this: except requests.exceptions.ConnectionError as e: logger.warning(str(e.message)) It prints out messages such as: HTTPSConnectionPool(host='10.100.24.16', port=443): Max retries exceeded with url: /api/datastores/06651841-bbdb-472a-bde2-689d8cb8da19 (Caused by <class 'socket.error'>: [Errno 61] Connection refused) and HTTPSConnectionPool(host='10.100.24.16', port=443): Max retries exceeded with url: /api/datastores

Write to /tmp directory in aws lambda with python

点点圈 提交于 2019-12-03 03:15:50
Goal I'm trying to write a zip file to the /tmp folder in a python aws lambda, so I can extract manipulate before zipping, and placing it in s3 bucket. Problem Os Errno30 Read Only FileSystem This code was tested locally on my computer to make sure the file would write to my working directory before I uploaded it to aws. This is the code i'm trying to use. file = downloadFile() #This is api call that returns binary zip object newFile = open('/tmp/myZip.zip','wb') newFile.write(file) extractAll('/tmp/myZip.zip') here is the code that is trying to extract the zip file def extractAll(self,source)

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed on Mac

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Using Homebrew, on Mac OSX 10.7.5 $ brew install openssl Error: openssl-1.0.1e already installed $ rake test.rake rake aborted! SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I acknowledge that there are other questions like the one in title, but none of the solution seems to work. I have tried those at various points, with no success: rvm pkg install openssl rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr rvm remove 1.9.3 brew install openssl rvm install 1.9.3 --with-openssl-dir=`brew -

OSError: [Errno 36] File name too long:

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to convert a web page to XML (using Python 3.4.3 ). If I write the contents of the URL to a file then I can read and parse it perfectly but if I try to read directly from the web page I get the following error in my terminal: File "./AnimeXML.py", line 22, in xml = ElementTree.parse (xmlData) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/xml/etree/ElementTree.py", line 1187, in parse tree.parse(source, parser) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/xml/etree/ElementTree.py", line

PyMongo raises [errno 49] can&#039;t assign requested address after a large number of queries

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a MongoDB collection with > 1,000,000 documents. I am performing an initial .find({ my_query }) to return a subset of those documents (~25,000 documents), which I then put into a list object. I am then looping over each of the objects, parsing some values from the returned document in the list, and performing an additional query using those parsed values via the code: def _perform_queries(query): conn = pymongo.MongoClient('mongodb://localhost:27017') try: coll = conn.databases['race_results'] races = coll.find(query).sort("date", -1)

can&#039;t map file, errno=22 for architecture x86_64

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having a compilation issue Ld /Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Products/Debug/RemoteDesktop.app/Contents/MacOS/RemoteDesktop normal x86_64 cd /Users/ppdeveloper/Desktop/app/RemoteDesktop setenv MACOSX_DEPLOYMENT_TARGET 10.5 /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/ppdeveloper/Library

OpenSSL errno 10054,connection refused, whilst trying to connect to our server

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are running a git server over https and didn't have any trouble connecting because we all used visual studio to do so. Now someone wants to use the standard git bash and it fails to connect with the following error output. fatal: unable to access 'https://server/Repo.git/': Unknown SSL protocol error in connection to server:443 I tried some different ciphersuites, nothing worked. Then it came to me that it might be that git doesn't support ECDSA certificates yet. So I exchanged the ECDSA certificate for one with RSA. That also didn't work

Getting “IOError: [Errno 13] Permission denied:..” when importing pandas.DataFrame

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/python_dateutil-2.2-py2.7.egg/EGG-INFO/top_level.txt' when I am trying to import pandas. I don't see why. Importing pandas in the python3 console works just fine. Execution of the code is done with Python3 too start_simulation.py from Market import Market from TestingAlgorithm import TestingAlgorithm from LiteForexHandler import LiteForexHandler from Broker import Broker from Portfolio import Portfolio market = Market('./simulations/', 'test',

SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A - Faraday::Error::ConnectionFailed

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've seen many answers here, but none of them has worked. I'm using omniauth-oauth2 gem to integrate with a third-party customer. I'm using the setup phase described here but I'm always getting this error: Authentication failure! failed_to_connect: Faraday::Error::ConnectionFailed, SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A Faraday::Error::ConnectionFailed (SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A): .rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `connect' .rvm