This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: asyncio.Protocol on windows 10 x64
Type: compile error Stage: resolved
Components: asyncio Versions: Python 3.7
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, hsocarras, yselivanov
Priority: normal Keywords:

Created on 2020-02-05 17:31 by hsocarras, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg361444 - (view) Author: Hector E. Socarras (hsocarras) Date: 2020-02-05 17:31
I test de sample Echo Tcp Server on When I run de server i got the following error from python interpreter
Traceback (most recent call last):
  File "", line 1, in <module>
    import asyncio
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python37\lib\asyncio\", line 8, in <module>
    from .base_events import *
  File "C:\Users\Hector\AppData\Local\Programs\Python\Python37\lib\asyncio\", line 23, in <module>
    import socket
  File "C:\Users\Hector\pynode\net\", line 7, in <module>
    class NetBaseProtocol(asyncio.Protocol, EventEmitter):
AttributeError: module 'asyncio' has no attribute 'Protocol'

the problem was that i have a module named socket in the same folder. But I think that should import the apropiate socket module using relative import or supplying full path for his socket import.
Date User Action Args
2022-04-11 14:59:26adminsetgithub: 83744
2020-02-05 17:38:58hsocarrassetstatus: open -> closed
stage: resolved
2020-02-05 17:31:11hsocarrascreate