AlvaroFFF opened a new issue #15818:
URL: https://github.com/apache/superset/issues/15818


   Hi all,
   
   When trying to install Apache Superset on a clear Ubuntu 20.04 virtual 
machine I simply follow these steps: 
   
   1. sudo apt-get install build-essential libssl-dev libffi-dev python3-dev 
python3-pip libsasl2-dev libldap2-dev
   2. pip install virtualenv
   3. python3 -m venv superset -> Fails and suggests me to execute "apt install 
python3.8-venv"
   4. sudo apt install python3.8-venv
   5. python3 -m venv superset
   6. . superset/bin/activate
   7. pip install apache-superset
   
   Installation ends with errors:
   
   Building wheels for collected packages: apache-superset, cron-descriptor, 
holidays, pgsanity, python-geohash, sqlalchemy-utils, wtforms-json, 
Flask-JWT-Extended, Flask-Login, Flask-OpenID, pymeeus
     Building wheel for apache-superset (setup.py) ... error
     ERROR: Command errored out with exit status 1:
      command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, 
tokenize; sys.argv[0] = 
'"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"'; 
__file__='"'"'/tmp/pip-install-9cjmkhn2/apache-superset/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
bdist_wheel -d /tmp/pip-wheel-6if0c298
          cwd: /tmp/pip-install-9cjmkhn2/apache-superset/
     Complete output (10 lines):
     -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
     VERSION: 1.2.0
     GIT SHA:
     -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
     usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
        or: setup.py --help [cmd1 cmd2 ...]
        or: setup.py --help-commands
        or: setup.py cmd --help
     
     error: invalid command 'bdist_wheel'
     ----------------------------------------
     ERROR: Failed building wheel for apache-superset
     Running setup.py clean for apache-superset
     Building wheel for cron-descriptor (setup.py) ... error
     ERROR: Command errored out with exit status 1:
      command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, 
tokenize; sys.argv[0] = 
'"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"'; 
__file__='"'"'/tmp/pip-install-9cjmkhn2/cron-descriptor/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
bdist_wheel -d /tmp/pip-wheel-pssje3qe
          cwd: /tmp/pip-install-9cjmkhn2/cron-descriptor/
     Complete output (6 lines):
     usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
        or: setup.py --help [cmd1 cmd2 ...]
        or: setup.py --help-commands
        or: setup.py cmd --help
     
     error: invalid command 'bdist_wheel'
     ----------------------------------------
     ERROR: Failed building wheel for cron-descriptor
     Running setup.py clean for cron-descriptor
     Building wheel for holidays (setup.py) ... error
     ERROR: Command errored out with exit status 1:
      command: /home/alvaro/superset/bin/python3 -u -c 'import sys, setuptools, 
tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"'; 
__file__='"'"'/tmp/pip-install-9cjmkhn2/holidays/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
bdist_wheel -d /tmp/pip-wheel-cuyj6ksy
          cwd: /tmp/pip-install-9cjmkhn2/holidays/
     Complete output (6 lines):
     usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
        or: setup.py --help [cmd1 cmd2 ...]
        or: setup.py --help-commands
        or: setup.py cmd --help
     
     error: invalid command 'bdist_wheel'
     ----------------------------------------
   
   (Error follows)
   
   And if I try to run "superset db upgrade" returns error as well:
   
   (superset) alvaro@alvaro-VirtualBox:~$ superset db upgrade
   Traceback (most recent call last):
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 583, in _build_master
       ws.require(__requires__)
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 900, in require
       needed = self.resolve(parse_requirements(requirements))
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 791, in resolve
       raise VersionConflict(dist, req).with_context(dependent_req)
   pkg_resources.ContextualVersionConflict: (itsdangerous 2.0.1 
(/home/alvaro/superset/lib/python3.8/site-packages), 
Requirement.parse('itsdangerous<2.0,>=0.24'), {'flask'})
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/home/alvaro/superset/bin/superset", line 6, in <module>
       from pkg_resources import load_entry_point
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 3252, in <module>
       def _initialize_master_working_set():
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 3235, in _call_aside
       f(*args, **kwargs)
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 3264, in _initialize_master_working_set
       working_set = WorkingSet._build_master()
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 585, in _build_master
       return cls._build_from_requirements(__requires__)
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 598, in _build_from_requirements
       dists = ws.resolve(reqs, Environment())
     File 
"/home/alvaro/superset/lib/python3.8/site-packages/pkg_resources/__init__.py", 
line 786, in resolve
       raise DistributionNotFound(req, requirers)
   pkg_resources.DistributionNotFound: The 'itsdangerous<2.0,>=0.24' 
distribution was not found and is required by flask
   
   I have tried several solutions but none of them worked for me. I have 
repeated the process in various clean Ubuntu 20.04 virtual machines but is not 
possible for me to install Superset.
   
   I attach both errors expecting it helps.
   
   [db_init.log](https://github.com/apache/superset/files/6855320/db_init.log)
   [install.log](https://github.com/apache/superset/files/6855321/install.log)
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: command not working
   - python version: 3.8.10
   - node.js version: v10.19.0
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [X] I have reproduced the issue with at least the latest released version 
of superset.
   - [X] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   
   


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

To unsubscribe, e-mail: [email protected]

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