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

moti_hourly.py is broken in Python 3 #7

Closed
jameshiebert opened this issue Sep 21, 2017 · 1 comment
Closed

moti_hourly.py is broken in Python 3 #7

jameshiebert opened this issue Sep 21, 2017 · 1 comment

Comments

@jameshiebert
Copy link
Contributor

(env) [crmprtd@crmprtd ~]$ moti_hourly.py -c 'postgresql://dbuser@dbhost/crmp' --auth=$AUTH_FILE --auth_key=moti -l ~/moti/logs/crmprtd.log --log_level=ERROR -C ~/moti/cache/
Traceback (most recent call last):
  File "/storage/home/crmprtd/env/bin/moti_hourly.py", line 151, in <module>
    main(args)
  File "/storage/home/crmprtd/env/bin/moti_hourly.py", line 92, in main
    f.write(req.content)
TypeError: must be str, not bytes
@jameshiebert
Copy link
Contributor Author

Same goes for real_time_ec.py:

2017-09-22 10:51:01,221:INFO:crmprtd.ec - Saving data to /home/crmprtd/ec/download/hourly_bc_2017092112_e.xml
Traceback (most recent call last):
  File "/storage/home/crmprtd/env/bin/real_time_ec.py", line 151, in <module>
    main(args)
  File "/storage/home/crmprtd/env/bin/real_time_ec.py", line 73, in main
    f.write(req.content)
TypeError: must be str, not bytes

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