Page 1 of 1

Cannot set "direct_output=True" after update library

Posted: 07 Feb 2024, 13:03
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.

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

Posted: 07 Feb 2024, 14:46
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