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

python2.6 support issue #69

Closed
wjo1212 opened this issue Mar 19, 2018 · 1 comment
Closed

python2.6 support issue #69

wjo1212 opened this issue Mar 19, 2018 · 1 comment

Comments

@wjo1212
Copy link
Collaborator

wjo1212 commented Mar 19, 2018

  1. protobuf latest version doesn't support py2.6 any more, but we could use older version in setup.py
  2. other issue found:
Traceback (most recent call last):
  File "tests/sample.py", line 354, in <module>
    main()
  File "tests/sample.py", line 330, in main
    sample_pull_logs(client, project, logstore)
  File "tests/sample.py", line 53, in sample_pull_logs
    datetime.fromtimestamp(int(time.time() - 60)).strftime('%Y-%m-%d %H:%M:%S'))
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/aliyun/log/logclient.py", line 566, in get_cursor
    params = {'type': 'cursor', 'from': str(start_time) if start_time in ("begin", "end") else parse_timestamp(start_time)}
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/aliyun/log/util.py", line 215, in parse_timestamp
    return int((dt - datetime(1970, 1, 1)).total_seconds())
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
wjo1212 added a commit that referenced this issue Mar 19, 2018
@wjo1212
Copy link
Collaborator Author

wjo1212 commented Mar 19, 2018

fixed in 0.6.25

@wjo1212 wjo1212 closed this as completed Mar 19, 2018
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

1 participant