trueagi-io / minecraft-demo

GNU Affero General Public License v3.0
6 stars 9 forks source link

Bad Imports #173

Open SERGOPLC opened 4 weeks ago

SERGOPLC commented 4 weeks ago

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 commented 4 weeks ago

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