gry77 opened a new issue #8868: [Question] No module named 'cx_Oracle' with 
docker run
URL: https://github.com/apache/incubator-superset/issues/8868
 
 
   I have included cx_Oracle in setup.py in extras_require section as below and 
rerun "docker-compose up"
   ````
   extras_require={
           "bigquery": ["pybigquery>=0.4.10", "pandas_gbq>=0.10.0"],
           "cors": ["flask-cors>=2.0.0"],
           "gsheets": ["gsheetsdb>=0.1.9"],
           "hive": ["pyhive[hive]>=0.6.1", "tableschema", "thrift>=0.11.0, 
<1.0.0"],
           "mysql": ["mysqlclient==1.4.2.post1"],
           "postgres": ["psycopg2-binary==2.7.5"],
           "presto": ["pyhive[presto]>=0.4.0"],
           "elasticsearch": ["elasticsearch-dbapi>=0.1.0, <0.2.0"],
           "druid": ["pydruid==0.5.7", "requests==2.22.0"],
           "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"],
           **"cx_Oracle": ["cx-Oracle==7.3.0"]**
       },
   ````
   
   However when I try to add database from UI, below error is popping up : 
   
   > ERROR: {"error": "Connection failed!\n\nThe error message returned 
was:\nNo module named 'cx_Oracle'", "stacktrace": "Traceback (most recent call 
last):\n  File \"/app/superset/views/core.py\", line 1769, in testconn\n    
engine = database.get_sqla_engine(user_name=username)\n  File 
\"/app/superset/utils/core.py\", line 130, in __call__\n    value = 
self.func(*args, **kwargs)\n  File \"/app/superset/models/core.py\", line 971, 
in get_sqla_engine\n    return create_engine(sqlalchemy_url, **params)\n  File 
\"/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/__init__.py\", line 
435, in create_engine\n    return strategy.create(*args, **kwargs)\n  File 
\"/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py\", 
line 87, in create\n    dbapi = dialect_cls.dbapi(**dbapi_args)\n  File 
\"/usr/local/lib/python3.6/site-packages/sqlalchemy/dialects/oracle/cx_oracle.py\",
 line 827, in dbapi\n    import cx_Oracle\nModuleNotFoundError: No module named 
'cx_Oracle'\n"}
   
   Did I do anything wrong ?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to