Skip to main content

Questions tagged [errno]

errno is an integer variable, which is set by system calls and some library functions in the event of an error to indicate what went wrong. Its value is significant only when the return value of the call indicated an error.

errno
-2 votes
0 answers
16 views

The error of file is not found made me crazy and I cannot find the answer

can anyone tell me how can I remove the error? This is my code import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np from PIL import Image dog_image_path = (r&...
Midia Zamani's user avatar
0 votes
2 answers
70 views

How can I force a call to read(2) to return EINVAL?

Context I'm writing code that emulates one aspect of pidfds on platforms that don't support them (old Linux, other Unix). I'm doing this a) in order to test some pidfd-related code on very old ...
Zac B's user avatar
  • 4,058
1 vote
1 answer
60 views

For wrappers around syscalls that retry on EINTR, how many times does retrying make sense?

Often syscalls like write(2), read(2), close(2) et cetera fail due to being interrupted by a signal with the errno value EINTR (say the size of the terminal window changed and SIGWINCH was received), ...
Harith's user avatar
  • 7,235
0 votes
2 answers
93 views

"[Errno 22] Invalid argument" while trying to run a .py file on Windows

I am reaching out due to an issue while trying to run a ".py" file on Windows 11. After entering this on the command prompt: py \C:\Users\ibrah\AppData\Local\Programs\Python\Python3.12\...
IbraProjects's user avatar
2 votes
0 answers
24 views

Node: Why are `os.constants.errno` values positive, while `util.getSystemErrorName` expects negative errnos?

All the values in os.constants.errno are positive, e.g. { E2BIG: 7, EACCES: 13, EADDRINUSE: 48, EADDRNOTAVAIL: 49, EAFNOSUPPORT: 47, EAGAIN: 35, EALREADY: 37, EBADF: 9, EBADMSG: 94, ...
kpozin's user avatar
  • 26.7k
0 votes
0 answers
29 views

Error initializing pyaudio audio recording: [Errno -9998] Invalid number of channels

Hi I am trying to run a code where the following libraries are imported: from RealtimeSTT import AudioToTextRecorder, from queue import Queue, import mediapipe as mp, import threading as tr, import ...
Alessio Buccarella's user avatar
0 votes
1 answer
34 views

Getting nltk certificate verify failed error with Visual Studio Code with Python3

I got this error. As you can see I have import nltk and nltk.download in my code per their guide.: [nltk_data] Error loading words: <urlopen error [SSL: [nltk_data] CERTIFICATE_VERIFY_FAILED] ...
Ares's user avatar
  • 5
0 votes
0 answers
13 views

Working with errno in a cross-platform way in .NET

I am writing a cross-platform .NET library which relies on P/Invoke into system libraries. I need to handle errors which invoked functions report through the errno variable. This variable can be ...
Dark Daskin's user avatar
  • 1,428
0 votes
0 answers
83 views

OSError: [Errno 5] EIO : When using 2 of the same sensors with same address on different I2C channels

I'm using a Cytron Maker Pi RP2040 Micropython The sensors are VL53L1X from Adafruit Sensor0 is connected to (SDA1)-GPIO26, (SCL1)-GPIO27 Sensor1 is connected to (SDA0)-GPIO16, (SCL0)-GPIO17 I found ...
Edward Gonell Rodríguez's user avatar
3 votes
1 answer
75 views

Why does NOT exist std::errno while "errno" does?

In order to make my codes more compliant with C++ style instead of C style, I want to replace errno with std::errno, and replace include <errno.h> with include <cerrno>. To my supprise, ...
Leon's user avatar
  • 1,997
0 votes
0 answers
35 views

Issue pushing python app to Heroku, "python: can't open file '/app/App.py'

I have a simple Python app that works well locally without issue. I have a python app coded in VS Code with javascript, CSS, and HTML. When I try to push to Heroku I keep getting errors no matter what ...
Evan Wright's user avatar
2 votes
2 answers
133 views

Is it required to include <errno.h> to use perror?

I can print the human-readable version of errno using perror like this: #include <errno.h> #include <stdio.h> int main(void) { FILE *fp = fopen("file.txt", "r"); ...
marbens's user avatar
  • 283
1 vote
0 answers
45 views

What is this example of modifiable lvalue found in error.h ISO C99?

I'm reading the ISO C99 Standard and this example of a modifiable lvalue object: *errno() blew me away. Please could you tell me if this possible implementation of errno is ISO C99 compliant? int * ...
Sam's user avatar
  • 59
-1 votes
1 answer
230 views

Multiprocessing and Socket: "OSError: [Errno 98] Address already in use"

I utilized a Raspberry Pi and executed my Python script within the Thonny IDE. The script incorporates the Socket Module for data reception from UWB ESP32 devices, which are programmable with Arduino. ...
Benny's user avatar
  • 1
-1 votes
1 answer
131 views

C poll() returns ECHILD

Just encountered an undocumented error. The call to poll() returned ECHILD. I have a very simple code, almost directly from the man: struct pollfd fds[] = { fd, POLLIN, 0 }; while(should_continue) { ...
White Owl's user avatar
  • 337

15 30 50 per page
1
2 3 4 5
39