I'm new to machine learning, today I follow this tutorial:
https://codelabs.developers.google.com/codelabs/cpb102-txf-learning/index.html
But at step 5 I got an error
chuanman2707#transfer-learning-169510:~$ cd cloudml-samples/flowers
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$
DICT_FILE=gs://cloud-ml-data/img/flower_photos/dict.txt
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$
PROJECT=$(gcloud config list project --format "value(core.project)")
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$
BUCKET="gs://${PROJECT}-flower"
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$
GCS_PATH="${BUCKET}/${USER}"
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$ gsutil mb
$BUCKET
Creating gs://transfer-learning-169510-flower/...
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$ python
trainer/preprocess.py \
> --input_dict "$DICT_FILE" \
> --input_path "gs://cloud-ml-data/img/flower_photos/eval_set.csv" \
> --output_path "${GCS_PATH}/preproc/eval" \
> --cloud
Traceback (most recent call last):
File "trainer/preprocess.py", line 71, in <module>
import apache_beam as beam
ImportError: No module named apache_beam
Please help me go through this tutorial. Thank you.
edit
After I tried to install pip install apache-beam I got this:
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$ pip install apache-beam
Collecting apache-beam
Collecting avro<2.0.0,>=1.8.1 (from apache-beam)
Requirement already satisfied: mock<3.0.0,>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from apache-beam)
Requirement already satisfied: crcmod<2.0,>=1.7 in /usr/local/lib/python2.7/dist-packages (from apache-beam)
Requirement already satisfied: grpcio<2.0,>=1.0 in /usr/local/lib/python2.7/dist-packages (from apache-beam)
Collecting protobuf==3.2.0 (from apache-beam)
Using cached protobuf-3.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting oauth2client<4.0.0,>=2.0.1 (from apache-beam)
Collecting httplib2<0.10,>=0.8 (from apache-beam)
Requirement already satisfied: pyyaml<4.0.0,>=3.12 in /home/chuanman2707/.local/lib/python2.7/site-packages (from apache-beam)
Requirement already satisfied: dill==0.2.6 in /usr/local/lib/python2.7/dist-packages (from apache-beam)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /usr/local/lib/python2.7/dist-packages (from mock<3.0.0,>=1.0.1->apache-beam)
Requirement already satisfied: six>=1.9 in /usr/local/lib/python2.7/dist-packages (from mock<3.0.0,>=1.0.1->apache-beam)
Requirement already satisfied: pbr>=0.11 in /usr/local/lib/python2.7/dist-packages (from mock<3.0.0,>=1.0.1->apache-beam)
Requirement already satisfied: enum34>=1.0.4 in /usr/local/lib/python2.7/dist-packages (from grpcio<2.0,>=1.0->apache-beam)
Requirement already satisfied: futures>=2.2.0 in /usr/local/lib/python2.7/dist-packages (from grpcio<2.0,>=1.0->apache-beam)
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from protobuf==3.2.0->apache-beam)
Requirement already satisfied: rsa>=3.1.4 in /usr/local/lib/python2.7/dist-packages (from oauth2client<4.0.0,>=2.0.1->apache-beam)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from oauth2client<4.0.0,>=2.0.1->apache-beam)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /usr/local/lib/python2.7/dist-packages (from oauth2client<4.0.0,>=2.0.1->apache-beam)
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools->protobuf==3.2.0->apache-beam)
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools->protobuf==3.2.0->apache-beam)
Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools->protobuf==3.2.0->apache-beam)
Installing collected packages: avro, protobuf, httplib2, oauth2client, apache-beam
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/init.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/avro-1.8.2.dist-info'
chuanman2707#transfer-learning-169510:~/cloudml-samples/flowers$
What should I do next? Thank you
If you look carefully at the line: OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/avro-1.8.2.dist-info', you'll see that you need sudo permissions.
Run the following:
sudo pip install apache-beam
Related
I tried to run this code:
from tabula import read_pdf
df = read_pdf("../pdf/Documentacao.pdf")
print(df)
And got this:
runfile('C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py', wdir='C:/Users/Henri/git/Git/PDS1/dev/lib')
Traceback (most recent call last):
File "<ipython-input-4-e12a8a26bbfa>", line 1, in <module>
runfile('C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py', wdir='C:/Users/Henri/git/Git/PDS1/dev/lib')
File "C:\Users\Henri\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\Henri\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py", line 1, in <module>
from tabula import read_pdf
ModuleNotFoundError: No module named 'tabula'
This is what my anaconda says:
(base) C:\Users\Henri>pip install tabula-py
Requirement already satisfied: tabula-py in c:\users\henri\miniconda3\lib\site-packages (1.4.1)
Requirement already satisfied: pandas in c:\users\henri\miniconda3\lib\site-packages (from tabula-py) (0.25.1)
Requirement already satisfied: distro in c:\users\henri\miniconda3\lib\site-packages (from tabula-py) (1.4.0)
Requirement already satisfied: numpy in c:\users\henri\miniconda3\lib\site-packages (from tabula-py) (1.17.2)
Requirement already satisfied: python-dateutil>=2.6.1 in c:\users\henri\miniconda3\lib\site-packages (from pandas->tabula-py) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in c:\users\henri\miniconda3\lib\site-packages (from pandas->tabula-py) (2019.3)
Requirement already satisfied: six>=1.5 in c:\users\henri\miniconda3\lib\site-packages (from python-dateutil>=2.6.1->pandas->tabula-py) (1.12.0)
I think is something about directories, but what ??
(base) C:\Users\Henri>pip install tabula-py
Requirement already satisfied: tabula-py in c:\users\henri\miniconda3\lib\site-packages (1.4.1)
I think is installed, just you need to make sure which Python environment yre installing it because maybe is installed in python3 directory, not python2.
I'm trying to install channels_redis and got following error.
pip install channels_redis
Collecting channels_redis
Using cached https://files.pythonhosted.org/packages/63/ae/adea3b1913aebb84ec6b6f3c30ba81b8bef79f99b51c7240810284152df4/channels_redis-2.2.1-py2.py3-none-any.whl
Requirement already satisfied: channels~=2.0 in ./env/lib/python3.6/site-packages (from channels_redis) (2.1.1)
Requirement already satisfied: asgiref~=2.1 in ./env/lib/python3.6/site-packages (from channels_redis) (2.3.2)
Collecting msgpack~=0.5.0 (from channels_redis)
Using cached https://files.pythonhosted.org/packages/22/4e/dcf124fd97e5f5611123d6ad9f40ffd6eb979d1efdc1049e28a795672fcd/msgpack-0.5.6-cp36-cp36m-manylinux1_x86_64.whl
Collecting aioredis~=1.0 (from channels_redis)
Using cached https://files.pythonhosted.org/packages/83/4f/fb41fd054522b2f15cf8c9a0b119096a3f2e4db41c9cd7c114da8de742b1/aioredis-1.1.0-py3-none-any.whl
Requirement already satisfied: daphne~=2.1 in ./env/lib/python3.6/site-packages (from channels~=2.0->channels_redis) (2.1.2)
Requirement already satisfied: Django>=1.11 in ./env/lib/python3.6/site-packages (from channels~=2.0->channels_redis) (2.0.6)
Requirement already satisfied: async-timeout<4.0,>=2.0 in ./env/lib/python3.6/site-packages (from asgiref~=2.1->channels_redis) (2.0.1)
Collecting hiredis (from aioredis~=1.0->channels_redis)
Using cached https://files.pythonhosted.org/packages/1b/98/4766d85124b785ff1989ee1c79631a1b6ecfcb444ff39999a87877b2027e/hiredis-0.2.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-aqp5bl02/hiredis/setup.py", line 81, in <module>
'Topic :: Software Development',
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/danil/projects/python/collann/env/lib/python3.6/site-packages/setuptools/dist.py", line 364, in __init__
self.patch_missing_pkg_info(attrs)
File "/home/danil/projects/python/collann/env/lib/python3.6/site-packages/setuptools/dist.py", line 346, in patch_missing_pkg_info
key = pkg_resources.safe_name(str(attrs['name'])).lower()
AttributeError: module 'pkg_resources' has no attribute 'safe_name'
---------------
This answer doesn't work for me
pip --version
pip 10.0.1 from project/env/lib/python3.6/site-packages/pip (python 3.6)
only full removing of environment helped.
deactivate
rm -rf env/
virtualenv env -p python3
. env/bin/activate
pip install -r requirements.txt
pip install channels_redis
I'm trying to install shub, the Scrapinghub command line tool in OSX 10.11.6 (El Capitan) via pip. The installation script downloads the required modules and at some point returns the following error:
OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/man'
I used the following command:
$ sudo -H pip install shub --ignore-installed six
and received the following traceback:
Collecting shub
Using cached shub-2.7.0-py2.py3-none-any.whl
Collecting six
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting retrying (from shub)
Using cached retrying-1.3.3.tar.gz
Collecting tqdm (from shub)
Using cached tqdm-4.19.2-py2.py3-none-any.whl
Collecting pip (from shub)
Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting PyYAML (from shub)
Using cached PyYAML-3.12.tar.gz
Collecting docker-py (from shub)
Using cached docker_py-1.10.6-py2.py3-none-any.whl
Collecting click (from shub)
Using cached click-6.7-py2.py3-none-any.whl
Collecting requests (from shub)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting scrapinghub>=1.9.0 (from shub)
Using cached scrapinghub-2.0.1-py2.py3-none-any.whl
Collecting backports.ssl-match-hostname>=3.5; python_version < "3.5" (from docker-py->shub)
Using cached backports.ssl_match_hostname-3.5.0.1.tar.gz
Collecting ipaddress>=1.0.16; python_version < "3.3" (from docker-py->shub)
Using cached ipaddress-1.0.18-py2-none-any.whl
Collecting docker-pycreds>=0.2.1 (from docker-py->shub)
Using cached docker_pycreds-0.2.1-py2.py3-none-any.whl
Collecting websocket-client>=0.32.0 (from docker-py->shub)
Using cached websocket_client-0.44.0-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->shub)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->shub)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->shub)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->shub)
Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
Installing collected packages: six, retrying, tqdm, pip, PyYAML, urllib3, idna, chardet, certifi, requests, backports.ssl-match-hostname, ipaddress, docker-pycreds, websocket-client, docker-py, click, scrapinghub, shub
Running setup.py install for retrying ... done
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 377, in move_wheel_files
clobber(source, dest, False, fixer=fixer, filter=filter)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/man'
Any thoughts as to what is causing this problem? Thanks in advance.
EDIT:
The problem was solved by installing Homebrew. The instructions are on this link: https://docs.scrapy.org/en/latest/intro/install.html#mac-os-x
After Homebrew was installed, I installed shub with the following command:
pip install shub and received the following:
Collecting shub
Using cached shub-2.7.0-py2.py3-none-any.whl
Requirement already satisfied: retrying in /Library/Python/2.7/site-packages (from shub)
Collecting click (from shub)
Using cached click-6.7-py2.py3-none-any.whl
Requirement already satisfied: requests in /Library/Python/2.7/site-packages (from shub)
Collecting scrapinghub>=1.9.0 (from shub)
Using cached scrapinghub-2.0.1-py2.py3-none-any.whl
Requirement already satisfied: pip in /usr/local/lib/python2.7/site-packages (from shub)
Collecting docker-py (from shub)
Using cached docker_py-1.10.6-py2.py3-none-any.whl
Requirement already satisfied: PyYAML in /Library/Python/2.7/site-packages (from shub)
Requirement already satisfied: tqdm in /Library/Python/2.7/site-packages (from shub)
Requirement already satisfied: six>=1.7.0 in /Library/Python/2.7/site-packages (from shub)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Python/2.7/site-packages (from requests->shub)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Python/2.7/site-packages (from requests->shub)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Python/2.7/site-packages (from requests->shub)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/2.7/site-packages (from requests->shub)
Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /Library/Python/2.7/site-packages (from docker-py->shub)
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /Library/Python/2.7/site-packages (from docker-py->shub)
Collecting docker-pycreds>=0.2.1 (from docker-py->shub)
Using cached docker_pycreds-0.2.1-py2.py3-none-any.whl
Collecting websocket-client>=0.32.0 (from docker-py->shub)
Using cached websocket_client-0.44.0-py2.py3-none-any.whl
Installing collected packages: click, scrapinghub, docker-pycreds, websocket-client, docker-py, shub
Successfully installed click-6.7 docker-py-1.10.6 docker-pycreds-0.2.1 scrapinghub-2.0.1 shub-2.7.0 websocket-client-0.44.0
Now shub is installed.
NEW PROBLEM:
shub has been installed, but none of the shub commands are returning data. When using the shub login command, I receive the following traceback:
Traceback (most recent call last):
File "/usr/local/bin/shub", line 7, in <module>
from shub.tool import cli
File "/usr/local/lib/python2.7/site-packages/shub/tool.py", line 57, in <module>
command_module = importlib.import_module(module_path)
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/local/lib/python2.7/site-packages/shub/deploy.py", line 10, in <module>
import setuptools
File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, map
File "/usr/local/lib/python2.7/site-packages/setuptools/setuptools/__init__.py", line 160, in <module>
monkey.patch_all()
File "/usr/local/lib/python2.7/site-packages/setuptools/setuptools/monkey.py", line 67, in patch_all
distutils.core.Command = setuptools.Command
AttributeError: 'module' object has no attribute 'Command'
I checked to see if there were any required version of packaging present that i needed, but everything is current.
Any help is greatly appreciated. Thanks in advance.
1)Installed paramiko on mac, but getting some different errors.
pip install paramiko
Requirement already satisfied: paramiko in /Library/Python/2.7/site-packages
Requirement already satisfied: pynacl>=1.0.1 in /Library/Python/2.7/site-packages (from paramiko)
Requirement already satisfied: pyasn1>=0.1.7 in /Library/Python/2.7/site-packages (from paramiko)
Requirement already satisfied: bcrypt>=3.1.3 in /Library/Python/2.7/site-packages (from paramiko)
Requirement already satisfied: cryptography>=1.1 in /Library/Python/2.7/site-packages (from paramiko)
Requirement already satisfied: six in ./2.7/Extras/lib/python (from pynacl>=1.0.1->paramiko)
Requirement already satisfied: cffi>=1.4.1 in /Library/Python/2.7/site-packages (from pynacl>=1.0.1->paramiko)
Requirement already satisfied: idna>=2.1 in /Library/Python/2.7/site-packages (from cryptography>=1.1->paramiko)
Requirement already satisfied: ipaddress in /Library/Python/2.7/site-packages (from cryptography>=1.1->paramiko)
Requirement already satisfied: asn1crypto>=0.21.0 in /Library/Python/2.7/site-packages (from cryptography>=1.1->paramiko)
Requirement already satisfied: enum34 in /Library/Python/2.7/site-packages (from cryptography>=1.1->paramiko)
Requirement already satisfied: pycparser in /Library/Python/2.7/site-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko)
Open the terminal, type python. Now in python prompt, import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/paramiko/__init__.py", line 31, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/Library/Python/2.7/site-packages/paramiko/transport.py", line 57, in <module>
from paramiko.ed25519key import Ed25519Key
File "/Library/Python/2.7/site-packages/paramiko/ed25519key.py", line 22, in <module>
import nacl.signing
File "/Library/Python/2.7/site-packages/nacl/signing.py", line 19, in <module>
import nacl.bindings
File "/Library/Python/2.7/site-packages/nacl/bindings/__init__.py", line 17, in <module>
from nacl.bindings.crypto_box import (
File "/Library/Python/2.7/site-packages/nacl/bindings/crypto_box.py", line 18, in <module>
from nacl._sodium import ffi, lib
ImportError: dlopen(/Library/Python/2.7/site-packages/nacl/_sodium.so, 2): Symbol not found: _crypto_box
Referenced from: /Library/Python/2.7/site-packages/nacl/_sodium.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/nacl/_sodium.so
2) After trying some different options, tried sudo -H pip install paramiko and import paramiko from python prompt didn't result into any error.
But when executed paramiko login snippet, resulted into an error Client.py and transport.py & module error certificate transparency
I tried installing GraphLab Create through pip. Zipped through the steps until the final step stopped me in my tracks.
The final command:
pip install --upgrade --no-cache-dir https://get.dato.com/GraphLab-Create/1.7.1/email#gmail.com/*******license key****/GraphLab-Create-License.tar.gz
This gives the following output:
Collecting https://get.dato.com/GraphLab-Create/1.7.1/***************#gmail.com/********license***********/GraphLab-Create-License.tar.gz Downloading https://get.dato.com/GraphLab-Create/1.7.1/***************#gmail.com/*******license*************/GraphLab-Create-License.tar.gz Collecting graphlab-create>=1.7.1 (from GraphLab-Create-License==1.7.1) Downloading GraphLab_Create-1.7.1-cp27-none-win_amd64.whl (45.0MB) Requirement already up-to-date: boto==2.33.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: prettytable==0.7.2 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: decorator==3.4.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: librato-metrics==0.4.9 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: awscli==1.6.2 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: multipledispatch>=0.4.7 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Collecting sseclient==0.0.8 (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Downloading sseclient-0.0.8.tar.gz Collecting certifi==2015.04.28 (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Downloading certifi-2015.04.28-py2.py3-none-any.whl (373kB) Requirement already up-to-date: requests==2.3.0 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: mixpanel-py==3.1.1 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: tornado==4.1 in c:\anaconda2\lib\site-packages (from graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: six in c:\anaconda2\lib\site-packages (from librato-metrics==0.4.9->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: rsa==3.1.2 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: botocore<0.74.0,>=0.73.0 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: docutils>=0.10 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: colorama==0.2.5 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: bcdoc<0.13.0,>=0.12.0 in c:\anaconda2\lib\site-packages (from awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: backports.ssl-match-hostname in c:\anaconda2\lib\site-packages (from tornado==4.1->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: pyasn1>=0.1.3 in c:\anaconda2\lib\site-packages (from rsa==3.1.2->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: jmespath==0.5.0 in c:\anaconda2\lib\site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Requirement already up-to-date: python-dateutil>=2.1 in c:\anaconda2\lib\site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->graphlab-create>=1.7.1->GraphLab-Create-License==1.7.1) Installing collected packages: sseclient, certifi, graphlab-create, GraphLab-Create-License Running setup.py install for sseclient Found existing installation: certifi 2015.11.20.1
Uninstalling certifi-2015.11.20.1:
Successfully uninstalled certifi-2015.11.20.1 Running setup.py install for GraphLab-Create-License
Complete output from command C:\Anaconda2\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\abhish~1\\appdata\\local\\temp\\pip-7mleag-build\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\abhish~1\appdata\local\temp\pip-bv7hrn-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running install_egg_info
running egg_info
writing requirements to GraphLab_Create_License.egg-info\requires.txt
writing GraphLab_Create_License.egg-info\PKG-INFO
writing top-level names to GraphLab_Create_License.egg-info\top_level.txt
writing dependency_links to GraphLab_Create_License.egg-info\dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'GraphLab_Create_License.egg-info\SOURCES.txt'
writing manifest file 'GraphLab_Create_License.egg-info\SOURCES.txt'
Copying GraphLab_Create_License.egg-info to C:\Anaconda2\Lib\site-packages\GraphLab_Create_License-1.7.1-py2.7.egg-info
running install_scripts
writing list of installed files to 'c:\users\abhish~1\appdata\local\temp\pip-bv7hrn-record\install-record.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\abhish~1\appdata\local\temp\pip-7mleag-build\setup.py", line 61, in <module>
cmdclass=dict(install=SetLicense)
File "C:\Anaconda2\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Anaconda2\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Anaconda2\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\abhish~1\appdata\local\temp\pip-7mleag-build\setup.py", line 41, in run
config.read(config_filename)
File "C:\Anaconda2\lib\ConfigParser.py", line 305, in read
self._read(fp, filename)
File "C:\Anaconda2\lib\ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: C:\Users\abhish**\.graphlab\config, line: 1
'\x00\***lots of hex code***x00'
----------------------------------------
What is wrong and how do I fix it?
The config file seems corrupted, possibly due to a previous failed installation; it should always contain section headers.
Try deleting the config file (C:\Users\abhish**\.graphlab\config) and re-installing, which will re-create it.