Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

ImportError: No module named six while setting up Horizon #91

Open
Shaptarshi-Basu opened this issue Feb 20, 2018 · 0 comments
Open

ImportError: No module named six while setting up Horizon #91

Shaptarshi-Basu opened this issue Feb 20, 2018 · 0 comments

Comments

@Shaptarshi-Basu
Copy link

Tried to install using dockerfile. and the respository used is a person repository forked from https://github.com/ging/horizon.git with some minor UI changes.

Dockerfile

FROM ubuntu:14.04

MAINTAINER FIWARE Indentity Manager Team. DIT-UPM

ENV HOME=/
ENV IDM_PASS=idm

Install Ubuntu dependencies

RUN sudo apt-get update &&
sudo apt-get install -y wget python git vim expect &&
wget https://bootstrap.pypa.io/get-pip.py &&
sudo python get-pip.py

Install Ubuntu project dependencies

RUN sudo apt-get install -y python-dev python-virtualenv libssl-dev libffi-dev libjpeg8-dev libxml2-dev libxslt1-dev libsasl2-dev libssl-dev libldap2-dev libffi-dev libsqlite3-dev libmysqlclient-dev python-mysqldb

Download latest version of the code

RUN git clone https://github.com/TampereTC/tre-smartcity-keystone &&
cd tre-smartcity-keystone && \
git checkout -b tags/keyrock-6.0.0

RUN git clone https://github.com/Shaptarshi-Basu/horizon &&
cd horizon &&
git checkout -b tags/keyrock-6.0.0

Configuring settings files

RUN cp tre-smartcity-keystone/etc/keystone.conf.sample tre-smartcity-keystone/etc/keystone.conf &&
cp horizon/openstack_dashboard/local/local_settings.py.example horizon/openstack_dashboard/local/local_settings.py &&
sed -i s/$$IDM_PASS/${IDM_PASS}/g horizon/openstack_dashboard/local/local_settings.py

Check python & pip versions

RUN python -V
RUN pip -V

Install python dependecies

RUN sudo python tre-smartcity-keystone/tools/install_venv.py
RUN sudo python horizon/tools/install_venv.py

WORKDIR tre-smartcity-keystone

Sync database

RUN sudo tools/with_venv.sh bin/keystone-manage db_sync &&
sudo tools/with_venv.sh bin/keystone-manage db_sync --extension=endpoint_filter &&
sudo tools/with_venv.sh bin/keystone-manage db_sync --extension=oauth2 &&
sudo tools/with_venv.sh bin/keystone-manage db_sync --extension=roles &&
sudo tools/with_venv.sh bin/keystone-manage db_sync --extension=user_registration &&
sudo tools/with_venv.sh bin/keystone-manage db_sync --extension=two_factor_auth

Prepare to set up idm password

COPY expect_idm_password .
RUN sed -i s/$$IDM_PASS/${IDM_PASS}/g expect_idm_password &&
chmod +x expect_idm_password &&
sudo ./expect_idm_password

Mount volumes to grant access from host

VOLUME /keystone/
VOLUME /horizon/

Exposed ports

- Keystone

EXPOSE 5000

- Horizon (HTTP)

EXPOSE 8000

CMD sudo /tre-smartcity-keystone/tools/with_venv.sh /tre-smartcity-keystone/bin/keystone-all -v & sudo /horizon/tools/with_venv.sh python /horizon/manage.py runserver 0.0.0.0:8000

Error Details

Collecting pyScss==1.2.1 (from -r /horizon/requirements.txt (line 31))
Downloading pyScss-1.2.1.tar.gz (95kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-vCOUYk/pyScss/setup.py", line 13, in
from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
File "scss/init.py", line 57, in
import six
ImportError: No module named six

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vCOUYk/pyScss/
Command "tools/with_venv.sh pip install --upgrade -r /horizon/requirements.txt -r /horizon/test-requirements.txt" failed.
None
Creating venv... done.
Installing dependencies with pip (this can take a while)...
The command '/bin/sh -c sudo python horizon/tools/install_venv.py' returned a non-zero code: 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant