-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix error in logging: could not concat bytes and string #2027
Conversation
This pull request fixes the receipt of the field
|
Any other pull requests needed here? |
I really do not know how should I encode these bytes. I was scared of breaking this XML, but since it's only for logging, maybe we could just |
@bombadiltom are you using python2.7? I was using 3 and this error was not thrown to me. I will test in 2.7 |
@mniak Python 2.7.9, yowsup-cli demos -c /etc/yowsup.config -y, then /L |
@mniak: Python3: BTW: Did you test your pull request with pull request 555 already? What's the best way to easilly merge them together? |
I applied the changes and I launched the layer.py again `File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/layers/axolotl/layer_control.py", line 34, in send File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/layers/init.py", line 84, in toLower File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/layers/logger/layer.py", line 8, in send File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/structs/protocoltreenode.py", line 90, in str File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/structs/protocoltreenode.py", line 56, in toString The issue is generated with changes to: protocoltreenode.py |
News? With python2.7 these changes do not work, can you confirm? Thanks |
So the image echoing is working. But I can't get it working to send a image from filePath If I convert the URL via .encode i get following thrown: Note 1: URL was shortened to improve readability |
Removed the logging modification from pull request. |
Anyone? |
As no one is accepting this, I will then close this PR. |
When a media was received, an error was thrown because of this logging issue.
This is my proposed solution, that works for me, but I don't know if it satisfies