Skip to content

Latest commit

 

History

History
executable file
·
88 lines (63 loc) · 3.85 KB

weichen_notes.md

File metadata and controls

executable file
·
88 lines (63 loc) · 3.85 KB
  • Install steps:
  1. Install Python 3.7
  • Pip upgrade as needed: python -m pip install --upgrade pip
  1. Pip install:
pip install requirements.txt
  1. Install VSCode (if not exist), then connect with Liveshare
  • Switch to x86_64: /usr/bin/arch -x86_64 /bin/zsh

  • Running carla:

    1. Virtual Andrew: - They don't allow downloading custom software and will delete softwares. So install on USB stick and use the computer's CPU/GPU
  1. Tried running via google cloud: https://ubuntu.com/blog/launch-ubuntu-desktop-on-google-cloud
  • Need at least 16GB ram - takes up lots of resources!
  • Ran into this error, I think it's cause I don't have a GPU:
(carla) wqiu2@carla:~/carla$ ./CarlaUE4.sh
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
LowLevelFatalError [File:Unknown] [Line: 1214]
GameThread timed out waiting for RenderThread after 60.00 secs
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=131160 LargeMemoryPoolOffset=196744
Malloc Size=131160 LargeMemoryPoolOffset=327928
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)
  1. Using local docker image: https://carla.readthedocs.io/en/latest/build_docker/

    arch -x86_64 /bin/bash
    
    sudo docker run --privileged --gpus all --net=host -e DISPLAY=$DISPLAY carlasim/carla:0.9.15 /bin/bash ./CarlaUE4.sh

    Running via docker image on mac gives architecture error:

    (base) weichen@weichens-air ~ % sudo docker run --privileged --gpus all --net=host -e DISPLAY=$DISPLAY -e SDL_VIDEODRIVER=x11 -v /tmp/.X11-unix:/tmp/.X11-unix:rw carlasim/carla:0.9.15 /bin/bash ./CarlaUE4.sh -vulkan
    
    WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
    docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
    ERRO[0000] error waiting for container: context canceled
    (base) weichen@weichens-air ~ % docker run -e DISPLAY=$DISPLAY --net=host --gpus all --runtime=nvidia carlasim/carla:<version> /bin/bash CarlaUE4.sh -opengl
    zsh: no such file or directory: version
    bash-3.2$ sudo docker run --privileged --gpus all --net=host -e DISPLAY=$DISPLAY -e SDL_VIDEODRIVER=x11 -v /tmp/.X11-unix:/tmp/.X11-unix:rw carlasim/carla:0.9.15 /bin/bash ./CarlaUE4.sh -vulkan
    
    WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
    docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
    bash-3.2$
    bash-3.2$ docker run -e DISPLAY=$DISPLAY --net=host --gpus all --runtime=nvidia carlasim/carla:<version> /bin/bash CarlaUE4.sh -opengl
    bash: version: No such file or directory
    bash-3.2$ docker run -e DISPLAY=$DISPLAY --net=host --gpus all --runtime=nvidia carlasim/carla:<version> /bin/bash CarlaUE4.sh -opengl
    bash: version: No such file or directory

Errors

-No module named 'torch' or 'torch.C'

  • pip uninstall torch and then pip install torch
  • File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64qbz5n2kfra8p0\lib\ctypes__init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found
  • pip uninstall scipy and then pip install scipy

Building CARLA: