Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Missing package causes error in sample: "Introduction to Python" #936

Closed
Di-Ku opened this issue Aug 8, 2016 · 2 comments
Closed

Missing package causes error in sample: "Introduction to Python" #936

Di-Ku opened this issue Aug 8, 2016 · 2 comments

Comments

@Di-Ku
Copy link
Contributor

Di-Ku commented Aug 8, 2016

Need to add package or change sample (the latter may be easier for now)
%%bash
apt-get install -y -q libxslt-dev libxml2-dev
pip install -q scrapy

debconf: delaying package configuration, since apt-utils is not installed
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-OqPUd_/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-NBepB4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-OqPUd_/cryptography/

@parthea
Copy link
Contributor

parthea commented Aug 9, 2016

The following seems to work, but perhaps its not suitable for a notebook titled "Introduction to Python"

%%bash
apt-get install -y libxslt-dev libxml2-dev libffi-dev libssl-dev
pip install scrapy
touch /usr/local/lib/python2.7/dist-packages/zope/__init__.py
> import scrapy
> scrapy.__version__
u'1.1.1'

@parthea
Copy link
Contributor

parthea commented Aug 14, 2016

Fixed in googledatalab/notebooks@5ef81a1

This issue can be closed.

@ojarjur ojarjur closed this as completed Aug 18, 2016
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

3 participants