Skip to content Skip to sidebar Skip to footer

Sending Data (bytesio Buffer) Through A Pipe Works But Causes A Fatal Python Exception

Using Python 2.7 on Windows, the following code works but causes a problem with msvc. import io import matplotlib.pyplot as plt import matplotlib.pyplot as plt2 from multiprocess

Solution 1:

Adding a short sleep command seems to do the trick...

conn.send(plt.imread(buf))
time.sleep(.001)
conn.close

Not elegant but works.

Post a Comment for "Sending Data (bytesio Buffer) Through A Pipe Works But Causes A Fatal Python Exception"