ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.06k stars 129 forks source link

Can't import any discord modules at the same time. #343

Closed LAD1 closed 2 years ago

LAD1 commented 3 years ago

If I import any discord modules such as, discord.py,dhooks, discord-components I get a massive error about "Monkey-patching ssl after ssl has already been imported may lead to errors", but whenever I remove the discord imports it goes away, no matter if I only put 1 discord import of any kind in I get the error, no other packages are interfering with this. Any possible fixes? It did work until my file randomly deleted itself which was sketchy, its not in my recycle bin either but ever since that incident discord and steam client dont like eachother.

Qunik commented 3 years ago

At the very beginning of your code write this:

import gevent.monkey
gevent.monkey.patch_all()
rossengeorgiev commented 2 years ago

See #97