@Jim-W reposting response from this thread:
pyOnionGpio was written as a quick and dirty wrapper for the sysfs gpio interface. I wouldn't recommend using it for anything other than a hello world.
There are other (likely better) sysfs gpio libraries available for Python3:
Let us know how it goes!
@crispyoz That makes sense. I intend to get to that. But as a newcomer to the Omega2, that's a significant requirement in getting started. Seems to me that an update of the packages should be a task regularly performed by Onion. First impressions count.
@ChMsT420 @Lazar-Demin The only issue with using rc.local is that it runs last so if you have a daemon or loadable module that is dependent on the pin mode, rc.local might be too late.
Another alternative is to use a hotplug script that is triggered earlier in the boot process. Take a look in /etc/hotplug.d for some examples of these scripts, also hotplug is quite well documented.