Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with mixpanel version 4.8.0 #18

Closed
dbalosh opened this issue Dec 20, 2020 · 2 comments
Closed

not working with mixpanel version 4.8.0 #18

dbalosh opened this issue Dec 20, 2020 · 2 comments

Comments

@dbalosh
Copy link

dbalosh commented Dec 20, 2020

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?

@seizethedave
Copy link

I have released a mixpanel-python 4.8.1 that should fix this.

@dbalosh
Copy link
Author

dbalosh commented Jan 6, 2021

@seizethedave, thank you.
I can confirm this is fixed with mixpanel-python 4.8.1

@dbalosh dbalosh closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants