ll7 / paf21-2

3 stars 0 forks source link

`setup.sh` fails #186

Open ll7 opened 2 years ago

ll7 commented 2 years ago
~/git/paf21-2$ ./scripts/setup.sh 
[sudo] password for luttkule: 
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Hit:3 http://deb.anydesk.com all InRelease                                                                                                                                           
Hit:4 http://de.archive.ubuntu.com/ubuntu focal InRelease                                                                                                       
Hit:5 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease                                                                          
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                   
Hit:8 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease                                        
Hit:9 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease                                            
Hit:10 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease                              
Hit:11 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease                                   
Err:3 http://deb.anydesk.com all InRelease                                                             
  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
Hit:12 https://dl.google.com/linux/chrome/deb stable InRelease                                                 
Hit:13 http://packages.microsoft.com/repos/code stable InRelease                                               
Hit:14 http://packages.ros.org/ros/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.anydesk.com all InRelease: The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libegl1-mesa-dev libepoxy-dev libfwupdplugin1 libgstreamer-plugins-bad1.0-0 libgtk-3-dev libva-wayland2 libwayland-bin libwayland-dev libxkbcommon-dev libxtst-dev
  wayland-protocols x11proto-record-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bash: subscripts/_setup_ros.sh: No such file or directory
ll7 commented 2 years ago

cd to scripts

~/git/paf21-2/scripts$ ./setup.sh 
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Hit:3 http://deb.anydesk.com all InRelease                                                                                                                                                                                                                                 
Hit:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease                                                                                                                                                                                     
Hit:6 http://de.archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                               
Hit:7 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease                                                                                              
Hit:8 http://packages.microsoft.com/repos/code stable InRelease                                                                                                    
Hit:9 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease                                                                                          
Hit:10 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                 
Hit:11 https://dl.google.com/linux/chrome/deb stable InRelease                                                       
Err:3 http://deb.anydesk.com all InRelease                                                     
  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
Hit:12 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease                           
Hit:13 http://packages.ros.org/ros/ubuntu focal InRelease                                      
Hit:14 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.anydesk.com all InRelease: The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libegl1-mesa-dev libepoxy-dev libfwupdplugin1 libgstreamer-plugins-bad1.0-0 libgtk-3-dev libva-wayland2 libwayland-bin libwayland-dev libxkbcommon-dev libxtst-dev
  wayland-protocols x11proto-record-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.7).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libegl1-mesa-dev libepoxy-dev libfwupdplugin1 libgstreamer-plugins-bad1.0-0 libgtk-3-dev libva-wayland2 libwayland-bin libwayland-dev libxkbcommon-dev libxtst-dev
  wayland-protocols x11proto-record-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
OK
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Hit:3 http://deb.anydesk.com all InRelease                                                                                                                                                                                                                                 
Hit:4 http://packages.microsoft.com/repos/code stable InRelease                                                                                                                                                                                                            
Hit:5 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease                                                                                                                                                              
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                           
Hit:7 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease                          
Hit:8 http://de.archive.ubuntu.com/ubuntu focal InRelease                                                            
Hit:10 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease                                           
Hit:11 https://dl.google.com/linux/chrome/deb stable InRelease                                                       
Hit:12 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease                             
Hit:13 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease     
Err:3 http://deb.anydesk.com all InRelease         
  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
Hit:14 http://packages.ros.org/ros/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.anydesk.com all InRelease: The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-noetic-desktop-full is already the newest version (1.5.0-1focal.20220328.230759).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libegl1-mesa-dev libepoxy-dev libfwupdplugin1 libgstreamer-plugins-bad1.0-0 libgtk-3-dev libva-wayland2 libwayland-bin libwayland-dev libxkbcommon-dev libxtst-dev
  wayland-protocols x11proto-record-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-rosinstall is already the newest version (0.7.8-4).
python3-wstool is already the newest version (0.1.18-2).
build-essential is already the newest version (12.8ubuntu1.1).
python3-rosdep is already the newest version (0.21.0-1).
python3-rosinstall-generator is already the newest version (0.1.22-1).
ros-noetic-cv-bridge is already the newest version (1.16.0-1focal.20220107.002150).
ros-noetic-lanelet2 is already the newest version (1.1.1-1focal.20210726.193049).
ros-noetic-move-base is already the newest version (1.17.1-1focal.20220221.111339).
ros-noetic-teb-local-planner is already the newest version (0.9.1-1focal.20220221.110922).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libegl1-mesa-dev libepoxy-dev libfwupdplugin1 libgstreamer-plugins-bad1.0-0 libgtk-3-dev libva-wayland2 libwayland-bin libwayland-dev libxkbcommon-dev libxtst-dev
  wayland-protocols x11proto-record-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ERROR: default sources list file already exists:
        /etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
ll7 commented 2 years ago

I guess that the problem is, that ros itself is already installed on the PC for all users. If ros is already installed is neither checked in setup.sh nor in _setup_ros.sh.

ll7 commented 2 years ago

_setup_carla.sh worked I guess.

ll7 commented 2 years ago

_setup_paf.sh

had issues

# ...
Hit:11 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease                               
Err:4 http://deb.anydesk.com all InRelease                                 
  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
Hit:12 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:13 http://packages.ros.org/ros/ubuntu focal InRelease           
Hit:14 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.anydesk.com all InRelease: The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease  The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <info@philandro.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
# ...
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/lib/python3/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.9,>=2.8->tensorflow) (0.2.1)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=4.4; python_version < "3.10"->markdown>=2.6.8->tensorboard<2.9,>=2.8->tensorflow) (1.0.0)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.9,>=2.8->tensorflow) (3.1.0)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa<5,>=3.1.4; python_version >= "3.6"->google-auth<3,>=1.6.3->tensorboard<2.9,>=2.8->tensorflow) (0.4.2)
ERROR: carla-birdeye-view 1.1.1 has requirement filelock==3.0.12, but you'll have filelock 3.6.0 which is incompatible.
ERROR: carla-birdeye-view 1.1.1 has requirement numpy==1.18.3, but you'll have numpy 1.22.2 which is incompatible.
Installing collected packages: osrf-pycommon, catkin-tools, opt-einsum, keras-preprocessing, tf-estimator-nightly, typing-extensions, absl-py, astunparse, gast, tensorflow-io-gcs-filesystem, keras, libclang, h5py, google-pasta, protobuf, flatbuffers, importlib-metadata, markdown, cachetools, rsa, google-auth, requests-oauthlib, google-auth-oauthlib, tensorboard-plugin-wit, werkzeug, tensorboard-data-server, tensorboard, tensorflow, bezier, filelock
  WARNING: The script catkin is installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script markdown_py is installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts pyrsa-decrypt, pyrsa-encrypt, pyrsa-keygen, pyrsa-priv2pub, pyrsa-sign and pyrsa-verify are installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script google-oauthlib-tool is installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script tensorboard is installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts estimator_ckpt_converter, import_pb_to_tensorboard, saved_model_cli, tensorboard, tf_upgrade_v2, tflite_convert, toco and toco_from_protos are installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed absl-py-1.0.0 astunparse-1.6.3 bezier-2021.2.12 cachetools-5.0.0 catkin-tools-0.8.5 filelock-3.6.0 flatbuffers-2.0 gast-0.5.3 google-auth-2.6.2 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 h5py-3.6.0 importlib-metadata-4.11.3 keras-2.8.0 keras-preprocessing-1.1.2 libclang-13.0.0 markdown-3.3.6 opt-einsum-3.3.0 osrf-pycommon-2.0.1 protobuf-3.20.0 requests-oauthlib-1.3.1 rsa-4.8 tensorboard-2.8.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.8.0 tensorflow-io-gcs-filesystem-0.24.0 tf-estimator-nightly-2.8.0.dev2021122109 typing-extensions-4.1.1 werkzeug-2.1.1
Requirement already satisfied: carla_birdeye_view in /usr/local/lib/python3.8/dist-packages (1.1.1)
Collecting numpy
  Downloading numpy-1.22.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
     |████████████████████████████████| 16.8 MB 6.6 MB/s 
Installing collected packages: numpy
  WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/home/luttkule/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.22.3
setting up commonroad...
bash: _set_python_executable.sh: No such file or directory

...

pre-commit installed at .git/hooks/pre-commit
pre-commit installed at .git/hooks/post-checkout
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/pocc/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/ambv/black.
[INFO] Initializing environment for https://github.com/pycqa/flake8.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pocc/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/ambv/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Check JSON...............................................................Passed
Fix End of Files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing docs/imgs/PAF_Architektur_final.drawio.svg

done installing
ll7 commented 2 years ago