Skip to main content

All Questions

Tagged with
-2 votes
1 answer
46 views

I am getting this error Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'> OSError: [Errno 22] Invalid argument

I cat some logfiles into a python script which I then pipe into head as follows: cat *mongodb.log.* | python jsonFetcher.py -b 20240101000000 -e 20250101000000 | head the output is as follows, I am ...
Dennis's user avatar
  • 100
2 votes
1 answer
52 views

Broken pipe passing Python output to C++ input due to size

I'm trying to transform an image into a matrix of it's rbg values in c++, i really like the simplicity of PIL on handling different images extensions, so i currently have two codes from PIL import ...
Leonardo Dantas's user avatar
0 votes
1 answer
51 views

How to interact with an application on a remote computer via tail?

There is a need to send commands to a remote application via tail. Locally I'm currently using tail, I want to control it remotely, but I can't get it to work. I tried paramiko libraries, I couldn’t ...
Andy_bat's user avatar
1 vote
1 answer
62 views

Piping input into running Python script

Maybe this is the wrong approach, so feel free to redirect. I am trying to asynchronously pipe input into a python script. The idea is that I have a background Python script do some long initial setup ...
BrettOC's user avatar
  • 69
0 votes
0 answers
41 views

Creating a GUI application for creating graphs

I want to create an application with a python user interface for windows. The purpose of the project is to build a graphical and mathematical model of the thermal network circuit and hydraulic ...
Artem Solovev's user avatar
0 votes
1 answer
41 views

multiproccessing broken pipe error when i am trying to send plot data from process

I have made a pyqt5 app to test the microphones. I used pydub and pyaudio modules for this scope. I also plot the microphone data with matplotlib. I have a QDialog, which run an emitter to communicate ...
Chris P's user avatar
  • 2,289
1 vote
1 answer
28 views

python on Linux: os.pipe() with cumulative byte counter?

Is it possible to get a cumulative count of bytes written to an os.pipe()? I tried os.fdopen(...).tell() but got IOError: [Errno 29] Illegal seek. Is there some other way to wrap the fd to get a ...
personal_cloud's user avatar
1 vote
0 answers
115 views

C++ and Python Named Pipe - Access Denied

I am trying to communicate between a phyton script and a c++ winrt uwp application via named pipes. I have a python server that sends a message to the c++ client. However, I am receiving an "...
Alex's user avatar
  • 13
0 votes
2 answers
93 views

Interprocess Communication with multiprocessing.Pipe

I know that this is a frequent question on the forum but I couldn't find answer to my problem. I need two distinct scripts to communicate via multiprocessing.Pipe. I have code1.py: import time #... ...
bugrahaskan's user avatar
2 votes
1 answer
96 views

(Bad file descriptor error) Pipe between a execl() C and a Python in Python program

I tried to exchange a string between Python and C programs using a pipe(), but I got nothing. After that I tried to exchange a string between two C programs using a pipe() and everything was fine. ...
Subado's user avatar
  • 21
0 votes
1 answer
78 views

Not able to fetch large amount of data through recv() pipe in multiprocessing in Python in lambda function

I have implemented multiprocessing in python using pipe() in lambda fucntion. I am not able to receive API response in one variable using recv() function. I tried small amount of data, it is working ...
Sharayu Dhamale's user avatar
1 vote
1 answer
109 views

ValueError: Shape of passed values is (8631, 28), indices imply (8631, 17)

step1: pipeline is created step2: convert pipleine to dataframe step3: I am trying convert pipeline to data frame but exception is raised. how to solve this problem step4: how to solve ValueError: ...
Manoj GH's user avatar
0 votes
1 answer
105 views

Passing bytes from Python to a C++ Subprocess via stdin fails on Windows

I have a python program that runs iterations of a loop. During the loop there is a part of the code that can run in parallel, to do this I decided to use a C++ program that I have pre-compiled and I ...
jrizos's user avatar
  • 1
0 votes
0 answers
33 views

How does python work with outside pipe and sys.stdin [duplicate]

In a Linux sandbox, I tried to run a python3 script from network by piping python3. And the script also reads data from sys.stdin. It was a little bit like : echo 'import sys ; print(f"python ...
rikuri's user avatar
  • 80
1 vote
0 answers
47 views

Named Pipes in Linux with Python read/write miss some lines of text

I am learning how to use named pipes to pass data between processes. To test it out, I wrote two Python scripts, which I called pipewriter.py and pipereader.py, and a named pipe called my_pipe (using ...
Paul Wintz's user avatar
  • 2,708

15 30 50 per page
1
2 3 4 5
75