EBoisseauSierra opened a new issue #13851:
URL: https://github.com/apache/superset/issues/13851


   Installing Superset package with the `prophet` option fails.
   
   ### Expected results
   
   Install is successful.
   
   ### Actual results
   
   Install fails.
   
   To reproduce:
   ```shell
   git checkout 9fa52b50e  # apache/superset master's HEAD at 
2021-03-29T17:51:50Z
   python3.8 -m venv venv && source venv/bin/activate
   pip install --upgrade pip
   pip install '.[prophet]'  # note that pip install 'apache-superset[prophet]' 
fails too
   ```
   Stdout exerpt:
   ```
   $ pip install '.[prophet]'
   
   […]
   
   Installing collected packages: multidict, MarkupSafe, idna, yarl, Werkzeug, 
vine, typing-extensions, six, pytz, marshmallow, Jinja2, itsdangerous, 
defusedxml, click, chardet, attrs, async-timeout, WTForms, webargs, sqlalchemy, 
pyyaml, python3-openid, python-editor, python-dateutil, pyrsistent, pyparsing, 
pymeeus, pylev, PyJWT, pycparser, pastel, numpy, Mako, lz4, flask, dnspython, 
crashtest, Babel, appdirs, apispec, amqp, aiohttp, webencodings, urllib3, 
sqlalchemy-utils, pysimdjson, py, prison, pillow, pandas, packaging, 
marshmallow-sqlalchemy, marshmallow-enum, korean-lunar-calendar, kombu, 
kiwisolver, jsonschema, httpstan, geographiclib, flask-wtf, Flask-SQLAlchemy, 
Flask-OpenID, Flask-Login, Flask-JWT-Extended, Flask-Babel, ephem, 
email-validator, decorator, cycler, convertdate, colorama, clikit, cffi, 
brotli, billiard, alembic, wtforms-json, sqlparse, slackclient, simplejson, 
setuptools-git, selenium, retry, redis, python-geohash, python-dotenv, pystan, 
pyarrow, polyline, pgsa
 nity, pathlib2, parsedatetime, msgpack, matplotlib, markdown, LunarCalendar, 
isodate, humanize, holidays, gunicorn, geopy, flask-talisman, flask-migrate, 
flask-compress, flask-caching, flask-appbuilder, Cython, cryptography, 
croniter, cron-descriptor, contextlib2, cmdstanpy, celery, cachelib, bleach, 
backoff, fbprophet, apache-superset
       Running setup.py install for pyrsistent ... done
       Running setup.py install for pymeeus ... done
       Running setup.py install for sqlalchemy-utils ... done
       Running setup.py install for Flask-OpenID ... done
       Running setup.py install for Flask-Login ... done
       Running setup.py install for Flask-JWT-Extended ... done
       Running setup.py install for wtforms-json ... done
       Running setup.py install for python-geohash ... done
       Running setup.py install for pgsanity ... done
       Running setup.py install for holidays ... done
       Running setup.py install for cron-descriptor ... done
       Running setup.py install for fbprophet ... error
       ERROR: Command errored out with exit status 1:
        command: /home/ebosi/documents/superset/venv/bin/python3.8 -u -c 
'import sys, setuptools, tokenize; sys.argv[0] = 
'"'"'/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py'"'"';
 
__file__='"'"'/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install 
--record /tmp/pip-record-mt2ixl9i/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/home/ebosi/documents/superset/venv/include/site/python3.8/fbprophet
            cwd: 
/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/
       Complete output (41 lines):
       running install
       running build
       running build_py
       creating build
       creating build/lib
       creating build/lib/fbprophet
       creating build/lib/fbprophet/stan_model
       Importing plotly failed. Interactive plots will not work.
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File 
"/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py",
 line 120, in <module>
           setup(
         File 
"/home/ebosi/documents/superset/venv/lib64/python3.8/site-packages/setuptools/__init__.py",
 line 145, in setup
           return distutils.core.setup(**attrs)
         File "/usr/lib64/python3.8/distutils/core.py", line 148, in setup
           dist.run_commands()
         File "/usr/lib64/python3.8/distutils/dist.py", line 966, in 
run_commands
           self.run_command(cmd)
         File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
           cmd_obj.run()
         File 
"/home/ebosi/documents/superset/venv/lib64/python3.8/site-packages/setuptools/command/install.py",
 line 61, in run
           return orig.install.run(self)
         File "/usr/lib64/python3.8/distutils/command/install.py", line 556, in 
run
           self.run_command('build')
         File "/usr/lib64/python3.8/distutils/cmd.py", line 313, in run_command
           self.distribution.run_command(command)
         File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
           cmd_obj.run()
         File "/usr/lib64/python3.8/distutils/command/build.py", line 135, in 
run
           self.run_command(cmd_name)
         File "/usr/lib64/python3.8/distutils/cmd.py", line 313, in run_command
           self.distribution.run_command(command)
         File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
           cmd_obj.run()
         File 
"/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py",
 line 48, in run
           build_models(target_dir)
         File 
"/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py",
 line 38, in build_models
           StanBackendEnum.get_backend_class(backend).build_model(target_dir, 
MODEL_DIR)
         File 
"/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/fbprophet/models.py",
 line 206, in build_model
           import pystan
       ModuleNotFoundError: No module named 'pystan'
       ----------------------------------------
   ERROR: Command errored out with exit status 1: 
/home/ebosi/documents/superset/venv/bin/python3.8 -u -c 'import sys, 
setuptools, tokenize; sys.argv[0] = 
'"'"'/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py'"'"';
 
__file__='"'"'/tmp/pip-install-cr1a4cfq/fbprophet_34b51803b54b43848682528efe9a3044/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install 
--record /tmp/pip-record-mt2ixl9i/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/home/ebosi/documents/superset/venv/include/site/python3.8/fbprophet Check the 
logs for full command output.
   ```
   
   ### Environment
   
   - superset version: `9fa52b50e`
   - python version: Python 3.8.7
   - node.js version: v12.21.0
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] 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.

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