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

controller is not work on windows #115

Open
Yimi81 opened this issue Jun 10, 2024 · 8 comments
Open

controller is not work on windows #115

Yimi81 opened this issue Jun 10, 2024 · 8 comments

Comments

@Yimi81
Copy link

Yimi81 commented Jun 10, 2024

The input library for obtaining devices is outdated, making it impossible to obtain device information correctly under Windows.

from inputs import devices

@alexpalms
Copy link
Member

alexpalms commented Jun 10, 2024

Hello @Yimi81,

can you please share additional details about:

  • The error you are receiving
  • The steps to replicate it
  • The environment you are using (OS, etc)

@Yimi81
Copy link
Author

Yimi81 commented Jun 10, 2024

python==3.9.18 diambra-arena==2.2.6

  1. Run controller. py and enter 4 to trigger the following error:
    image

  2. Annotate self. logger. basicConfig (logging_level) and run controller. py again
    image

  3. At first, I encountered a problem in llm-coloseum, which was stuck in the following interface and could not respond to input. Therefore, I determined that the inputs library did not correctly retrieve the input device in Windows
    image

I'm stuck on this interface. I pressed anything and there was no response

@alexpalms
Copy link
Member

@Yimi81 The logging problem should have been solved by this commit: 3d05266

Can you update diambra-arena package via pip install -U diambra-arena, make sure you get 2.2.7 version and try again?

@Yimi81
Copy link
Author

Yimi81 commented Jun 11, 2024

I upgraded to diambra arena, but the problem remains the same. I am unable to configure the device
both stuck
image

image

@Yimi81
Copy link
Author

Yimi81 commented Jun 11, 2024

press ctrl c, get:
image

@alexpalms
Copy link
Member

@Yimi81 Thanks for the followup.

Two things:

  1. Can you share the content of the python script you are executing? temp.py
  2. This seems to be related with inputs library itself, which might be blocked by some security setup on your machine, as explained here: https://inputs.readthedocs.io/en/latest/user/install.html#windows-permissions

@Yimi81
Copy link
Author

Yimi81 commented Jun 11, 2024

temp.py is copy from controller.py(https://github.com/diambra/arena/blob/main/diambra/arena/utils/controller.py).
Thanks, i will try it

@alexpalms
Copy link
Member

Let us know if you manage to solve the problem, so far it has always worked fine, and it is very probably is a security problem, as the connection is hanging.

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