Error while initialising the apache airflow #25043
Unanswered
manojrustagi79
asked this question in
General
Replies: 3 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
0 replies
-
You likely did not follow the https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html - make sure you install airflow with constraints. You likely have old version of some dependencies. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please next time start dicussion, not bug/issue. This is not a bug with Airlfow, this is troubleshooting of your problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apache Airflow version
2.3.3 (latest released)
What happened
I am getting following error:
OS:ubuntu
DB: sqlite:////home/manojkumar79/airflow/airflow.db
[2022-07-14 06:58:33,435] {db.py:1462} INFO - Creating tables
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 849da589634d -> 2c6edca13270, Resource based permissions.
Traceback (most recent call last):
File "/home/manojkumar79/miniconda3/envs/py39/bin/airflow", line 8, in
sys.exit(main())
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/main.py", line 38, in main
args.func(args)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/cli/cli_parser.py", line 51, in command
return func(*args, **kwargs)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/cli/commands/db_command.py", line 35, in initdb
db.initdb()
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/utils/session.py", line 71, in wrapper
return func(*args, session=session, **kwargs)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/utils/db.py", line 649, in initdb
upgradedb(session=session)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/utils/session.py", line 68, in wrapper
return func(*args, **kwargs)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/utils/db.py", line 1463, in upgradedb
command.upgrade(config, revision=to_revision or 'heads')
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/command.py", line 322, in upgrade
script.run_env()
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/script/base.py", line 569, in run_env
util.load_python_file(self.dir, "env.py")
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file
module = load_module_py(module_id, path)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py
spec.loader.exec_module(module) # type: ignore
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/migrations/env.py", line 107, in
run_migrations_online()
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/migrations/env.py", line 101, in run_migrations_online
context.run_migrations()
File "", line 8, in run_migrations
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/runtime/environment.py", line 853, in run_migrations
self.get_context().run_migrations(**kw)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/alembic/runtime/migration.py", line 623, in run_migrations
step.migration_fn(**kw)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/migrations/versions/0074_2_0_0_resource_based_permissions.py", line 342, in upgrade
remap_permissions()
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/migrations/versions/0074_2_0_0_resource_based_permissions.py", line 290, in remap_permissions
appbuilder = create_app(config={'FAB_UPDATE_PERMS': False}).appbuilder
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/airflow/www/app.py", line 128, in create_app
Cache(app=flask_app, config=cache_config)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/init.py", line 86, in init
self.init_app(app, config)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/init.py", line 141, in init_app
self._set_cache(app, config)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/init.py", line 172, in _set_cache
app.extensions["cache"][self] = cache_factory(
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/backends/init.py", line 47, in filesystem
return FileSystemCache.factory(app, config, args, kwargs)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/backends/filesystemcache.py", line 79, in factory
return cls(*args, **kwargs)
File "/home/manojkumar79/miniconda3/envs/py39/lib/python3.9/site-packages/flask_caching/backends/filesystemcache.py", line 59, in init
CachelibFileSystemCache.init(
TypeError: init() got an unexpected keyword argument 'hash_method'
What you think should happen instead
No response
How to reproduce
No response
Operating System
UBUNTU
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
I have create an python 3.9 environment and trying to install apache airflow.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions