Git Product home page Git Product logo

Comments (13)

StoneT2000 avatar StoneT2000 commented on July 21, 2024 1

Taking a look

from maniskill.

StoneT2000 avatar StoneT2000 commented on July 21, 2024 1

Ok I can confirm I also get this error too, we'll try to fix this asap.

from maniskill.

xuanlinli17 avatar xuanlinli17 commented on July 21, 2024 1

For now could you try !pip install https://storage1.ucsd.edu/wheels/sapien-dev/sapien-2.0.0.dev20230405-cp39-cp39-manylinux2014_x86_64.whl in the install commands in the colab?

from maniskill.

ankile avatar ankile commented on July 21, 2024 1

These were the imports and setup lines that seemingly fixed it for me:

!pip install jedi==0.16
!pip install setuptools==65.6.3
!apt-get install -y --no-install-recommends libvulkan-dev
!pip install mani_skill2 stable_baselines3
!pip install --upgrade --no-cache-dir gdown
!pip install pyvirtualdisplay

!apt-get install -y xvfb python-opengl

!pip install https://storage1.ucsd.edu/wheels/sapien-dev/sapien-2.0.0.dev20230405-cp39-cp39-manylinux2014_x86_64.whl

from pyvirtualdisplay import Display

display = Display(visible=0, size=(1024, 768))
display.start()

Hopefully, this can save you from an hour or two of agony!

from maniskill.

xuanlinli17 avatar xuanlinli17 commented on July 21, 2024 1

Now the issue should be fixed.

from maniskill.

megatran avatar megatran commented on July 21, 2024

Thanks @StoneT2000. I wonder if there are any recent package upgrades that might have broken this. I know Google Colab sometimes likes to upgrade Python version so I tried to downgrade it to 3.9 and 3.8, still crashed.

from maniskill.

skylar93 avatar skylar93 commented on July 21, 2024

Having the same issue. :(

from maniskill.

megatran avatar megatran commented on July 21, 2024

I can confirm that this is the fix. Thanks so much @xuanlinli17

from maniskill.

StoneT2000 avatar StoneT2000 commented on July 21, 2024

Update: It seems colab now is missing some files shown in https://haosulab.github.io/ManiSkill2/getting_started/installation.html#troubleshooting

A temporary solution we will consider now is having colab notebooks download the missing files and copy them over from github.

from maniskill.

megatran avatar megatran commented on July 21, 2024

Update: It seems colab now is missing some files shown in https://haosulab.github.io/ManiSkill2/getting_started/installation.html#troubleshooting

A temporary solution we will consider now is having colab notebooks download the missing files and copy them over from github.

Thanks @StoneT2000 ...this issue is happening again today. I tried to follow your suggestion by download and placing the files in colab

!sudo apt-get install libglvnd-dev
!sudo mkdir -p /usr/share/vulkan/icd.d
!sudo wget -q https://raw.githubusercontent.com/haosulab/ManiSkill2/main/docker/nvidia_icd.json
!sudo mv nvidia_icd.json /usr/share/vulkan/icd.d
!cat /usr/share/vulkan/icd.d/nvidia_icd.json

!sudo mkdir -p /etc/vulkan/implicit_layer.d
!sudo wget -q https://raw.githubusercontent.com/haosulab/ManiSkill2/main/docker/nvidia_layers.json 
!sudo mv nvidia_layers.json /etc/vulkan/implicit_layer.d/
!cat /etc/vulkan/implicit_layer.d/nvidia_layers.json



!sudo mkdir -p /usr/share/glvnd/egl_vendor.d  # Create dir if it doesn't exist 

!echo '{ "file_format_version" : "1.0.0", "ICD" : { "library_path" : "libEGL_nvidia.so.0" } }' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json   

!cat /usr/share/glvnd/egl_vendor.d/10_nvidia.json 

!sudo apt-get install vulkan-utils

!mkdir -p /tmp/runtime  # Create directory 
!export XDG_RUNTIME_DIR=/tmp/runtime  # Set environment variable
!vulkaninfo

Now I'm getting

error: XDG_RUNTIME_DIR not set in the environment.
/build/vulkan-tools-KEbD_A/vulkan-tools-1.2.131.1+dfsg1/vulkaninfo/vulkaninfo.h:926: failed with ERROR_UNKNOWN

Any suggestions?

from maniskill.

megatran avatar megatran commented on July 21, 2024

Also, getting

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[<ipython-input-67-30d5f10bdeda>](https://localhost:8080/#) in <cell line: 19>()
     17 
     18 # create an environment with our configs and then reset to a clean state
---> 19 env = gym.make(env_id, obs_mode=obs_mode, reward_mode=reward_mode, control_mode=control_mode)
     20 obs = env.reset()
     21 print("Action Space:", env.action_space)

11 frames
[/usr/local/lib/python3.10/dist-packages/mani_skill2/sensors/camera.py](https://localhost:8080/#) in __init__(self, camera_cfg, scene, renderer_type, articulation)
    141         # Add camera
    142         if self.actor is None:
--> 143             self.camera = scene.add_camera(
    144                 camera_cfg.uid,
    145                 camera_cfg.width,

RuntimeError: copmileToSpirv: failed to compile shader

from maniskill.

StoneT2000 avatar StoneT2000 commented on July 21, 2024

I will be out today, I should be able to push a proper fix by tomorrow hopefully. One thing you could try first is just make sure you follow all steps in the trouble shooting document and make sure to reset the kernel.

from maniskill.

megatran avatar megatran commented on July 21, 2024

I will be out today, I should be able to push a proper fix by tomorrow hopefully. One thing you could try first is just make sure you follow all steps in the trouble shooting document and make sure to reset the kernel.

Thanks so much for the quick reply. I did follow the troubleshooting section to copy the missing files here

https://github.com/haosulab/ManiSkill2/issues/82#issuecomment-1526576361

from maniskill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.