errno

Difference between Linux errno 23 and Linux errno 24

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: What is the difference between these 2 linux errors in errno.h ? 23 and 24 I tried 2 different sites but can't understand difference between the two. [ EMFILE ] Too many open files . [ ENFILE ] Too many files open in system . # define ENFILE 23 /* File table overflow */ # define EMFILE 24 /* Too many open files */ Also, I am getting errno 24 and socket call failing at 974th time. ( AF_INET UDP datagram socket) When I did a cat /proc/sys/fs/file-max I am seeing a value of 334076 ulimit -n showing 1024 Any idea what can be done to

error: [Errno 32] Broken pipe

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on a Django project. All went well till I created an Ajax request to send values from the html page to the backend (views.py). When I send the data using Ajax, I am able to view the values being passed to views.py, and it even reaches the render_to_response method and displays my page, but throws the broken pipe error in the terminal. I don't see any kind of disruption to the program, but I wanted to know if there is a way to prevent this error from occurring. I checked the other responses. But no luck so far. When I try to hit

pyaudio OSError: [Errno - 9999] Unanticipated host error

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use the microphone of my webcam logitech to listen with sr.Microphone(sample_rate=32000) as source: ... This error occurs : File "/home/pi/project2/interface.py", line 226, in listen with sr.Microphone(sample_rate = 32000) as source: File "/usr/local/lib/python3.4/dist-packages/speech_recognition/ init .py", line 140, in enter input=True, # stream is an input stream File "/usr/local/lib/python3.4/dist-packages/PyAudio-0.2.10-py3.4-linux-armv7l.egg/pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "/usr

OSError: [Errno 99] Cannot assign requested address - py

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just copied this code for a client/server example: http://www.bogotobogo.com/python/python_network_programming_server_client.php and when I run the code I get this error: OSError: [Errno 99] Cannot assign requested address Server: # server.py import socket import time # create a socket object serversocket = socket.socket( socket.AF_INET, socket.SOCK_STREAM) # get local machine name host = socket.gethostname() port = 9999 # bind to the port serversocket.bind((host, port)) # queue up to 5 requests serversocket.listen(5) while True: #

mysql errno: 150 “Foreign key constraint is incorrectly formed”- MariaDB

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: MESSAGE_MAP TABLE CREATE TABLE `message_map` ( `message_from` varchar(15) NOT NULL, `message_id` varchar(15) NOT NULL, `message_to` varchar(15) NOT NULL, `message_status` bit(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `message_map` ADD PRIMARY KEY (`message_from`,`message_id`,`message_to`), ADD KEY `FK_ij6tystusydqijqp8lgoigo1c` (`message_id`), USER TABLE CREATE TABLE `user` ( `USER_ID` varchar(15) NOT NULL, `PASSWORD` varchar(15) DEFAULT NULL, `PHONE_NUMBER` varchar(15) DEFAULT NULL, `USER_NAME` varchar(15) DEFAULT

scapy OSError: [Errno 9] Bad file descriptor

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using python 2.7 and scapy-2.2.0 in windows xp. I'm trying dns spoofing and it works well in python. but when I make to .exe and execute it, I got this error Traceback (most recent call last): File "dns_spoof.py", line 17, in <module> File "scapy\arch\windows\__init__.pyc", line 523, in sniff File "dns_spoof.py", line 15, in dns_spoof File "scapy\sendrecv.pyc", line 251, in send File "scapy\sendrecv.pyc", line 237, in __gen_send OSError: [Errno 9] Bad file descriptor How can I fix it? Please help. This is source code. import logging

Python multiprocessing IOError: [Errno 232] The pipe is being closed

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to implement this tutorial on mutliprocessing in python, but when I tried to do my own task I get the following error: Traceback (most recent call last): >>> File "C:\Python27\lib\multiprocessing\queues.py", line 262, in _feed send(obj) IOError: [Errno 232] The pipe is being closed Here is a reproducible example of what I am trying to do which gives the same error message: from multiprocessing import Lock, Process, Queue, current_process import time class Testclass(object): def __init__(self, x): self.x = x def toyfunction

python -m pip install -U pip Errno 11004

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to update pip but I keep getting the following messages: H:\>python -m pip install -U pip Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con nection.VerifiedHTTPSConnection object at 0x031AF3B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages

Errno 10061 : No connection could be made because the target machine actively refused it ( client - server )

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with these client and server codes, I keep getting the [Errno 10061] No connection could be made because the target machine actively refused it I'm running the server on a virtual machine with Windows XP SP3 and the client on Windows 7 64bit, my python version is 2.7.3. What I want to know is how should I edit the code to use the client and server on different networks! Thanks! server : #!/usr/bin/python # This is server.py file import socket # Import socket module s = socket.socket() # Create a socket object host = '0.0.0.0

subprocess.Popen: &#039;OSError: [Errno 13] Permission denied&#039; only on Linux

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Code and logs have changed a lot (due to a major rewrite) since the question was asked. When my code (given below) executes on Windows (both my laptop and AppVeyor CI), it does what it's supposed to do. But on Linux (VM on TravisCI), it throws me a permission denied error. Error: $ sudo python3 test.py Testing espeak4py Testing wait4prev Traceback (most recent call last): File "test.py", line 10, in <module> mySpeaker.say('Hello, World!') File "/home/travis/build/sayak-brm/espeak4py/espeak4py/__init__.py", line 35, in say self.prevproc =