#ModuleNotFoundError when running the 01 project on Windows

20 messages · Page 1 of 1 (latest)

empty pendant
#

Hello,

I'm experiencing a module import issue when trying to run the 01 project on Windows. I'm seeing the following error:

vbnet
Copy code
ModuleNotFoundError: No module named '01OS.clients.auto'
Steps to Reproduce:

  1. Cloned the repository from https://github.com/OpenInterpreter/01.
  2. Changed directory to 01\01OS\01OS, noting that the folder structure differs from the documentation which mentions a software folder.
  3. Ran poetry install successfully without any issues.
  4. Tried to start the application with poetry run 01.

Expected Behavior:
The application starts and initializes properly on a Windows environment.

Actual Behavior:
Encountered a ModuleNotFoundError related to an automatic client type determination mechanism.

Additional Context:

The script seems to attempt to import a client module based on a client_type variable, defaulting to 'auto'.
The clients directory includes esp32, linux, mac, and rpi but there's no indication of a Windows client module.

#

forcing the client to be mac for example solves the issue . If i press space bar it starts recoding and releasing it stops the recording :

poetry run 01 --client --client-type mac

But nothing happens if I speak a command.

minor skiff
#

Copy the .env file from /archive to /01OS should fix it

empty pendant
#

ok lemme try that. And remove the .example out of the name right ?

Now the other thing is . I need to run the server first by running these ? :
poetry run 01 --server

And then open annother cmd window and run :
poetry run 01 --client --client-type mac

minor skiff
#

Yes ! But client-type linux

empty pendant
#

got it , trying now, thanks

minor skiff
#

Let me know if it worked 💪

empty pendant
#

Alright something new , the server side had an error but seems to be running maybe ?

AttributeError: 'NoneType' object has no attribute 'replace'
Ready.

INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:10001 (Press CTRL+C to quit)

Also getting this in a loop on the client window side :

Connecting to ws://0.0.0.0:10001...

So at least its trying to connect to the server now.

minor skiff
#

--server-host localhost

#

For client

empty pendant
#

alright , seems like it made the connection at first but then got this error when i recorded a command :
connection open
Connection lost. Error: ......... Task got Future attached to a different loop

minor skiff
#

Set from info to logging In env file for more info. # the info line and un-# the log line. Bottom of the file I I remember correct.

empty pendant
#

the .env file had this already at the end :

Debug level

LOG_LEVEL=DEBUG
LOG_LEVEL="INFO"

eddited like this ?

Debug level

LOG_LEVEL=DEBUG
#LOG_LEVEL="INFO"

minor skiff
#

Should state more info on error now

empty pendant
#

alright , you want both logs ? server and client side ? is quite a lot

#

this is the server side. Is almost the same as before. The client side is a lot :

INFO: ('127.0.0.1', 52258) - "WebSocket /" [accepted]
INFO: connection open
Traceback (most recent call last):
File "C:\Open Interpreter\01\01OS\01OS\server\server.py", line 123, in websocket_endpoint
await asyncio.gather(receive_task, send_task)
File "C:\Open Interpreter\01\01OS\01OS\server\server.py", line 173, in send_messages
message = await to_device.get()
File "C:\Users\ernesto.ponce\AppData\Local\Programs\Python\Python39\lib\asyncio\queues.py", line 166, in get
await getter
RuntimeError: Task <Task pending name='Task-22' coro=<send_messages() running at C:\Open Interpreter\01\01OS\01OS\server\server.py:173> cb=[gather.<locals>._done_callback() at C:\Users\ernesto.ponce\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py:759]> got Future <Future pending> attached to a different loop

Connection lost. Error: Task <Task pending name='Task-22' coro=<send_messages() running at C:\Open Interpreter\01\01OS\01OS\server\server.py:173> cb=[gather.<locals>._done_callback() at C:\Users\ernesto.ponce\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py:759]> got Future <Future pending> attached to a different loop
INFO: connection closed

minor skiff
#

On my phone atm, might want to run in an env like conda

empty pendant
#

yeah no problem. Getting the same error inside the conda env :

minor skiff
#

Test server whitouwd local host

empty pendant
#

alright man , finnally got it working

Did a clean install and used these :
poetry run 01 --server --server-host localhost
poetry run 01 --client --client-type linux --server-host localhost