317070 / python-twitch-stream

Python-twitch-stream is a simple lightweight library, which you can use to send your python video to twitch and react with the chat in real time.
MIT License
59 stars 22 forks source link

ModuleNotFoundError: No module named 'fcntl' #18

Closed cibere closed 2 years ago

cibere commented 2 years ago

When I import from twitchstream.chat import TwitchChatStream, I get this error.

317070 commented 2 years ago

What version of python are you on?

A quick Google search indicates that maybe you are trying to run this on Windows instead of Linux or Mac? https://stackoverflow.com/questions/1422368/fcntl-substitute-on-windows

317070 commented 2 years ago

Looking back at the code, there is probably a more modern way in recent python versions to remove this dependency on fcntl.fcntl(s, fcntl.F_SETFL, os.O_NONBLOCK). You might want to try and remove the import line and that line and see if it just works.