Marc Schlaich

Results 60 comments of Marc Schlaich

I'll try the latter. Please note, I'm not sure if setting the output after changing the mode to input is correct here: https://github.com/MichaelS11/go-dht/blob/be44b9ee7fec8f81d57dea89c17d26961183266e/dhtNotWindows.go#L69-L71

Ah never mind, I misread that part :-/ Still new to go and it's error handling... Sorry!

Number of reads in 10 ms ranges from 4000 to 7500 (so ~1.3us to 2.5us per read). Are you sure that the Pi 3 can read in 0.2us (which would...

Please note that C based libraries like https://github.com/adafruit/Adafruit_Python_DHT and https://github.com/d2r2/go-dht work pretty reliable and all of them I checked use the `sched_setscheduler` syscall (https://github.com/adafruit/Adafruit_Python_DHT/blob/master/source/common_dht_read.c#L57 https://github.com/d2r2/go-dht/blob/master/gpio.h#L378).

You could just install Python 2.7 and cffi (via `pip install cffi`) and look at `C:\Python27\Lib\site-packages\_cffi_backend.pyd` and it will report MSVCR90.dll missing (other Python 2.7 extensions are affected, too).

> Python 2.7 ships with it's own `Microsoft.VC90.CRT.manifest` and `msvcr90.dll` file. That's not true in my case. Python 2.7.15 installed the vcredist package (so msvcr90.dll ends in the winsxs folder)....

Libuv already provides a platform agnostic interface to signals and sockets (e.g. http://docs.libuv.org/en/v1.x/signal.html). You shouldn't have to deal with the Windows API at all.

For a cross platform approach you could create the development server manually (see [`app.run`](https://github.com/mitsuhiko/flask/blob/33534bb4a9937e6faba5ecec4586519f453369b6/flask/app.py#L764) and [`werkzeug.serving.run_simple`](https://github.com/mitsuhiko/werkzeug/blob/cbec4d1c4b61f0b5af77d0f8668c93b940b16fee/werkzeug/serving.py#L524)) and apply the pattern from https://docs.python.org/2/library/basehttpserver.html#more-examples with a `multiprocessing.Event`.

@vit1251 Is this issue still present on pyuv 1.3.0? If yes, please provide a test case which is not requiring internet access. I modified your script above connecting to a...