You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/11/11 11:59:56 UTC

[GitHub] [superset] Rohit-pawar902 opened a new issue, #22099: chromedriver' executable needs to be in PATH

Rohit-pawar902 opened a new issue, #22099:
URL: https://github.com/apache/superset/issues/22099

   **Facing problem in report sending through mail**
   
   ```
   [2022-11-11 11:53:00,175: ERROR/ForkPoolWorker-8] A downstream exception occurred while generating a report: 352d7d4c-54aa-45ac-8fbe-010079f2036b
   superset_worker          | Traceback (most recent call last):
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start
   superset_worker          |     self.process = subprocess.Popen(cmd, env=self.env,
   superset_worker          |   File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
   superset_worker          |     self._execute_child(args, executable, preexec_fn, close_fds,
   superset_worker          |   File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
   superset_worker          |     raise child_exception_type(errno_num, err_msg, err_filename)
   superset_worker          | FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
   superset_worker          | 
   superset_worker          | During handling of the above exception, another exception occurred:
   superset_worker          | 
   superset_worker          | Traceback (most recent call last):
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 217, in _get_screenshots
   superset_worker          |     image = screenshot.get_screenshot(user=user)
   superset_worker          |   File "/app/superset/utils/screenshots.py", line 76, in get_screenshot
   superset_worker          |     self.screenshot = driver.get_screenshot(self.url, self.element, user)
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 111, in get_screenshot
   superset_worker          |     driver = self.auth(user)
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 89, in auth
   superset_worker          |     driver = self.create()
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 86, in create
   superset_worker          |     return driver_class(**kwargs)
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
   superset_worker          |     self.service.start()
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start
   superset_worker          |     raise WebDriverException(
   superset_worker          | selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home```
   
   selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
   
   **What i Did**
   I just run an docker-compose file and 
   added these configurations
   ```
   FEATURE_FLAGS = {
       "DYNAMIC_PLUGINS": True,
       "ENABLE_TEMPLATE_PROCESSING": True,
       "VERSIONED_EXPORT": True,
       "ALERT_REPORTS": True
   }
   
   SCREENSHOT_LOCATE_WAIT = 1000
   SCREENSHOT_LOAD_WAIT = 1600
   
   # # Slack configuration
   # SLACK_API_TOKEN = "xoxb-"
   
   # Email configuration
   #THUMBNAIL_SELENIUM_USER = 'admin@mydomain.com'
   ENABLE_SCHEDULED_EMAIL_REPORTS = True
   SMTP_HOST = "smtp.gmail.com"
   SMTP_USER = "Rohit Pawar"
   SMTP_PASSWORD = "@Divi28112000"
   SMTP_PORT = "465"
   SMTP_SSL = False
   SMTP_STARTTLS = False
   SMTP_MAIL_FROM = "rohitpawar28112000@gmail.com"
   
   # WebDriver configuration
   # If you use Firefox, you can stick with default values
   # If you use Chrome, then add the following WEBDRIVER_TYPE and WEBDRIVER_OPTION_ARGS
   WEBDRIVER_TYPE = "chrome"
   WEBDRIVER_OPTION_ARGS = [
       "--force-device-scale-factor=2.0",
       "--high-dpi-support=2.0",
       "--headless",
       "--disable-gpu",
       "--disable-dev-shm-usage",
       "--no-sandbox",
       "--disable-setuid-sandbox",
       "--disable-extensions",
   ]```
   
   
   
   Should i have to download the chrome-Driver in container , i think not so **how can i give path to executable driver of crome**
    selenium.common.exceptions.WebDriverException: **Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home**```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1312683925

   apache/superset:${TAG:-latest-dev}
   devloper one image i am using
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1313474603

   superset_config.py
   ```
   # Licensed to the Apache Software Foundation (ASF) under one
   # or more contributor license agreements.  See the NOTICE file
   # distributed with this work for additional information
   # regarding copyright ownership.  The ASF licenses this file
   # to you under the Apache License, Version 2.0 (the
   # "License"); you may not use this file except in compliance
   # with the License.  You may obtain a copy of the License at
   #
   #   http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing,
   # software distributed under the License is distributed on an
   # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   # KIND, either express or implied.  See the License for the
   # specific language governing permissions and limitations
   # under the License.
   #
   # This file is included in the final Docker image and SHOULD be overridden when
   # deploying the image to prod. Settings configured here are intended for use in local
   # development environments. Also note that superset_config_docker.py is imported
   # as a final step as a means to override "defaults" configured here
   #
   import logging
   import os
   from datetime import timedelta
   from typing import Optional
   
   from cachelib.file import FileSystemCache
   from celery.schedules import crontab
   
   logger = logging.getLogger()
   
   
   def get_env_variable(var_name: str, default: Optional[str] = None) -> str:
       """Get the environment variable or raise exception."""
       try:
           return os.environ[var_name]
       except KeyError:
           if default is not None:
               return default
           else:
               error_msg = "The environment variable {} was missing, abort...".format(
                   var_name
               )
               raise EnvironmentError(error_msg)
   
   
   DATABASE_DIALECT = get_env_variable("DATABASE_DIALECT")
   DATABASE_USER = get_env_variable("DATABASE_USER")
   DATABASE_PASSWORD = get_env_variable("DATABASE_PASSWORD")
   DATABASE_HOST = get_env_variable("DATABASE_HOST")
   DATABASE_PORT = get_env_variable("DATABASE_PORT")
   DATABASE_DB = get_env_variable("DATABASE_DB")
   
   # The SQLAlchemy connection string.
   SQLALCHEMY_DATABASE_URI = "%s://%s:%s@%s:%s/%s" % (
       DATABASE_DIALECT,
       DATABASE_USER,
       DATABASE_PASSWORD,
       DATABASE_HOST,
       DATABASE_PORT,
       DATABASE_DB,
   )
   
   REDIS_HOST = get_env_variable("REDIS_HOST")
   REDIS_PORT = get_env_variable("REDIS_PORT")
   REDIS_CELERY_DB = get_env_variable("REDIS_CELERY_DB", "0")
   REDIS_RESULTS_DB = get_env_variable("REDIS_RESULTS_DB", "1")
   
   RESULTS_BACKEND = FileSystemCache("/app/superset_home/sqllab")
   
   CACHE_CONFIG = {
       "CACHE_TYPE": "redis",
       "CACHE_DEFAULT_TIMEOUT": 300,
       "CACHE_KEY_PREFIX": "superset_",
       "CACHE_REDIS_HOST": REDIS_HOST,
       "CACHE_REDIS_PORT": REDIS_PORT,
       "CACHE_REDIS_DB": REDIS_RESULTS_DB,
   }
   DATA_CACHE_CONFIG = CACHE_CONFIG
   
   
   class CeleryConfig(object):
       BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
       CELERY_IMPORTS = ("superset.sql_lab",)
       CELERY_RESULT_BACKEND = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
       CELERYD_LOG_LEVEL = "DEBUG"
       CELERYD_PREFETCH_MULTIPLIER = 1
       CELERY_ACKS_LATE = False
       CELERYBEAT_SCHEDULE = {
           "reports.scheduler": {
               "task": "reports.scheduler",
               "schedule": crontab(minute="*", hour="*"),
           },
           "reports.prune_log": {
               "task": "reports.prune_log",
               "schedule": crontab(minute=10, hour=0),
           },
       }
   
   
   CELERY_CONFIG = CeleryConfig
   #---------------------------------------MYEDITS-------------------------------------
   FEATURE_FLAGS = {
       "DYNAMIC_PLUGINS": True,
       "ENABLE_TEMPLATE_PROCESSING": True,
       "VERSIONED_EXPORT": True,
       "ALERT_REPORTS": True
   }
   ALERT_REPORTS_NOTIFICATION_DRY_RUN = True
   SCREENSHOT_LOCATE_WAIT = 1000
   SCREENSHOT_LOAD_WAIT = 1600
   
   # # Slack configuration
   # SLACK_API_TOKEN = "xoxb-"
   
   # Email configuration
   #THUMBNAIL_SELENIUM_USER = 'admin@mydomain.com'
   EMAIL_NOTIFICATIONS = True
   ENABLE_SCHEDULED_EMAIL_REPORTS = True
   SMTP_HOST = "smtp.gmail.com"
   SMTP_USER = "Rohit Pawar"
   SMTP_PASSWORD = "@Rdivi28112000"
   SMTP_PORT = 465
   #SMTP_PORT = 587
   SMTP_SSL = False
   SMTP_STARTTLS = False
   SMTP_MAIL_FROM = "rohitpawar28112000@gmail.com"
   
   
   
   #WEBDRIVER_BASEURL = "http://localhost:8088/"
   # The base URL for the email report hyperlinks.
   #WEBDRIVER_BASEURL_USER_FRIENDLY = "http://localhost:8088"
   WEBDRIVER_BASEURL = "http://superset:8088/"
   # The base URL for the email report hyperlinks.
   WEBDRIVER_BASEURL_USER_FRIENDLY = WEBDRIVER_BASEURL
   
   SQLLAB_CTAS_NO_LIMIT = True
   
   #
   # Optionally import superset_config_docker.py (which will have been included on
   # the PYTHONPATH) in order to allow for local settings to be overridden
   #
   try:
       import superset_config_docker
       from superset_config_docker import *  # noqa
   
       logger.info(
           f"Loaded your Docker configuration at " f"[{superset_config_docker.__file__}]"
       )
   except ImportError:
       logger.info("Using default Docker config...")
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1313384963

   thanks now this errror not coming **Argument --marionette can't be set via capabilities**
   
   But now this cause me 
   
   
   ```2022-11-14 09:39:00,049: INFO/MainProcess] Task reports.scheduler[967fc63d-0a3b-4a3a-ba74-37ccd9f93818] received
   [2022-11-14 09:39:00,065: INFO/ForkPoolWorker-7] Scheduling alert oms eta: 2022-11-14 09:39:00
   [2022-11-14 09:39:00,068: INFO/MainProcess] Task reports.execute[891170b6-de47-48a9-bb78-5fd39eaa0617] received
   [2022-11-14 09:39:00,068: INFO/ForkPoolWorker-7] Task reports.scheduler[967fc63d-0a3b-4a3a-ba74-37ccd9f93818] succeeded in 0.019032752003113274s: None
   [2022-11-14 09:39:00,111: INFO/ForkPoolWorker-7] Init selenium driver
   [2022-11-14 09:39:08,374: DEBUG/ForkPoolWorker-7] Sleeping for 3 seconds
   [2022-11-14 09:39:11,378: DEBUG/ForkPoolWorker-7] Wait for the presence of grid-container
   [2022-11-14 09:39:11,392: DEBUG/ForkPoolWorker-7] Wait for .loading to be done
   [2022-11-14 09:39:11,406: DEBUG/ForkPoolWorker-7] Wait for chart to have content
   [2022-11-14 09:39:11,538: DEBUG/ForkPoolWorker-7] Wait 5 seconds for chart animation
   [2022-11-14 09:39:16,542: INFO/ForkPoolWorker-7] Taking a PNG screenshot of url http://superset:8088/superset/dashboard/10/?standalone=3&force=false
   [2022-11-14 09:39:27,404: DEBUG/ForkPoolWorker-7] [stats_logger] (gauge) reports.email.send.error1
   [2022-11-14 09:39:37,646: DEBUG/ForkPoolWorker-7] [stats_logger] (gauge) reports.email.send.error1
   [2022-11-14 09:39:37,665: ERROR/ForkPoolWorker-7] A downstream exception occurred while generating a report: 891170b6-de47-48a9-bb78-5fd39eaa0617
   Traceback (most recent call last):
     File "/app/superset/tasks/scheduler.py", line 79, in execute
       AsyncExecuteReportScheduleCommand(
     File "/app/superset/reports/commands/execute.py", line 659, in run
       raise ex
     File "/app/superset/reports/commands/execute.py", line 655, in run
       ReportScheduleStateMachine(
     File "/app/superset/reports/commands/execute.py", line 624, in run
       state_cls(
     File "/app/superset/reports/commands/execute.py", line 525, in next
       raise first_ex
     File "/app/superset/reports/commands/execute.py", line 503, in next
       self.send()
     File "/app/superset/reports/commands/execute.py", line 409, in send
       self._send(notification_content, self._report_schedule.recipients)
     File "/app/superset/reports/commands/execute.py", line 400, in _send
       raise ReportScheduleNotificationError(";".join(notification_errors))
   superset.reports.commands.exceptions.ReportScheduleNotificationError: Connection unexpectedly closed
   [2022-11-14 09:39:37,667: INFO/ForkPoolWorker-7] Task reports.execute[891170b6-de47-48a9-bb78-5fd39eaa0617] succeeded in 37.598017300999345s: None
   [2022-11-14 09:40:00,058: INFO/MainProcess] Task reports.scheduler[b7d419b9-107b-49bb-aa2b-9b0938763e4c] received
   [2022-11-14 09:40:00,072: INFO/ForkPoolWorker-7] Scheduling alert oms eta: 2022-11-14 09:40:00
   [2022-11-14 09:40:00,075: INFO/MainProcess] Task reports.execute[ea2634f9-bed6-4384-93ed-bb8b12fdbe0b] received
   [2022-11-14 09:40:00,075: INFO/ForkPoolWorker-7] Task reports.scheduler[b7d419b9-107b-49bb-aa2b-9b0938763e4c] succeeded in 0.016144393001013668s: None
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sfirke commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
sfirke commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1311941399

   If you're using `docker-compose`, use `2.0.0-dev` as the Superset image.  Or another -dev image.  It will come bundled with chromedriver etc. while a non-dev image doesn't.
   
   And then just let it use Firefox for the report screenshots, don't add `WEBDRIVER_TYPE` or `OPTION` values to your config file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sfirke commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
sfirke commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1312548565

   What image are you using for Superset in your docker-compose file?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1316455302

   Working configuration you can put it directly in superset_config.py and remove already placed code only this much
   ```class CeleryConfig(object):
       BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
       CELERY_IMPORTS = ("superset.sql_lab",)
       CELERY_RESULT_BACKEND = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
       CELERYD_LOG_LEVEL = "DEBUG"
       # CELERYD_PREFETCH_MULTIPLIER = 1
       # CELERY_ACKS_LATE = False
       CELERYD_PREFETCH_MULTIPLIER = 10
       CELERY_ACKS_LATE = True
       CELERY_ANNOTATIONS = {
           'sql_lab.get_sql_results': {
               'rate_limit': '100/s',
           },
           'email_reports.send': {
               'rate_limit': '1/s',
               'time_limit': 600,
               'soft_time_limit': 600,
               'ignore_result': True,
           },
       }
       CELERYBEAT_SCHEDULE = {
           "email_reports.schedule_hourly": {
               "task": "email_reports.schedule_hourly",
               "schedule": crontab(minute=1, hour="*"),
           },
           "reports.scheduler": {
               "task": "reports.scheduler",
               "schedule": crontab(minute="*", hour="*"),
           },
           "reports.prune_log": {
               "task": "reports.prune_log",
               "schedule": crontab(minute=10, hour=0),
           },
       }
   
   
   CELERY_CONFIG = CeleryConfig
   #---------------------------------------MYEDITS-------------------------------------
   
   
   
   
   
   
   
   
   FEATURE_FLAGS = {
       "DYNAMIC_PLUGINS": True,
       "ENABLE_TEMPLATE_PROCESSING": True,
       "VERSIONED_EXPORT": True,
       "ALERT_REPORTS": True
   }
   ALERT_REPORTS_NOTIFICATION_DRY_RUN = False
   SCREENSHOT_LOCATE_WAIT = 1000
   SCREENSHOT_LOAD_WAIT = 1600
   ENABLE_ALERTS = True
   # # Slack configuration
   # SLACK_API_TOKEN = "xoxb-"
   
   # Email configuration
   #THUMBNAIL_SELENIUM_USER = 'admin@mydomain.com'
   EMAIL_NOTIFICATIONS = True
   ENABLE_SCHEDULED_EMAIL_REPORTS = True
   SMTP_HOST = "smtp.gmail.com"
   SMTP_USER = "@gmail.com"
   SMTP_PASSWORD = "XXX"
   SMTP_STARTTLS = False
   SMTP_SSL = True
   SMTP_PORT = 465
   # SMTP_PORT = 587
   SMTP_MAIL_FROM = "rohitpawar28112000@gmail.com"
   
   
   
   #WEBDRIVER_BASEURL = "http://localhost:8088/"
   # The base URL for the email report hyperlinks.
   WEBDRIVER_BASEURL = "http://superset:8088/"
   # The base URL for the email report hyperlinks.
   # WEBDRIVER_BASEURL_USER_FRIENDLY = WEBDRIVER_BASEURL
   WEBDRIVER_BASEURL_USER_FRIENDLY = "http://localhost:8088"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1312473581

   Yes initially i was using same fire-fox with default config but getting this
   
   ``` [2022-11-12 12:55:01,149: ERROR/ForkPoolWorker-8] A downstream exception occurred while generating a report: 818d7ab6-9bba-41f4-8de2-7f5e37c14d56
   superset_worker          | Traceback (most recent call last):
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 217, in _get_screenshots
   superset_worker          |     image = screenshot.get_screenshot(user=user)
   superset_worker          |   File "/app/superset/utils/screenshots.py", line 76, in get_screenshot
   superset_worker          |     self.screenshot = driver.get_screenshot(self.url, self.element, user)
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 111, in get_screenshot
   superset_worker          |     driver = self.auth(user)
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 89, in auth
   superset_worker          |     driver = self.create()
   superset_worker          |   File "/app/superset/utils/webdriver.py", line 86, in create
   superset_worker          |     return driver_class(**kwargs)
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 170, in __init__
   superset_worker          |     RemoteWebDriver.__init__(
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
   superset_worker          |     self.start_session(capabilities, browser_profile)
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
   superset_worker          |     response = self.execute(Command.NEW_SESSION, parameters)
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
   superset_worker          |     self.error_handler.check_response(response)
   superset_worker          |   File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
   superset_worker          |     raise exception_class(message, screen, stacktrace)
   superset_worker          | selenium.common.exceptions.InvalidArgumentException: Message: Argument --marionette can't be set via capabilities
   superset_worker          | 
   superset_worker          | 
   superset_worker          | The above exception was the direct cause of the following exception:
   superset_worker          | 
   superset_worker          | Traceback (most recent call last):
   superset_worker          |   File "/app/superset/tasks/scheduler.py", line 85, in execute
   superset_worker          |     AsyncExecuteReportScheduleCommand(
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 681, in run
   superset_worker          |     raise ex
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 677, in run
   superset_worker          |     ReportScheduleStateMachine(
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 639, in run
   superset_worker          |     state_cls(
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 540, in next
   superset_worker          |     raise first_ex
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 518, in next
   superset_worker          |     self.send()
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 415, in send
   superset_worker          |     notification_content = self._get_notification_content()
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 335, in _get_notification_content
   superset_worker          |     screenshot_data = self._get_screenshots()
   superset_worker          |   File "/app/superset/reports/commands/execute.py", line 222, in _get_screenshots
   superset_worker          |     raise ReportScheduleScreenshotFailedError(
   superset_worker          | superset.reports.commands.exceptions.ReportScheduleScreenshotFailedError: Failed taking a screenshot Message: Argument --marionette can't be set via capabilities```
   
    **superset.reports.commands.exceptions.ReportScheduleScreenshotFailedError: Failed taking a screenshot Message: Argument --marionette can't be set via capabilities**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Choiyoungmi0122 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by "Choiyoungmi0122 (via GitHub)" <gi...@apache.org>.
