-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Bug Report
Description
when i ran the program it errored
Steps to Reproduce
Code:
from whatpack.headless.whats import WhatsApp
app = WhatsApp()
app.send_message("NUMBER", "Hello, world")
Expected Behavior
Send a message to my phone
Actual Behavior
Errored
Error Messages
Traceback (most recent call last):
File "/home/WRMPI/Code/autowhatsappmsg.py", line 3, in
app = WhatsApp()
^^^^^^^^^^
File "/home/WRMPI/.local/lib/python3.11/site-packages/whatpack/headless/whats.py", line 19, in init
chrome_options.binary_location = os.environ.get("GOOGLE_CHROME_BIN")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/WRMPI/.local/lib/python3.11/site-packages/selenium/webdriver/chromium/options.py", line 52, in binary_location
raise TypeError(self.BINARY_LOCATION_ERROR)
TypeError: Binary Location Must be a String
Exception ignored in: <function WhatsApp.del at 0x7fbbbbdda0>
Traceback (most recent call last):
File "/home/WRMPI/.local/lib/python3.11/site-packages/whatpack/headless/whats.py", line 188, in del
driver = self.driver
^^^^^^^^^^^
AttributeError: 'WhatsApp' object has no attribute 'driver'
Priority Level
Medium
Environment
Please provide the following information:
- Python version: 3.11
- Library versions: latest
- Operating system: RaspberryPiOS
- Any other relevant details: