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

Failing basic start with connect_device_package on Windows 10 #43

Closed
lthiery-molekule opened this issue Apr 18, 2017 · 2 comments
Closed

Comments

@lthiery-molekule
Copy link

Sorry to post another issue, but I'm failing at the exact same point on Windows 10.

From Powershell, I run start.ps1

Running pub/sub sample application...
2017-04-17 20:02:41,837 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Paho MQTT Cl
2017-04-17 20:02:41,838 - AWSIoTPythonSDK.core.protocol.mqttCore - INFO - ClientID: bas
2017-04-17 20:02:41,844 - AWSIoTPythonSDK.core.protocol.mqttCore - INFO - Protocol: MQT
2017-04-17 20:02:41,845 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Register Pah
2017-04-17 20:02:41,849 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - mqttCore ini
2017-04-17 20:02:41,850 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Load CAFile
2017-04-17 20:02:41,851 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Load Key fro
2017-04-17 20:02:41,853 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Load Cert fr
2017-04-17 20:02:41,860 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,861 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,865 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,865 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,866 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,867 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Custom setti
2017-04-17 20:02:41,868 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Set maximum
2017-04-17 20:02:41,877 - AWSIoTPythonSDK.core.protocol.mqttCore - DEBUG - Set maximum
2017-04-17 20:02:41,880 - AWSIoTPythonSDK.core.protocol.mqttCore - INFO - Connection ty
Traceback (most recent call last):
  File "aws-iot-device-sdk-python\samples\basicPubSub\basicPubSub.py", line 133, in <mo
    myAWSIoTMQTTClient.connect()
  File "C:\Users\Louis Thiery\AppData\Local\Programs\Python\Python36-32\lib\site-packag
    return self._mqttCore.connect(keepAliveIntervalSecond)
  File "C:\Users\Louis Thiery\AppData\Local\Programs\Python\Python36-32\lib\site-packag
    self._pahoClient.connect(self._host, self._port, keepAliveInterval)  # Throw except
  File "C:\Users\Louis Thiery\AppData\Local\Programs\Python\Python36-32\lib\site-packag
    return self.reconnect()
  File "C:\Users\Louis Thiery\AppData\Local\Programs\Python\Python36-32\lib\site-packag
    self._sock.setblocking(0)
OSError: [WinError 10038] An operation was attempted on something that is not a socket```

When I Google the issue, it seems to be that the socket is closed too soon... but if so, this is a problem with the source of this project.

Best,
Louis
@lthiery-molekule lthiery-molekule changed the title Failing basic start with connect_device_package Windows 10 Failing basic start with connect_device_package on Windows 10 Apr 18, 2017
@liuszeng
Copy link
Contributor

Hi @lthiery-molekule ,

Thank you very much for your interest in AWS IoT Python SDK.

One thing that I noticed here is, you are using Python 3.6 to run the SDK sample. There is a known issue with Python 3.6 regarding their breaking changes in socket: #29

Can you try the fix mentioned in the post above and see if the issue still exists?

Thanks,
Liusu

@liuszeng
Copy link
Contributor

Hi @lthiery-molekule ,

We have not heard from you for a while. We are closing the issue for now. If you have any further questions, please feel free to re-open this issue or start a new thread.

Thanks,
Liusu

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