Choiyoungmi0122 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1552347999

   <img width="444" alt="image" src="https://github.com/apache/superset/assets/102124630/a6b17ef6-d237-4243-8e73-02db32db48ca">
   
   <img width="426" alt="image" src="https://github.com/apache/superset/assets/102124630/7ac59bc2-e885-48eb-b4c5-526c171566fc">
   
   My computer is M1 Air


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Choiyoungmi0122 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by "Choiyoungmi0122 (via GitHub)" <gi...@apache.org>.
Choiyoungmi0122 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1552347112

   <img width="271" alt="image" src="https://github.com/apache/superset/assets/102124630/d5064c8d-f69d-412f-92ab-f47ca48758dd">
   
   <img width="554" alt="image" src="https://github.com/apache/superset/assets/102124630/94d7309e-8796-4bf0-8a59-f75cb5d6877b">
   
   
   (bigdata)  ✘ youngmi 🐸   ~/anaconda3/envs/bigdata  /Users/choiyoungmi/anaconda3/envs/bigdata/bin/python /Users/choiyoungmi/anaconda3/envs/bigdata/teamproject/0518.py
   Traceback (most recent call last):
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 72, in start
       self.process = subprocess.Popen(cmd, env=self.env,
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/lib/python3.10/subprocess.py", line 971, in __init__
       self._execute_child(args, executable, preexec_fn, close_fds,
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/lib/python3.10/subprocess.py", line 1847, in _execute_child
       raise child_exception_type(errno_num, err_msg, err_filename)
   PermissionError: [Errno 13] Permission denied: '/Users/choiyoungmi/anaconda3/envs/bigdata/teamproject/chromedriver_mac_arm64'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/teamproject/0518.py", line 2, in <module>
       driver = webdriver.Chrome(executable_path = r'/Users/choiyoungmi/anaconda3/envs/bigdata/teamproject/chromedriver_mac_arm64')
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
       self.service.start()
     File "/Users/choiyoungmi/anaconda3/envs/bigdata/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 86, in start
       raise WebDriverException(
   selenium.common.exceptions.WebDriverException: Message: 'chromedriver_mac_arm64' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
   
   This code run to occur this problem .
   Please help me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Choiyoungmi0122 commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by "Choiyoungmi0122 (via GitHub)" <gi...@apache.org>.
Choiyoungmi0122 commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1552348214

   I installed chromedriver_mac_arm62.zip.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sfirke commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
sfirke commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1312730143

   Maybe switch that to apache/superset:2.0.0-dev ? Trying to run the latest
   commit version can fail for all sorts of reasons, most people run a stable
   release in production.
   
   On Sun, Nov 13, 2022, 4:25 AM Rohit pawar ***@***.***> wrote:
   
   > apache/superset:${TAG:-latest-dev}
   > devloper one image i am using
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/superset/issues/22099#issuecomment-1312683925>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/ABZYDEH45VVKAJ5TPOX4P7DWICXYJANCNFSM6AAAAAAR5RB4NY>
   > .
   > You are receiving this because you commented.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Rohit-pawar902 closed issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
Rohit-pawar902 closed issue #22099: chromedriver' executable needs to be in PATH
URL: https://github.com/apache/superset/issues/22099


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] havannavar commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by "havannavar (via GitHub)" <gi...@apache.org>.
havannavar commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1435488854

   @rusackas took latest, added all the changes as mentioned in the document 
   
   https://superset.apache.org/docs/installation/alerts-reports/#detailed-config
   
   Still the email trigger is not working. any further changes need to do, which is not mentioned int he doc,?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] ftdtl commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
ftdtl commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1314644425

   > Maybe switch that to apache/superset:2.0.0-dev ? Trying to run the latest commit version can fail for all sorts of reasons, most people run a stable release in production.
   > […](#)
   > On Sun, Nov 13, 2022, 4:25 AM Rohit pawar ***@***.***> wrote: apache/superset:${TAG:-latest-dev} devloper one image i am using — Reply to this email directly, view it on GitHub <[#22099 (comment)](https://github.com/apache/superset/issues/22099#issuecomment-1312683925)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZYDEH45VVKAJ5TPOX4P7DWICXYJANCNFSM6AAAAAAR5RB4NY> . You are receiving this because you commented.Message ID: ***@***.***>
   
   
   It worked after I changed the image to 2.0.0-dev.  but I would like to use superset in production,  I have tested severial versions with chrome or forefox, but it always 404 error, is there any other stable version I can use ?   thx
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sfirke commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
sfirke commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1314679617

   In my docker-compose file I run 2.0.0-dev image for the worker and
   worker_beat containers and then 2.0.0 image for the superset application
   container. That way I'm running the stable release image for the
   application itself but the matching dev image for the workers so that they
   have the headless browser and drivers needed for reports.
   
   On Mon, Nov 14, 2022, 8:47 PM ftdtl ***@***.***> wrote:
   
   > Maybe switch that to apache/superset:2.0.0-dev ? Trying to run the latest
   > commit version can fail for all sorts of reasons, most people run a stable
   > release in production.
   > … <#m_-5622161347636703289_>
   > On Sun, Nov 13, 2022, 4:25 AM Rohit pawar *@*.*> wrote:
   > apache/superset:${TAG:-latest-dev} devloper one image i am using — Reply to
   > this email directly, view it on GitHub <#22099 (comment)
   > <https://github.com/apache/superset/issues/22099#issuecomment-1312683925>>,
   > or unsubscribe
   > https://github.com/notifications/unsubscribe-auth/ABZYDEH45VVKAJ5TPOX4P7DWICXYJANCNFSM6AAAAAAR5RB4NY
   > <https://github.com/notifications/unsubscribe-auth/ABZYDEH45VVKAJ5TPOX4P7DWICXYJANCNFSM6AAAAAAR5RB4NY>
   > . You are receiving this because you commented.Message ID: @.*>
   >
   > It worked after I changed the image to 2.0.0-dev.  but I would like to use
   > superset in production,  I have tested severial versions with chrome or
   > forefox, but it always 404 error, is there any other stable version I can
   > use ?   thx
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/superset/issues/22099#issuecomment-1314644425>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/ABZYDEDLTGCD544CF4ZZVKTWILTS5ANCNFSM6AAAAAAR5RB4NY>
   > .
   > You are receiving this because you commented.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] eschutho commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by "eschutho (via GitHub)" <gi...@apache.org>.
eschutho commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1472862898

   @havannavar is this the error that you're seeing? `superset.reports.commands.exceptions.ReportScheduleNotificationError` If so, it is fixed in 2.1.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] rusackas commented on issue #22099: chromedriver' executable needs to be in PATH

Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #22099:
URL: https://github.com/apache/superset/issues/22099#issuecomment-1343651888

   Not sure if this relates to [#20843](https://github.com/apache/superset/issues/20843)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org