proteeti13 opened a new issue #14562:
URL: https://github.com/apache/superset/issues/14562


   I am trying to install apache superset on ubuntu 20.04 following [these 
instructions](https://superset.apache.org/docs/installation/installing-superset-from-scratch)
 (from scratch). While executing the commands 
   `pip install apache-superset` & `superset db upgrade`, It gives me the 
following error:
   
   `bad interpreter: No such file or directory`
   
   So I used `sudo superset db upgrade`, then it is giving me this error:
   ```
   Traceback (most recent call last):
     File "/usr/local/bin/superset", line 5, in <module>
       from superset.cli import superset
     File "/usr/local/lib/python3.8/dist-packages/superset/__init__.py", line 
21, in <module>
       from superset.app import create_app
     File "/usr/local/lib/python3.8/dist-packages/superset/app.py", line 24, in 
<module>
       from flask_appbuilder import expose, IndexView
     File 
"/usr/local/lib/python3.8/dist-packages/flask_appbuilder/__init__.py", line 5, 
in <module>
       from .api import ModelRestApi  # noqa: F401
     File 
"/usr/local/lib/python3.8/dist-packages/flask_appbuilder/api/__init__.py", line 
21, in <module>
       from .convert import Model2SchemaConverter
     File 
"/usr/local/lib/python3.8/dist-packages/flask_appbuilder/api/convert.py", line 
4, in <module>
       from flask_appbuilder.models.sqla.interface import SQLAInterface
     File 
"/usr/local/lib/python3.8/dist-packages/flask_appbuilder/models/sqla/interface.py",
 line 16, in <module>
       from sqlalchemy_utils.types.uuid import UUIDType
     File 
"/usr/local/lib/python3.8/dist-packages/sqlalchemy_utils/__init__.py", line 1, 
in <module>
       from .aggregates import aggregated  # noqa
     File 
"/usr/local/lib/python3.8/dist-packages/sqlalchemy_utils/aggregates.py", line 
372, in <module>
       from .functions.orm import get_column_key
     File 
"/usr/local/lib/python3.8/dist-packages/sqlalchemy_utils/functions/__init__.py",
 line 1, in <module>
       from .database import (  # noqa
     File 
"/usr/local/lib/python3.8/dist-packages/sqlalchemy_utils/functions/database.py",
 line 11, in <module>
       from .orm import quote
     File 
"/usr/local/lib/python3.8/dist-packages/sqlalchemy_utils/functions/orm.py", 
line 14, in <module>
       from sqlalchemy.orm.query import _ColumnEntity
   ImportError: cannot import name '_ColumnEntity' from 'sqlalchemy.orm.query' 
(/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py)
   ```
   
   I searched for solutions and found 
[this](https://stackoverflow.com/questions/66650110/importerror-cannot-import-name-columnentity-ubuntu20-10),
 I installed SQLAlchemy==1.3.23, but the error persists. I am using Ubuntu 
20.04.
   
   #### How to reproduce the bug
   
   1.pip install apache-superset
   2.superset db upgrade
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `bash: /home/proteeti/Documents/R&D 
LAB/superset/superset-env/bin/superset: /home/proteeti/Documents/R&D: bad 
interpreter: No such file or directory`
   - python version: `3.8.5`
   - node.js version: `15.5.1`
   
   


-- 
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]



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

Reply via email to