'module' object has no attribute 'dictConfig'

User 878 | 10/23/2014, 12:17:24 AM

I am getting the following error when installing graphlab-create on my ec2 machine:

Running setup.py egginfo for package graphlab-create Traceback (most recent call last): File "<string>", line 14, in <module> File "/home/ec2-user/graphlab/build/graphlab-create/setup.py", line 10, in <module> from graphlabutil.config import DEFAULTCONFIG as CONFIG File "graphlabutil/init.py", line 12, in <module> logging.config.dictConfig({ AttributeError: 'module' object has no attribute 'dictConfig' Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/ec2-user/graphlab/build/graphlab-create/setup.py", line 10, in <module>

from graphlab_util.config import DEFAULT_CONFIG as CONFIG

File "graphlab_util/init.py", line 12, in <module>

logging.config.dictConfig({

AttributeError: 'module' object has no attribute 'dictConfig'


Command python setup.py egg_info failed with error code 1

Comments

User 14 | 10/23/2014, 1:08:35 AM

What python version do you have on the EC2 machine? Can you make sure you are using python2.7 and associated pip2.7.


User 878 | 10/23/2014, 1:30:15 AM

When trying to install pip2.7 , I am getting below error: Searching for pip Reading https://pypi.python.org/simple/pip/ Download error on https://pypi.python.org/simple/pip/: unknown url type: https -- Some packages may not be found! Couldn't find index page for 'pip' (maybe misspelled?)


User 878 | 10/23/2014, 2:22:46 AM

Now I got the installation done. However, when I restart the ec2 instance, I get the same error: "AttributeError: 'module' object has no attribute 'dictConfig'"

I guess somehow during the start EC2 is still using python 2.6.9 rather than using 2.7.5. However, python -V in the terminal shows 2.7.5.

Any suggestions?


User 14 | 10/23/2014, 5:35:09 AM

Have you installed pip2.7 successfully? Did you use pip2.7 to install graphlab-create? Looks like it might still be calling pip of python2.6, even though the default python is switched to 2.7. Here's a good article for installing python and pip 2.7 on amazon EC2 instance. http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2 The link to ezsetup.py however is broken. You can try this link: https://bitbucket.org/pypa/setuptools/raw/bootstrap/ezsetup.py