mixpanel / mixpanel-utils

Other
85 stars 62 forks source link

Update library for it to be python3 compatible #12

Closed breadplop closed 3 years ago

thomasf commented 6 years ago

yeah, this is really bad :)

aavnsh commented 6 years ago

I am attempting to port the library to python3 which you can install from pip pip install mixpanel-api3. All collaboriation and help appreciated. Hopefully we will get an official version of the library soon.

Github: mixpanel_api3 PyPi: mixpanel-api3

paulvelthuisgyg commented 5 years ago

Is there a version of mixpanel for python 3 coming? Python 2 will not be maintained anymore at the end of this year

rverma-nikiai commented 5 years ago

@jaredmixpanel Can you please address this, this has been due from quite some time.

pritesh-shrivastava commented 5 years ago

@jaredmixpanel @andyleap @tdumitrescu @ttrefren @Uduchi2nd @zakj Any updated for support of Python 3 ?

danakock commented 5 years ago

Sorry for the delay! This library is written and maintained by the Mixpanel Support Engineering team, and thus, we don't have as much time to work on these projects. We're in the process of re-writing the library to be fully Python3 compatible though, and the updated version will be released in Q2.

Until then, I can help with converting any existing code to Python 3.

bookmebus commented 5 years ago

@danakock any update on this?

colelloa commented 5 years ago

python2 is being EOLed on Dec 31 2019 and will no longer receive security updates - https://pythonclock.org/ - any updates on this?

tim-sauchuk commented 4 years ago

Hi everyone!

I've been using the export_events function from mixpanel_api3 package for ~6 months now and have noticed that this error shows up every once in a while: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I've also noticed particularly today that export_events has been hanging/running extremely slow (takes about 3 minutes to export something that usually takes 3 seconds). Any insight into this?

chingc commented 4 years ago

Dear mixpanel_api,

https://pythonclock.org/

P.S. I'm sorry this comment wasn't helpful. This library is one of the few that is holding back my company's transition to Python 3. I have seen posts going back to the beginning of the year, but have yet to see any status or update. We are less than 90 days from Python 2 end of life.

danakock commented 4 years ago

This has taken longer to update than anticipated due to bandwidth on the team, but we will have this module updated for Python 3 before Python 2 EOL. If anything is holding you back from moving to Python 3 in the meantime, please be aware you can do everything utilizing the APIs documented in our dev docs that you can via the module.

Please write in to support if you have any issues or need any assistance with our APIs. I'll update here once we're ready to release the new module.

tim-sauchuk commented 4 years ago

Just an FYI, Mixpanel customer support fixed the bug I had yesterday :)

tim-sauchuk commented 4 years ago

Still getting an error on ~10% of export_events function calls for mixpanel-api3. Anyone else seeing issues like this?

Error message is always: Expecting value: line 1 column 1 (char 0)

... which is typically shown when trying to read the first line of a JSON file.

apurvis commented 4 years ago

+1

jjk2134 commented 4 years ago

+1

chingc commented 4 years ago

@tim-sauchuk I wouldn't expect any support for mixpanel-api3 because it's not from the mixpanel team.

From https://github.com/aavnsh/mixpanel_api3:

This is a python 3 port of the original mixpanel-api (python2) utility by the MixPanel Team. It was done as a quick weekend hack

chriswhittleston commented 4 years ago

Any update on this @danakock?

kendistiller commented 4 years ago

Has anything happened with this? EOL is over and this thread seemed to have died end of last year.

ngnikhilgoyal commented 4 years ago

It's pretty frustrating that in 3 years Mixpanel hasn't bothered to update a library that can't work in py3.

chingc commented 4 years ago

I gave up waiting for a python 3 version from the official mixpanel_api team and went with https://github.com/aavnsh/mixpanel_api3

jaredmixpanel commented 3 years ago

Apologies for it being so long overdue, but the module is now updated to Python3! It has also been renamed to mixpanel-utils. Please see the updated README for details.