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

--recorded breaks bc of TypeError #26

Open
maste9 opened this issue Jun 1, 2019 · 1 comment
Open

--recorded breaks bc of TypeError #26

maste9 opened this issue Jun 1, 2019 · 1 comment

Comments

@maste9
Copy link

maste9 commented Jun 1, 2019

When I fire
python3 example.py --recorded -mac xx:xx:xx:xx:xx:xx
I receive the following exception:

File "example.py", line 34, in <module>
    band.start_get_previews_data(start_time)
  File "/home/homer77/Programming/MiBand2/base.py", line 516, in start_get_previews_data
    ts = year + month + day + hour + minute
TypeError: can't concat int to bytes

I already messed around a little with the struc.pack lines to translate everything into bytes type. But then the script breaks again because the byte type doesn't have recode method.

Is anyone able to reproduce this error?

@chauvuluan
Copy link

sudo python example.py --recorded --mac yourMac

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