worker24h opened a new issue, #31866:
URL: https://github.com/apache/superset/issues/31866

   ### Bug description
   
   ```python
   ######################################################################
   
   
   Init Step 4/4 [Starting] -- Loading examples
   
   
   ######################################################################
   
   2025-01-15 17:55:59,620:DEBUG:superset.utils.logging_configurator:logging 
was configured successfully
   2025-01-15 17:55:59,624:DEBUG:root:Configured event logger of type <class 
'superset.utils.log.DBEventLogger'>
   /usr/local/lib/python3.10/site-packages/flask_limiter/extension.py:333: 
UserWarning: Using the in-memory storage for tracking rate limits as no storage 
was explicitly specified. This is not recommended for production use. See: 
https://flask-limiter.readthedocs.io#configuring-a-storage-backend for 
documentation about configuring the storage backend.
     warnings.warn(
   2025-01-15 17:55:59,703:INFO:superset.utils.screenshots:No PIL installation 
found
   2025-01-15 17:55:59,988:INFO:superset.utils.pdf:No PIL installation found
   2025-01-15 17:56:00,393:INFO:superset.utils.database:Creating database 
reference for examples
   Loading examples metadata and related data into examples
   Creating default CSS templates
   Loading [World Bank's Health Nutrition and Population Stats]
   Traceback (most recent call last):
     File "/usr/local/bin/superset", line 8, in <module>
       sys.exit(superset())
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, 
in __call__
       return self.main(*args, **kwargs)
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, 
in main
       rv = self.invoke(ctx)
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1688, 
in invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, 
in invoke
       return ctx.invoke(self.callback, **ctx.params)
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in 
invoke
       return __callback(*args, **kwargs)
     File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 
33, in new_func
       return f(get_current_context(), *args, **kwargs)
     File "/usr/local/lib/python3.10/site-packages/flask/cli.py", line 358, in 
decorator
       return __ctx.invoke(f, *args, **kwargs)
     File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in 
invoke
       return __callback(*args, **kwargs)
     File "/app/superset/utils/decorators.py", line 266, in wrapped
       return on_error(ex)
     File "/app/superset/utils/decorators.py", line 236, in on_error
       raise ex
     File "/app/superset/utils/decorators.py", line 259, in wrapped
       result = func(*args, **kwargs)
     File "/app/superset/cli/examples.py", line 115, in load_examples
       load_examples_run(load_test_data, load_big_data, only_metadata, force)
     File "/app/superset/cli/examples.py", line 50, in load_examples_run
       examples.load_world_bank_health_n_pop(only_metadata, force)
     File "/app/superset/examples/world_bank.py", line 50, in 
load_world_bank_health_n_pop
       with database.get_sqla_engine() as engine:
     File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__
       return next(self.gen)
     File "/app/superset/models/core.py", line 445, in get_sqla_engine
       yield self._get_sqla_engine(
     File "/app/superset/models/core.py", line 464, in _get_sqla_engine
       self.db_engine_spec.validate_database_uri(sqlalchemy_url)
     File "/app/superset/db_engine_specs/base.py", line 2247, in 
validate_database_uri
       if db_engine_uri_validator := 
current_app.config["DB_SQLA_URI_VALIDATOR"]:
   KeyError: 'DB_SQLA_URI_VALIDATOR'
   Environment set to: dev
   ```
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.1
   
   ### Python version
   
   3.10
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to