You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "shashikiran-alloli (via GitHub)" <gi...@apache.org> on 2024/05/08 19:40:08 UTC

[I] Installation error: Maximum recursion depth exceeded [superset]

shashikiran-alloli opened a new issue, #28390:
URL: https://github.com/apache/superset/issues/28390

   ### Bug description
   
   I've followed the steps to install from - https://superset.apache.org/docs/installation/pypi/ and tried to configure the setup from - https://superset.apache.org/docs/configuration/configuring-superset. 
   As suggested I installed gunicorn (WSGI), and tried running - 
   gunicorn   -w 10 \
         -k gevent \
         --worker-connections 1000 \
         --timeout 120 \
         -b  0.0.0.0:6666 \
         --limit-request-line 0 \
         --limit-request-field_size 0 \
         --statsd-host localhost:8125 \
         "superset.app:create_app()"
   
   But that errors with "RecursionError: maximum recursion depth exceeded while calling a Python object" many times before all workers terminate.
   
   ### How to reproduce the bug
   
   1. Follow installation steps from https://superset.apache.org/docs/installation/pypi/
   2. Following configuration from here - https://superset.apache.org/docs/configuration/configuring-superset
   3. While running below code it errs - 
   gunicorn   -w 10 \
         -k gevent \
         --worker-connections 1000 \
         --timeout 120 \
         -b  0.0.0.0:6666 \
         --limit-request-line 0 \
         --limit-request-field_size 0 \
         --statsd-host localhost:8125 \
         "superset.app:create_app()"
   
   ### Screenshots/recordings
   
   ![superset_error1](https://github.com/apache/superset/assets/13248426/58cedfee-2b5e-4ccf-b7f7-b4f1761a8f9a)
   
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.10
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   [superset_log.txt](https://github.com/apache/superset/files/15253982/superset_log.txt)
   
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
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


Re: [I] Installation error: Maximum recursion depth exceeded [superset]

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

   I resolved this error basically problem was with the superset_config.py file. There's a section which I had comment out (one can even remove these lines) - 
   I had picked the config file from here  -> https://github.com/apache/superset/blob/master/superset/config.py
   
   # -------------------------------------------------------------------
   # *                WARNING:  STOP EDITING  HERE                    *
   # -------------------------------------------------------------------
   # Don't add config values below this line since local configs won't be
   # able to override them.
   #if CONFIG_PATH_ENV_VAR in os.environ:
       # Explicitly import config module that is not necessarily in pythonpath; useful
       # for case where app is being executed via pex.
   #    cfg_path = os.environ[CONFIG_PATH_ENV_VAR]
   #    try:
   #        module = sys.modules[__name__]
   #        override_conf = imp.load_source("superset_config", cfg_path)
   #        for key in dir(override_conf):
   #            if key.isupper():
   #                setattr(module, key, getattr(override_conf, key))
   #
   #        click.secho(f"Loaded your LOCAL configuration at [{cfg_path}]", fg="cyan")
   #    except Exception:
   #        logger.exception(
   #            "Failed to import config for %s=%s", CONFIG_PATH_ENV_VAR, cfg_path
   #        )
   #        raise
   #elif importlib.util.find_spec("superset_config") and not is_test():
   #    try:
   #        # pylint: disable=import-error,wildcard-import,unused-wildcard-import
   #        import superset_config
   #        from superset_config import *  # noqa: F403, F401
   #
   #        click.secho(
   #            f"Loaded your LOCAL configuration at [{superset_config.__file__}]",
   #            fg="cyan",
   #        )
   #    except Exception:
   #        logger.exception("Found but failed to import local superset_config")
   #        raise
   


-- 
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


Re: [I] Installation error: Maximum recursion depth exceeded [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #28390:
URL: https://github.com/apache/superset/issues/28390#issuecomment-2101300759

   <!-- Greeting -->
   Hello @shashikiran-alloli! 👋 I'm [Dosu](https://dosu.dev), a bot here to lend a hand with bugs, answer questions, and guide you towards becoming a contributor while you wait for a human maintainer to swing by. Just wanted to let you know I'm diving into your issue and will get back to you with a complete answer shortly. Hang tight!
   
   
   


-- 
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


Re: [I] Installation error: Maximum recursion depth exceeded [superset]

Posted by "shashikiran-alloli (via GitHub)" <gi...@apache.org>.
shashikiran-alloli closed issue #28390: Installation error: Maximum recursion depth exceeded
URL: https://github.com/apache/superset/issues/28390


-- 
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


Re: [I] Installation error: Maximum recursion depth exceeded [superset]

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

   Closing the issue as this is resolved.


-- 
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