Skip to content

Neo4j can't connect  #18178

@dsubhasis

Description

@dsubhasis

Apache Airflow Provider(s)

neo4j

Versions of Apache Airflow Providers

apache-airflow-providers-celery==1.0.1
apache-airflow-providers-cncf-kubernetes==1.0.2
apache-airflow-providers-ftp==2.0.0
apache-airflow-providers-google==5.0.0
apache-airflow-providers-http==2.0.0
apache-airflow-providers-imap==2.0.0
apache-airflow-providers-jdbc==2.0.1
apache-airflow-providers-neo4j==2.0.0
apache-airflow-providers-postgres==2.0.0
apache-airflow-providers-sqlite==2.0.0

Apache Airflow version

2.1.3 (latest released)

Operating System

Ubuntu 18

Deployment

Other

Deployment details

Standard Linux installation with python 3.6

What happened

Neo4j access problem

Traceback (most recent call last):
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1164, in _run_raw_task
self._prepare_and_execute_task_with_callbacks(context, task)
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1282, in _prepare_and_execute_task_with_callbacks
result = self._execute_task(context, task_copy)
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1312, in _execute_task
result = task_copy.execute(context=context)
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/providers/neo4j/operators/neo4j.py", line 60, in execute
self.hook.run(self.sql)
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/providers/neo4j/hooks/neo4j.py", line 113, in run
driver = self.get_conn()
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/airflow/providers/neo4j/hooks/neo4j.py", line 67, in get_conn
self.uri, auth=(self.connection.login, self.connection.password), encrypted=is_encrypted
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/neo4j/init.py", line 183, in driver
return cls.bolt_driver(parsed.netloc, auth=auth, **config)
File "/home/sudasgupta/tools/airflow/env/lib/python3.6/site-packages/neo4j/init.py", line 193, in bolt_driver
from neo4j._exceptions import BoltHandshakeError, BoltSecurityError
ModuleNotFoundError: No module named 'neo4j._exceptions'; 'neo4j' is not a package

What you expected to happen

Linux Driver problem

How to reproduce

Just by running the DAG

Anything else

No

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions