This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"metadata": {"kernelspec": {"display_name": "IPython (Python 3)", "name": "python3"}, "celltoolbar": "Raw Cell Format", "language_info": {"name": "python", "pygments_lexer": "ipython3", "mimetype": "text/x-python", "codemirror_mode": {"name": "ipython", "version": 3}}, "signature": "sha256:623a6d6d3900f4a65b9e1435f2519cae51fb96a440a9fd9961581622485a6f33"}, "cells": [{"cell_type": "markdown", "metadata": {}, "source": "# Introduction to Python"}, {"cell_type": "markdown", "metadata": {}, "source": "Let's write some code"}, {"cell_type": "markdown", "metadata": {}, "source": "## Python prompt"}, {"cell_type": "markdown", "metadata": {}, "source": "To start playing with Python, we need to open up a command line on your computer. You should have already knew how to do that -- you have learned it in the Intro to Command Line chapter.\n\nOnce you're ready, follow the instructions below.\n\nWe want to open up a Python console, so type in python3 and hit Enter."}, {"cell_type": "markdown", "metadata": {}, "source": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Status: Downloaded newer image for antoviaque/edxapp | |
Attaching to docker_mongodb_1, docker_mysql_1, docker_edxapp_1 | |
mongodb_1 | *** Installing insecure SSH key for user root | |
mongodb_1 | Insecure key has already been added to /root/.ssh/authorized_keys. | |
mongodb_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh... | |
mongodb_1 | *** Running /etc/rc.local... | |
mongodb_1 | *** Booting runit daemon... | |
mysql_1 | *** Installing insecure SSH key for user root | |
mongodb_1 | *** Runit started as PID 12 | |
mysql_1 | Insecure key has already been added to /root/.ssh/authorized_keys. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-11-21 15:15:23,623 ERROR 53 [root] exceptions.py:9 - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'> | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 89, in get_response | |
response = middleware_method(request) | |
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/middleware.py", line 18, in process_request | |
user_account = UserStanding.objects.get(user=user.id) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
return self.get_query_set().get(*args, **kwargs) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 361, in get | |
num = len(clone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 11 : RUN /root/setup && apt-get clean | |
---> Running in 93b213783418 | |
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh... | |
No SSH host key available. Generating one... | |
ERROR: file could not read: /root/vars.yml | |
2014/11/21 14:17:55 The command [/bin/sh -c /root/setup && apt-get clean] returned a non-zero code: 1 | |
root at docker-production in /opt/openedxhackathon/configuration/docker/mongodb (docker_multi_release) | |
$ ls -l | |
total 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/bin/gunicorn", line 5, in <module> | |
from pkg_resources import load_entry_point | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 2897, in <module> | |
add_activation_listener(lambda dist: dist.activate()) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 712, in subscribe | |
callback(dist) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 2897, in <lambda> | |
add_activation_listener(lambda dist: dist.activate()) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 2329, in activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/bin/gunicorn", line 9, in <module> | |
load_entry_point('gunicorn==0.17.4', 'console_scripts', 'gunicorn')() | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 36, in run | |
WSGIApplication("%(prog)s [OPTIONS] APP_MODULE").run() | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 135, in run | |
Arbiter(self).run() | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 59, in __init__ | |
self.setup(app) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 111, in setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK: [docker | Install python Docker client] ********************************* | |
failed: [192.168.33.20] => {"cmd": "/usr/local/bin/pip install -U docker-py", "failed": true, "rc": 8} | |
msg: [Errno 8] Exec format error | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/Users/nateaune/site.retry | |
192.168.33.20 : ok=14 changed=7 unreachable=0 failed=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@docker:~$ sudo dpkg --configure -a | |
Setting up zsh-common (5.0.2-3ubuntu6) ... | |
Setting up zsh (5.0.2-3ubuntu6) ... | |
update-alternatives: using /bin/zsh5 to provide /bin/zsh (zsh) in auto mode | |
update-alternatives: using /bin/zsh5 to provide /bin/rzsh (rzsh) in auto mode | |
update-alternatives: warning: skip creation of /usr/share/man/man1/rzsh.1.gz because associated file /usr/share/man/man1/zsh.1.gz (of link group rzsh) doesn't exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK: [common | Install ZSH] ************************************************** | |
failed: [192.168.33.20] => {"failed": true} | |
stderr: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. | |
msg: 'apt-get install 'zsh' ' failed: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nov 6 23:30:48 ip-172-31-17-166 [service_variant=cms][root][env:sandbox] ERROR [ip-172-31-17-166 664] [exceptions.py:9] - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'> | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
response = callback(request, *callback_args, **callback_kwargs) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view | |
return view_func(request, *args, **kwargs) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view | |
response = view_func(request, *args, **kwargs) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 41, in inner | |
return func(request, *args, **kwargs) |