Search code examples
pythonpython-trio

I got a trio input function from a friend and it's trying to use trio.lowleve.FdStream, however I can't find it


I'm getting this error: AttributeError: module 'trio.lowlevel' has no attribute 'FdStream'. FdStream isn't in the trio code on git nor in my installation. Is there an alternative to this, or is there a different version I did't find?


Solution

  • That attribute is only available on non-Windows platforms. If your friend made the function compatible with only Linux/macos, you will need to run the function on a Posix platform as well.