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

User 22 | 3/10/2014, 1:38:26 PM

It will report the error as title when i exec the codes with demo code in the home page .The mixpanel version is mixpanel-py.3.1.2.Is there any solution with it?whether something wrong to me when it setup the GraphLab Create?


User 20 | 3/10/2014, 4:27:14 PM

I think you have might have conflicting site-packages. i.e. python is taking mixpanel from a different location than where pip installed it. Can you try doing this in a virtualenv? (Make sure to use --no-site-packages. That should be the default anyway)

User 9 | 3/20/2014, 5:12:30 PM

@kub -are you still having issues? Let us know and we will investigate further.

User 607 | 8/19/2014, 5:50:41 AM

Hi Yucheng, timmuss,

I am also having the same issues as kub, still unable to to resolve (graphlab)➜ graphlab easyinstall six Searching for six Reading Best match: six 1.7.3 Downloading Processing six-1.7.3.tar.gz Writing /var/folders/pc/0nxhln214cq2g22ps9fkly80000gn/T/easyinstall-PWDX96/six-1.7.3/setup.cfg Running six-1.7.3/ -q bdistegg --dist-dir /var/folders/pc/0nxhln214cq2g22ps9fkly80000gn/T/easyinstall-PWDX96/six-1.7.3/egg-dist-tmp-16AdgR no previously-included directories found matching 'documentation/build' zipsafe flag not set; analyzing archive contents... six: module references path Adding six 1.7.3 to easy-install.pth file

Installed /Users/imac/Downloads/graphlab-2.2/graphlab/lib/python2.7/site-packages/six-1.7.3-py2.7.egg Processing dependencies for six Finished processing dependencies for six (graphlab)➜ graphlab python
Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import graphlab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/imac/Downloads/graphlab-2.2/graphlab/lib/python2.7/site-packages/graphlab/", line 7, in <module> import as aws File "/Users/imac/Downloads/graphlab-2.2/graphlab/lib/python2.7/site-packages/graphlab/connect/", line 8, in <module> from graphlabutil.metrictracker import MetricTracker as MetricTracker File "/Users/imac/Downloads/graphlab-2.2/graphlab/lib/python2.7/site-packages/graphlabutil/", line 349, in <module> class OfflineConsumer(mixpanel.BufferedConsumer): AttributeError: 'module' object has no attribute 'BufferedConsumer'

Still getting this error in a virtualenv environment.


User 10 | 8/26/2014, 11:58:46 PM

Can you share a little bit more information about how you installed GraphLab Create?

Once you activate the virtualenv, try 'which python' from your terminal. If you manually execute that path, what version of Python is it? (It should be something like /Users/imac/Downloads/graphlab-2.2/graphlab/bin/python, and running that directly should return Python 2.7.5.)

If you list files in /Users/imac/Downloads/graphlab-2.2/graphlab/lib/python2.7/site-packages, do you see a mixpanel directory? Does that directory's timestamps match when you did the virtualenv creation?



User 738 | 9/17/2014, 8:03:54 PM

I am encountering the same error.

I installed GraphLab Create following the directions on the Quick Start guide, in a virtual environment. From that virtual environment, 'which python' successfully finds one within the virtual environment, which is Python 2.7.5. site-packages associated with the virtual environment includes a mixpanel directory, with a timestamp matching when I downloaded it (I had to separately install it after creating the virtual environment and installing graphlab; initially I was getting ImportErrors for 'no module named mixpanel'.) There is no mixpanel installed outside of the virtual environment on my system.

User 6 | 2/25/2015, 3:11:13 PM

I was able to solve this issue by installing mixpanel-py (pip install mixpanel-py) instead of mixpanel.