Closed PositiveBeat closed 1 week ago
I will take a look and get back to you asap.
this line:
await session.sleep(0.1)
has been deprecated. Use asyncio.sleep
instead.
I am closing this, feel free to reopen if problem persists!
@geyang I have changed the code to this:
from vuer import Vuer, VuerSession
from vuer.schemas import DefaultScene, Urdf
import asyncio
app = Vuer()
@app.spawn(start=True)
async def main(session: VuerSession):
app.set @ DefaultScene(
Urdf("assets/urdf/cylinder.urdf"),
)
while True:
await asyncio.sleep(0.1) # Using asyncio instead of session.sleep(0.1)
The terminal still throws the same error. I don't have permission to reopen the issue, would you be able to do that in my stead?
Thank you.
Hello!
I've been trying to run the examples but with no luck so far. When running the example from the README:
I get the following error:
I think the root of the error is the very first lines, specifically
uplink:<ws_id> is not in websocket pool
, which is thrown in the uplink function from the server source code. This issue is likely related to https://github.com/vuer-ai/vuer/issues/21, but the error is a bit different.I'm on Ubuntu 22.04, Python 3.10, and have run
pip install vuer
in a virtual environment. I also tested on Windows 11 with the same result.I hope this is enough info, thanks in advance for any help!