Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during docker-compose up -d superset #7

Closed
Tuckie opened this issue Feb 9, 2017 · 1 comment
Closed

Error during docker-compose up -d superset #7

Tuckie opened this issue Feb 9, 2017 · 1 comment

Comments

@Tuckie
Copy link

Tuckie commented Feb 9, 2017

When working through the install, I get the error FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-lg8ohxhc-uninstall/usr/lib/python3.5/site-packages/dateutil/__init__.py'

More info:

docker-compose up -d superset
Building superset
Step 1/12 : FROM amancevice/pandas:0.18.1-python3
 ---> 33d75b90e290
Step 2/12 : ENV SUPERSET_VERSION 0.15.4
 ---> Using cache
 ---> a0dfd18a808d
Step 3/12 : RUN apk add --no-cache         curl         libffi-dev         cyrus-sasl-dev         mariadb-dev         postgresql-dev &&     pip3 install         superset==$SUPERSET_VERSION         mysqlclient==1.3.7         ldap3==2.1.1         psycopg2==2.6.1         redis==2.10.5         sqlalchemy-redshift==0.5.0
 ---> Running in aaf2c3f1ce4a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/21) Upgrading libcrypto1.0 (1.0.2j-r0 -> 1.0.2k-r0)
(2/21) Upgrading libssl1.0 (1.0.2j-r0 -> 1.0.2k-r0)
(3/21) Installing ca-certificates (20161130-r0)
(4/21) Installing libssh2 (1.7.0-r0)
(5/21) Installing libcurl (7.52.1-r0)
(6/21) Installing curl (7.52.1-r0)
(7/21) Installing db (5.3.28-r0)
(8/21) Installing libsasl (2.1.26-r7)
(9/21) Installing cyrus-sasl-dev (2.1.26-r7)
(10/21) Installing libffi-dev (3.2.1-r2)
(11/21) Installing zlib-dev (1.2.8-r2)
(12/21) Installing openssl-dev (1.0.2k-r0)
^[[6~^[[6~(13/21) Installing mariadb-common (10.1.21-r0)
(14/21) Installing mariadb-client-libs (10.1.21-r0)
(15/21) Installing libaio (0.3.110-r0)
(16/21) Installing mariadb-libs (10.1.21-r0)
(17/21) Installing mariadb-dev (10.1.21-r0)
(18/21) Installing libldap (2.4.44-r1)
(19/21) Installing libpq (9.5.4-r0)
(20/21) Installing postgresql-libs (9.5.4-r0)
(21/21) Installing postgresql-dev (9.5.4-r0)
Executing busybox-1.24.2-r11.trigger
Executing ca-certificates-20161130-r0.trigger
OK: 491 MiB in 58 packages
Collecting superset==0.15.4
  Downloading superset-0.15.4.tar.gz (32.4MB)
Collecting mysqlclient==1.3.7
  Downloading mysqlclient-1.3.7.tar.gz (79kB)
Collecting ldap3==2.1.1
  Downloading ldap3-2.1.1-py2.py3-none-any.whl (352kB)
Collecting psycopg2==2.6.1
  Downloading psycopg2-2.6.1.tar.gz (371kB)
Collecting redis==2.10.5
  Downloading redis-2.10.5-py2.py3-none-any.whl (60kB)
Collecting sqlalchemy-redshift==0.5.0
  Downloading sqlalchemy_redshift-0.5.0-py2.py3-none-any.whl
Collecting celery==3.1.23 (from superset==0.15.4)
  Downloading celery-3.1.23-py2.py3-none-any.whl (520kB)
Collecting cryptography==1.5.3 (from superset==0.15.4)
  Downloading cryptography-1.5.3.tar.gz (400kB)
Collecting flask-appbuilder==1.8.1 (from superset==0.15.4)
  Downloading Flask-AppBuilder-1.8.1.tar.gz (1.1MB)
Collecting flask-cache==0.13.1 (from superset==0.15.4)
  Downloading Flask-Cache-0.13.1.tar.gz (45kB)
Collecting flask-migrate==1.5.1 (from superset==0.15.4)
  Downloading Flask-Migrate-1.5.1.tar.gz
Collecting flask-script==2.0.5 (from superset==0.15.4)
  Downloading Flask-Script-2.0.5.tar.gz (42kB)
Collecting flask-testing==0.5.0 (from superset==0.15.4)
  Downloading Flask-Testing-0.5.0.tar.gz (40kB)
Collecting flask-sqlalchemy==2.0 (from superset==0.15.4)
  Downloading Flask-SQLAlchemy-2.0.tar.gz (93kB)
Collecting humanize==0.5.1 (from superset==0.15.4)
  Downloading humanize-0.5.1.tar.gz
Collecting gunicorn==19.6.0 (from superset==0.15.4)
  Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
Collecting markdown==2.6.6 (from superset==0.15.4)
  Downloading Markdown-2.6.6.zip (412kB)
Requirement already satisfied (use --upgrade to upgrade): pandas==0.18.1 in /usr/lib/python3.5/site-packages (from superset==0.15.4)
Collecting parsedatetime==2.0.0 (from superset==0.15.4)
  Downloading parsedatetime-2.0.tar.gz (56kB)
Collecting pydruid==0.3.1 (from superset==0.15.4)
  Downloading pydruid-0.3.1-py2.py3-none-any.whl
Collecting PyHive>=0.2.1 (from superset==0.15.4)
  Downloading PyHive-0.2.1.tar.gz (42kB)
Collecting python-dateutil==2.5.3 (from superset==0.15.4)
  Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
Collecting requests==2.10.0 (from superset==0.15.4)
  Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)
Collecting simplejson==3.8.2 (from superset==0.15.4)
  Downloading simplejson-3.8.2.tar.gz (76kB)
Requirement already satisfied (use --upgrade to upgrade): six==1.10.0 in /usr/lib/python3.5/site-packages (from superset==0.15.4)
Collecting sqlalchemy==1.0.13 (from superset==0.15.4)
  Downloading SQLAlchemy-1.0.13.tar.gz (4.8MB)
Collecting sqlalchemy-utils==0.32.7 (from superset==0.15.4)
  Downloading SQLAlchemy-Utils-0.32.7.tar.gz (116kB)
Collecting sqlparse==0.1.19 (from superset==0.15.4)
  Downloading sqlparse-0.1.19.tar.gz (58kB)
Collecting thrift>=0.9.3 (from superset==0.15.4)
  Downloading thrift-0.10.0.zip (87kB)
Collecting thrift-sasl>=0.2.1 (from superset==0.15.4)
  Downloading thrift_sasl-0.2.1.tar.gz
Collecting werkzeug==0.11.10 (from superset==0.15.4)
  Downloading Werkzeug-0.11.10-py2.py3-none-any.whl (306kB)
Collecting pyasn1>=0.1.8 (from ldap3==2.1.1)
  Downloading pyasn1-0.2.2-py2.py3-none-any.whl (51kB)
Collecting billiard<3.4,>=3.3.0.23 (from celery==3.1.23->superset==0.15.4)
  Downloading billiard-3.3.0.23.tar.gz (151kB)
Requirement already satisfied (use --upgrade to upgrade): pytz>dev in /usr/lib/python3.5/site-packages (from celery==3.1.23->superset==0.15.4)
Collecting kombu<3.1,>=3.0.34 (from celery==3.1.23->superset==0.15.4)
  Downloading kombu-3.0.37-py2.py3-none-any.whl (240kB)
Collecting idna>=2.0 (from cryptography==1.5.3->superset==0.15.4)
  Downloading idna-2.2-py2.py3-none-any.whl (55kB)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/lib/python3.5/site-packages (from cryptography==1.5.3->superset==0.15.4)
Collecting cffi>=1.4.1 (from cryptography==1.5.3->superset==0.15.4)
  Downloading cffi-1.9.1.tar.gz (407kB)
Collecting colorama>=0.3 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting click>=3.0 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading click-6.7-py2.py3-none-any.whl (71kB)
Collecting Flask>=0.10 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Flask-0.12-py2.py3-none-any.whl (82kB)
Collecting Flask-Babel>=0.10.0 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Flask-Babel-0.11.1.tar.gz (40kB)
Collecting Flask-Login==0.2.11 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Flask-Login-0.2.11.tar.gz
Collecting Flask-OpenID>=1.1.0 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Flask-OpenID-1.2.5.tar.gz (43kB)
Collecting Flask-WTF>=0.9.1 (from flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Flask_WTF-0.14.2-py2.py3-none-any.whl
Collecting alembic>=0.6 (from flask-migrate==1.5.1->superset==0.15.4)
  Downloading alembic-0.8.10.tar.gz (976kB)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /usr/lib/python3.5/site-packages (from pandas==0.18.1->superset==0.15.4)
Collecting future (from PyHive>=0.2.1->superset==0.15.4)
  Downloading future-0.16.0.tar.gz (824kB)
Collecting sasl>=0.2.1 (from thrift-sasl>=0.2.1->superset==0.15.4)
  Downloading sasl-0.2.1.tar.gz
Collecting thriftpy (from thrift-sasl>=0.2.1->superset==0.15.4)
  Downloading thriftpy-0.3.9.tar.gz (208kB)
Collecting anyjson>=0.3.3 (from kombu<3.1,>=3.0.34->celery==3.1.23->superset==0.15.4)
  Downloading anyjson-0.3.3.tar.gz
Collecting amqp<2.0,>=1.4.9 (from kombu<3.1,>=3.0.34->celery==3.1.23->superset==0.15.4)
  Downloading amqp-1.4.9-py2.py3-none-any.whl (51kB)
Collecting pycparser (from cffi>=1.4.1->cryptography==1.5.3->superset==0.15.4)
  Downloading pycparser-2.17.tar.gz (231kB)
Collecting Jinja2>=2.4 (from Flask>=0.10->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB)
Collecting itsdangerous>=0.21 (from Flask>=0.10->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading itsdangerous-0.24.tar.gz (46kB)
Collecting Babel>=2.3 (from Flask-Babel>=0.10.0->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading Babel-2.3.4-py2.py3-none-any.whl (7.1MB)
Collecting python3-openid>=2.0 (from Flask-OpenID>=1.1.0->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading python3-openid-3.0.10.zip (365kB)
Collecting WTForms (from Flask-WTF>=0.9.1->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading WTForms-2.1.zip (553kB)
Collecting Mako (from alembic>=0.6->flask-migrate==1.5.1->superset==0.15.4)
  Downloading Mako-1.0.6.tar.gz (575kB)
Collecting python-editor>=0.3 (from alembic>=0.6->flask-migrate==1.5.1->superset==0.15.4)
  Downloading python-editor-1.0.3.tar.gz
Collecting ply<4.0,>=3.4 (from thriftpy->thrift-sasl>=0.2.1->superset==0.15.4)
  Downloading ply-3.10.tar.gz (150kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask>=0.10->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading MarkupSafe-0.23.tar.gz
Collecting defusedxml (from python3-openid>=2.0->Flask-OpenID>=1.1.0->flask-appbuilder==1.8.1->superset==0.15.4)
  Downloading defusedxml-0.5.0-py2.py3-none-any.whl
Installing collected packages: billiard, anyjson, amqp, kombu, celery, idna, pyasn1, pycparser, cffi, cryptography, colorama, click, MarkupSafe, Jinja2, itsdangerous, werkzeug, Flask, Babel, Flask-Babel, Flask-Login, defusedxml, python3-openid, Flask-OpenID, sqlalchemy, flask-sqlalchemy, WTForms, Flask-WTF, flask-appbuilder, flask-cache, Mako, python-editor, alembic, flask-script, flask-migrate, flask-testing, humanize, gunicorn, markdown, parsedatetime, pydruid, future, PyHive, python-dateutil, requests, simplejson, sqlalchemy-utils, sqlparse, thrift, sasl, ply, thriftpy, thrift-sasl, superset, mysqlclient, ldap3, psycopg2, redis, sqlalchemy-redshift
  Running setup.py install for billiard: started
    Running setup.py install for billiard: finished with status 'done'
  Running setup.py install for anyjson: started
    Running setup.py install for anyjson: finished with status 'done'
  Running setup.py install for pycparser: started
    Running setup.py install for pycparser: finished with status 'done'
  Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'done'
  Running setup.py install for cryptography: started
    Running setup.py install for cryptography: finished with status 'done'
  Running setup.py install for MarkupSafe: started
    Running setup.py install for MarkupSafe: finished with status 'done'
  Running setup.py install for itsdangerous: started
    Running setup.py install for itsdangerous: finished with status 'done'
  Running setup.py install for Flask-Babel: started
    Running setup.py install for Flask-Babel: finished with status 'done'
  Running setup.py install for Flask-Login: started
    Running setup.py install for Flask-Login: finished with status 'done'
  Running setup.py install for python3-openid: started
    Running setup.py install for python3-openid: finished with status 'done'
  Running setup.py install for Flask-OpenID: started
    Running setup.py install for Flask-OpenID: finished with status 'done'
  Running setup.py install for sqlalchemy: started
    Running setup.py install for sqlalchemy: finished with status 'done'
  Running setup.py install for flask-sqlalchemy: started
    Running setup.py install for flask-sqlalchemy: finished with status 'done'
  Running setup.py install for WTForms: started
    Running setup.py install for WTForms: finished with status 'done'
  Running setup.py install for flask-appbuilder: started
    Running setup.py install for flask-appbuilder: finished with status 'done'
  Running setup.py install for flask-cache: started
    Running setup.py install for flask-cache: finished with status 'done'
  Running setup.py install for Mako: started
    Running setup.py install for Mako: finished with status 'done'
  Running setup.py install for python-editor: started
    Running setup.py install for python-editor: finished with status 'done'
  Running setup.py install for alembic: started
    Running setup.py install for alembic: finished with status 'done'
  Running setup.py install for flask-script: started
    Running setup.py install for flask-script: finished with status 'done'
  Running setup.py install for flask-migrate: started
    Running setup.py install for flask-migrate: finished with status 'done'
  Running setup.py install for flask-testing: started
    Running setup.py install for flask-testing: finished with status 'done'
  Running setup.py install for humanize: started
    Running setup.py install for humanize: finished with status 'done'
  Running setup.py install for markdown: started
    Running setup.py install for markdown: finished with status 'done'
  Running setup.py install for parsedatetime: started
    Running setup.py install for parsedatetime: finished with status 'done'
  Running setup.py install for future: started
    Running setup.py install for future: finished with status 'done'
  Running setup.py install for PyHive: started
    Running setup.py install for PyHive: finished with status 'done'
  Found existing installation: python-dateutil 2.6.0
    Uninstalling python-dateutil-2.6.0:
      Successfully uninstalled python-dateutil-2.6.0
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: '__init__.py'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/usr/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/usr/lib/python3.5/site-packages/pip/req/req_set.py", line 743, in install
    requirement.commit_uninstall()
  File "/usr/lib/python3.5/site-packages/pip/req/req_install.py", line 759, in commit_uninstall
    self.uninstalled.commit()
  File "/usr/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 142, in commit
    rmtree(self.save_dir)
  File "/usr/lib/python3.5/site-packages/pip/_vendor/retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "/usr/lib/python3.5/site-packages/pip/_vendor/retrying.py", line 212, in call
    raise attempt.get()
  File "/usr/lib/python3.5/site-packages/pip/_vendor/retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "/usr/lib/python3.5/site-packages/pip/_vendor/six.py", line 686, in reraise
    raise value
  File "/usr/lib/python3.5/site-packages/pip/_vendor/retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "/usr/lib/python3.5/site-packages/pip/utils/__init__.py", line 102, in rmtree
    onerror=rmtree_errorhandler)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/site-packages/pip/utils/__init__.py", line 110, in rmtree_errorhandler
    if os.stat(path).st_mode & stat.S_IREAD:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-lg8ohxhc-uninstall/usr/lib/python3.5/site-packages/dateutil/__init__.py'
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'superset' failed to build: The command '/bin/sh -c apk add --no-cache         curl         libffi-dev         cyrus-sasl-dev         mariadb-dev         postgresql-dev &&     pip3 install         superset==$SUPERSET_VERSION         mysqlclient==1.3.7         ldap3==2.1.1         psycopg2==2.6.1         redis==2.10.5         sqlalchemy-redshift==0.5.0' returned a non-zero code: 2
@Tuckie
Copy link
Author

Tuckie commented Feb 13, 2017

And it appears to work just fine after an update to CentOS. Closing!

@Tuckie Tuckie closed this as completed Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant