Cannot set "direct_output=True" after update library

Moderator: RevPiModIO

Post Reply
dekrevpii
Posts: 1
Joined: 07 Feb 2024, 12:47

Cannot set "direct_output=True" after update library

Post by dekrevpii »

I am run python script with two process on the same revpi by setting
rpi = revpimodio2.RevPiModIO(autorefresh=True, direct_output=True)
.But after I update library, python script cannot run because error direct_output=True is not found in new version of revpimodio2. How to set multiprocessing in new version of librery or I must to downgrade library to older version.

I would be grateful for any support/ suggestions.

Thank in advance.
User avatar
RevPiModIO
KUNBUS
Posts: 325
Joined: 20 Jan 2017, 08:44
Contact:

Re: Cannot set "direct_output=True" after update library

Post by RevPiModIO »

The parameter was replaced with version 2.4.5 by "shared_procimg" in 2020. Since then, the DeprecationWarning "direct_output is deprecated - use shared_procimg instead!" was shown, when "direct_output" was used. With the last version, "direct_output" is no longer valid.

Please simply replace "direct_output=True" with "shared_procimg=True" to restore the same behavior.

Greeting
Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
Post Reply