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

Bad Imports #173

Open
SERGOPLC opened this issue Oct 16, 2024 · 1 comment
Open

Bad Imports #173

SERGOPLC opened this issue Oct 16, 2024 · 1 comment

Comments

@SERGOPLC
Copy link

Often when I install this locally an error occurs: ImportError:
cannot import name 'Server' from 'asyncio' (C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\__init__.py)

This can be solved by replacing the imports here to:

import asyncio
import functools
from asyncio import AbstractEventLoop, Future, IncompleteReadError
import logging
import random
import time
from typing import List, Callable, Optional
from .timestamped_unsigned_char_vector import TimestampedUnsignedCharVector
@noskill
Copy link
Collaborator

noskill commented Oct 16, 2024

How can it work if you remove Server from imports, but it is still used in the code??

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