-
Notifications
You must be signed in to change notification settings - Fork 428
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
Python 3.6 socket error #29
Comments
Hi @anikey-m , We were able to duplicate the issue. Thank you very much for pointing this out. As a work around for now, you can manually update the lines (line 806 and line 807) as follows:
You should then be able to use the SDK as usual. We will incorporate the fix into the next release after it goes through our internal testing/release process. Sorry for the inconvenience. Thanks, |
Tried this patch in both 2.7.10 and 3.6.0, and no resolve. For whatever reason, the 2.7.13 version works just fine. That is the current version that installs through brew, 'brew install python'. Any word on the patch, or an update for 3.6? |
Hi @mcintyremason , Thank you very much for your interest in AWS IoT Python SDK. Sorry that the work-around is not working for you. One thing you may want to check is that you made changes to the correct SDK source files. If you have different versions of Python installed, you will need to go to the site-packages directory for that specific Python version. On macOS, for example, the Python 3.6 installation directory should look similar to this:
Can you share the traceback when you are having the issue using the SDK with Python 3.6? It would be really helpful for us to detect some undiscovered issues or do further investigation for you. Thanks, |
Hi @mcintyremason , Thank you very much for providing the information. Can you verify again that the patch has been applied to the following SDK source file?
Thanks, |
I must have applied the patch in the wrong place before. It was missing from the file you mentioned in the file above. I added the patch, and everything seems to be working as expected. Thank you! |
This is bad and should be fixed. Can't believe it has been so many months since this issue is opened and AWS is still providing such poor quality libraries and support. This patch should be released to pip asap! @liuszeng |
I spun wheels for several hours before finally deciding that the SDK just didn't work, at which point I found this issue. This was reported back in January. How is this not patched and released to pip yet? |
+1 Btw, this is already fixed in upstream paho: |
But when will it be fixed in the sdk!? |
Addressed in v1.1.2. |
Hi SDK team,
I upgrade Python to version 3.6 and got following traceback:
The error is repeated on all samples from this repository. It seems that the problem is within the PAHO library. This problem seems to have been solved by a bugfix (issue).
As I understand in other Python 3 versions this code does not produce exception, but ssl-socket still in blocking mode.
The text was updated successfully, but these errors were encountered: