xavierpuigf / virtualhome

API to run VirtualHome, a Multi-Agent Household Simulator
http://virtual-home.org
MIT License
405 stars 65 forks source link

error: XDG_RUNTIME_DIR not set in the environment. #105

Open Tomshine123 opened 9 months ago

Tomshine123 commented 9 months ago

Hi, I am trying to follow instructions and running the following code:

from simulation.unity_simulator import comm_unity comm = comm_unity.UnityCommunication(file_name="./simulation/unity_simulator/linux_exec.v2.3.0.x86_64", port="8082", x_display="1")

After the program launched the unity window appeared but kept in black with nothing, and in the terminal it got stuck in

Getting connection...

and there was an error saying

error: XDG_RUNTIME_DIR not set in the environment.

Did anyone meet the same issue like this?

vdorbala commented 9 months ago

I had the exact same issue. I reverted back to the older version here and it worked.

CharlesFang207 commented 2 months ago

Hi, did u guys find another way to avoid this error? @Tomshine123 @vdorbala

windweller commented 2 weeks ago

Actually, vdorbala's solution worked -- downloading from an older version (through the link vdorbala provided) is the way -- I tried on Ubuntu 20 LTS and it works.

The link says "last_release" and downloads linux_exec.v2.2.4.x86_64 instead of linux_exec.v2.3.0.x86_64.