Open arthurlutz opened 4 years ago
async and await are now reserved keywords in Python 3.7: https://docs.python.org/3/whatsnew/3.7.html#summary-release-highlights. Afaik asyncio.ensure_future is the new method to use (does not work in early 3.4 but that is EOL anyway).
The PR does not work for me.
https://github.com/jabdoa2/apigpio/blob/patch-1/apigpio/apigpio.py#L475
self._loop.sock_sendall(self.s, data)
is a coroutine, see:
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.sock_sendall
It needs a yield from
.
My gpio_test.py had the content of https://github.com/PierreRust/apigpio/blob/master/samples/gpio_write.py
We moved to a different repository for our fork: https://github.com/missionpinball/apigpio
We also publish it as apigpio-mpf
Will look into your comment to see if it also affects that repo.
@NNTin have a look at our maintained fork: https://github.com/missionpinball/apigpio. We also ship that to pypi: https://pypi.org/project/apigpio-mpf/
From https://github.com/missionpinball/mpf/issues/1427
I then go on to try to import apigpio from python2 and python3 and get :
Seeing
from .apigpio import Pi
I was looking for a Pi.py in/usr/local/lib/python3.7/dist-packages/apigpio/
but couldn't fit it :