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

Neither of building&launching method works #147

Open
PaTara43 opened this issue Jul 15, 2021 · 0 comments
Open

Neither of building&launching method works #147

PaTara43 opened this issue Jul 15, 2021 · 0 comments

Comments

@PaTara43
Copy link
Member

1st method

mkdir -p catkin_ws/src && cd catkin_ws/src
git clone https://github.com/airalab/robonomics_comm
cd robonomics_comm
wget http://bootstrap.aira.life/robonomics.sh
chmod +x ./robonomics.sh
./robonomics.sh init        # for the first time only
./robonomics.sh mainnet     # or sidechain for Sidechain network

Output:

Hit:1 http://ru.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu bionic InRelease
Hit:5 http://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb debian InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:7 http://packages.ros.org/ros/ubuntu bionic InRelease [4 680 B]
Hit:8 https://download.sublimetext.com apt/stable/ InRelease
Hit:9 https://librealsense.intel.com/Debian/apt-repo bionic InRelease
Err:7 http://packages.ros.org/ros/ubuntu bionic InRelease
  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <[email protected]>
Fetched 4 680 B in 1s (6 419 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
290 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <[email protected]>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/bionic/InRelease  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <[email protected]>
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
curl is already the newest version (7.58.0-2ubuntu3.13).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.5).
The following packages were automatically installed and are no longer required:
  libhttp-parser2.7.1 libssh2-1 libstd-rust-1.47 libstd-rust-dev linux-hwe-5.4-headers-5.4.0-42
  linux-hwe-5.4-headers-5.4.0-72 linux-hwe-5.4-headers-5.4.0-73 rust-gdb rustc
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 290 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
./robonomics.sh: line 22: /home/kuka/.nix-profile/etc/profile.d/nix.sh: No such file or directory
error: unable to download 'https://aira.life/channels/aira-unstable': HTTP error 403
replacing old 'cachix-0.6.1'
installing 'cachix-0.6.1'
Configured https://aira.cachix.org binary cache in /home/kuka/.config/nix/nix.conf
error: attribute 'nixos' in selection path 'nixos.robonomics_comm' not found
error: attribute 'nixos' in selection path 'nixos.ipfs' not found
xz: (stdin): File format not recognized

2nd method:

nix build -f release.nix

Output:

Please update your tests to use the python test driver.
See https://github.com/NixOS/nixpkgs/pull/71684 for details.

builder for '/nix/store/7r7303lxy1hg0ilivriliirqiw1lhh25-vm-test-run-liability.drv' failed with exit code 255; last 10 log lines:
  (0.00 seconds)
  (0.00 seconds)
  (0.00 seconds)
  error: the VM quit before connecting
  (0.08 seconds)
  the VM quit before connecting
  vde_switch: EOF on stdin, cleaning up and exiting
  cleaning up
  killing liability_node (pid 25829)
  (0.00 seconds)
[0 built (1 failed)]
error: build of '/nix/store/7r7303lxy1hg0ilivriliirqiw1lhh25-vm-test-run-liability.drv' failed

3rd method:

catkin_make 

Output:
Everything is built, but when launching with

roslaunch robonomics_liability liability.launch
    keyfile:="/home/$USER/catkin_ws/src/robonomics_comm/data.json"
    keyfile_password_file:="/home/$USER/catkin_ws/src/robonomics_comm/password"
    web3_http_provider:="wss://mainnet.infura.io/ws/v3/<provider_address>"
    web3_ws_provider:="wss://mainnet.infura.io/ws"

The following output:

process[liability/player_service-8]: started with pid [28600]
Traceback (most recent call last):
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/scripts/ipfs_channel_node", line 4, in <module>
    from ipfs_common.nodes import ipfs_channel_node
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/src/ipfs_common/nodes.py", line 1, in <module>
    from .ipfs_channel import IPFSChannel
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/src/ipfs_common/ipfs_channel.py", line 7, in <module>
    from robonomics_msgs.messageValidator import convertMessage
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_msgs/src/robonomics_msgs/messageValidator.py", line 6, in <module>
    from .robonomicsMessageUtils import offer2dict, demand2dict, res2dict, \
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_msgs/src/robonomics_msgs/robonomicsMessageUtils.py", line 10, in <module>
    from web3.utils.normalizers import (
ModuleNotFoundError: No module named 'web3.utils'
Traceback (most recent call last):
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/scripts/ipfs_common_node", line 4, in <module>
    from ipfs_common.nodes import ipfs_common_node
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/src/ipfs_common/nodes.py", line 1, in <module>
    from .ipfs_channel import IPFSChannel
  File "/home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/src/ipfs_common/ipfs_channel.py", line 7, in <module>
    from robonomics_msgs.messageValidator import convertMessage
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_msgs/src/robonomics_msgs/messageValidator.py", line 6, in <module>
    from .robonomicsMessageUtils import offer2dict, demand2dict, res2dict, \
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_msgs/src/robonomics_msgs/robonomicsMessageUtils.py", line 10, in <module>
    from web3.utils.normalizers import (
ModuleNotFoundError: No module named 'web3.utils'
[liability/infochan/ipfs_channel-2] process has died [pid 28594, exit code 1, cmd /home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/scripts/ipfs_channel_node __name:=ipfs_channel __log:=/home/kuka/.ros/log/36bd145c-e550-11eb-a1f6-94c691104d82/liability-infochan-ipfs_channel-2.log].
log file: /home/kuka/.ros/log/36bd145c-e550-11eb-a1f6-94c691104d82/liability-infochan-ipfs_channel-2*.log
[liability/infochan/ipfs_channel-2] restarting process
process[liability/infochan/ipfs_channel-2]: started with pid [28619]
[liability/infochan/ipfs_common_node-3] process has died [pid 28595, exit code 1, cmd /home/kuka/catkin_ws3/src/robonomics_comm/ipfs_common/scripts/ipfs_common_node __name:=ipfs_common_node __log:=/home/kuka/.ros/log/36bd145c-e550-11eb-a1f6-94c691104d82/liability-infochan-ipfs_common_node-3.log].
log file: /home/kuka/.ros/log/36bd145c-e550-11eb-a1f6-94c691104d82/liability-infochan-ipfs_common_node-3*.log
[liability/infochan/ipfs_common_node-3] restarting process
process[liability/infochan/ipfs_common_node-3]: started with pid [28630]
Traceback (most recent call last):
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_liability/scripts/executor_node", line 4, in <module>
    from robonomics_liability.nodes import executor_node
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_liability/src/robonomics_liability/nodes.py", line 6, in <module>
    from .listener import Listener
  File "/home/kuka/catkin_ws3/src/robonomics_comm/robonomics_liability/src/robonomics_liability/listener.py", line 19, in <module>
    from persistent_queue import PersistentQueue
ModuleNotFoundError: No module named 'persistent_queue'

web3 is already satisfied. so is persist-queue
Also, please specify if it's mandatory to use .sh script and provide more examples or launching samples

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

1 participant