Issue with cairn superset when upgraded tutor version to palm

I have recently upgraded tutor version from 15 to 16 and while doing so, cairn superset started breaking and throwing the below error. I tried to remove everything and reinstall the plugin but still doesn’t work. Pls help with what could be wrong here.

[2024-01-26 09:19:20 +0000] [7] [INFO] Starting gunicorn 20.1.0
[2024-01-26 09:19:20 +0000] [7] [INFO] Listening at: http://0.0.0.0:8000 (7)
[2024-01-26 09:19:20 +0000] [7] [INFO] Using worker: gthread
[2024-01-26 09:19:20 +0000] [9] [INFO] Booting worker with pid: 9
[2024-01-26 09:19:20 +0000] [10] [INFO] Booting worker with pid: 10
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/werkzeug/utils.py", line 879, in import_string
    module = __import__(module_name, globals(), locals(), [obj_name])
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
Found but failed to import local superset_config
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/werkzeug/utils.py", line 879, in import_string
    module = __import__(module_name, globals(), locals(), [obj_name])
  File "/app/superset/config.py", line 1324, in <module>
    import superset_config
  File "/app/superset_config.py", line 9, in <module>
    from superset.cairn import bootstrap as cairn_bootstrap
ImportError: cannot import name 'bootstrap' from 'superset.cairn' (unknown location)
- missing __init__.py in a package;
- package or module path not included in sys.path;
- duplicated package or module name taking precedence in sys.path;
- missing module, class, function or variable;

Debugged import:

- 'superset' found in '/app/superset/__init__.py'.
- 'superset.config' not found. ```

What command(s) are you running? Hint: it should be tutor local launch.

I have used tutor k8s launch command. This setup is in K8s.

@regis Any inputs on this?

@waseem-blended Please reinstall the Cairn plugin (version 16), enable it, save the configurations, and then rerun the tutor k8s launch command.

1 Like