Skip to content

Not able to materialize an asset via CLI #48382

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Not able to materialize an asset via CLI

airflow assets materialize --name asset_name -v
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 10, in
sys.exit(main())
File "/opt/airflow/airflow-core/src/airflow/main.py", line 58, in main
args.func(args)
File "/opt/airflow/airflow-core/src/airflow/cli/cli_config.py", line 48, in command
func = import_string(import_path)
File "/opt/airflow/airflow-core/src/airflow/utils/module_loading.py", line 39, in import_string
module = import_module(module_path)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'airflow.cli.commands.asset_command'

What you think should happen instead?

No response

How to reproduce

Have an asset created and run the below CLI command:

airflow assets materialize --name <<asset_name>> -v

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

kind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions