JoseHenriqueSiqueira / Whatsapp_Instagram_Messanger_ChatGPT_OpenAI

This repository showcases a ChatBot integrated with WhatsApp, using OpenAI API (such as ChatGPT). With it, you can interact with a highly trained language model to answer your questions and perform specific tasks quickly and efficiently. Don't miss the opportunity to experience cutting-edge AI technology directly on your WhatsApp.
MIT License
133 stars 41 forks source link

Getting error #4

Closed sudo-Mystic closed 1 year ago

sudo-Mystic commented 1 year ago
  File "/home/username/Code/Whatsapp_Instagram_Messanger_ChatGPT_OpenAI/InstagramBot.py", line 8, in <module>
    from subprocess import CREATE_NO_WINDOW
ImportError: cannot import name 'CREATE_NO_WINDOW' from 'subprocess'

i am using Python3.9.16 , Zorin OS 16 (Ubuntu based)

Edit : i found this in documentation https://docs.python.org/3/library/subprocess.html#subprocess.CREATE_NO_WINDOW does that mean it will only work in windows ???

JoseHenriqueSiqueira commented 1 year ago

the "CREATE NO WINDOW" constant is only available for Windows systems. You can remove the lines or comment them out.

"from subprocess import CREATE_NO_WINDOW" line 8
"self.service.creationflags = CREATE_NO_WINDOW" line 16. 

Their purpose was just to prevent selinium from creating a terminal