Closed webMing closed 7 years ago
import socket File "/Users/apple/socket.py", line 4, in s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) AttributeError: module 'socket' has no attribute 'AF_INET' from this message , when i remove socket.py file in /Users/apple/socket.p this works well
try renaming the file to mysocket.py, that most likely gonna work https://stackoverflow.com/questions/14755963/websocket-server-in-python-module-object-has-no-attribute-af-inet/14756156#14756156
try renaming the file to mysocket.py, that most likely gonna work尝试将文件重命名为mysocket.py,这很可能会起作用 https://stackoverflow.com/questions/14755963/websocket-server-in-python-module-object-has-no-attribute-af-inet/14756156#14756156
thank you,very much
anyone encounter this problem ? and how to resolve it, great thank;
traits 4.6.0 vtk 7.0.0 traitsui 5.1.0
pyqt 4.11.4
python 3.5.3
qt 4.8.7 pyface 5.1.0