Skip to content

not working with mixpanel version 4.8.0 #18

Description

@dbalosh

Hi, first thanks for this library.
using mixpanel-py-async = "==0.2.0",
When I've update mixpanel to version 4.8.0 I got:

Traceback (most recent call last):
  File "run.py", line 12, in <module>
    consumer.flush(async_=False)
  File ".../python3.6/site-packages/mixpanel_async/async_buffered_consumer.py", line 221, in flush
    self._sync_flush(endpoint=endpoint)
  File ".../python3.6/site-packages/mixpanel_async/async_buffered_consumer.py", line 261, in _sync_flush
    super(AsyncBufferedConsumer, self)._flush_endpoint(endpoint)
  File ".../python3.6/site-packages/mixpanel/__init__.py", line 711, in _flush_endpoint
Exception in thread Thread-1:
Traceback (most recent call last):
  File ".../lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File ".../python3.6/site-packages/mixpanel_async/async_buffered_consumer.py", line 37, in run
    self.consumer._sync_flush()
  File ".../python3.6/site-packages/mixpanel_async/async_buffered_consumer.py", line 261, in _sync_flush
    super(AsyncBufferedConsumer, self)._flush_endpoint(endpoint)
  File ".../python3.6/site-packages/mixpanel/__init__.py", line 711, in _flush_endpoint
    self._consumer.send(endpoint, batch_json, self._api_key, self._api_secret)
AttributeError: 'AsyncBufferedConsumer' object has no attribute '_api_secret'

    self._consumer.send(endpoint, batch_json, self._api_key, self._api_secret)
AttributeError: 'AsyncBufferedConsumer' object has no attribute '_api_secret'

git repo that reproduce it:
https://gitlab.com/danielbalosh/mixpanel-bug-4.8.0.git

Am I missing something, or is the new mixpanel version broke the support?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions