Issue 1: I have a fresh installation of Ubuntu 22.04 server on my RPi4 8GB and Install ROS2 Humble and tried this but still getting errors on my Python3 virtualenv. Do I need to build from the source?
ubuntu@ubuntu:~$ source 3d/bin/activate
(3d) ubuntu@ubuntu:~/ros2_ws/src/sdk-examples/python/oak/ros2$ python3 --version
Python 3.10.12
(3d) ubuntu@ubuntu:~/ros2_ws/src/sdk-examples/python/oak/ros2$ pip3 --version
pip 23.3.2 from /home/ubuntu/3d/lib/python3.10/site-packages/pip (python 3.10)
(3d) ubuntu@ubuntu:~/ros2_ws/src/sdk-examples/python/oak/ros2$ pip --version
pip 23.3.2 from /home/ubuntu/3d/lib/python3.10/site-packages/pip (python 3.10)
(3d) ubuntu@ubuntu:~/ros2_ws/src/sdk-examples/python/oak/ros2$ pip install spectacularAI
ERROR: Could not find a version that satisfies the requirement spectacularAI (from versions: none)
ERROR: No matching distribution found for spectacularAI
I even tried it on a different Ubuntu 20.04 desktop on my RPi4. I am getting a different issue there. If anyone faced a similar issue please help me out.
Issue 2:
ubuntu@ubuntu:~$ source vision/bin/activate
(vision) ubuntu@ubuntu:~$ pip install spectacularAI
Requirement already satisfied: spectacularAI in ./vision/lib/python3.8/site-packages (1.22.0)
Requirement already satisfied: depthai>=2.22.0 in ./vision/lib/python3.8/site-packages (from spectacularAI) (2.24.0.0)
Requirement already satisfied: numpy in ./vision/lib/python3.8/site-packages (from spectacularAI) (1.24.4)
(vision) ubuntu@ubuntu:~$ sudo curl -fL https://docs.luxonis.com/install_dependencies.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5671 100 5671 0 0 7663 0 --:--:-- --:--:-- --:--:-- 1846k
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 http://packages.ros.org/ros/ubuntu focal InRelease
Hit:3 http://packages.ros.org/ros2/ubuntu focal InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Fetched 114 kB in 2s (49.0 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg-dev is already the newest version (8c-2ubuntu8).
libpng-dev is already the newest version (1.6.37-2).
libsm6 is already the newest version (2:1.2.3-1).
libxext6 is already the newest version (2:1.3.4-0ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu4).
python3 is already the newest version (3.8.2-0ubuntu2).
python3-dev is already the newest version (3.8.2-0ubuntu2).
libdc1394-22-dev is already the newest version (2.2.5-2.1).
libgtk2.0-dev is already the newest version (2.24.32-4ubuntu4).
libtbb-dev is already the newest version (2020.1-2).
libtbb2 is already the newest version (2020.1-2).
python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1).
python3-pyqt5.qtquick is already the newest version (5.14.1+dfsg-3build1).
qml-module-qt-labs-platform is already the newest version (5.12.8+dfsg-0ubuntu1).
qml-module-qtquick-controls2 is already the newest version (5.12.8+dfsg-0ubuntu1).
qml-module-qtquick-layouts is already the newest version (5.12.8-0ubuntu1).
qml-module-qtquick-window2 is already the newest version (5.12.8-0ubuntu1).
qml-module-qtquick2 is already the newest version (5.12.8-0ubuntu1).
qtchooser is already the newest version (66-2build1).
qtdeclarative5-dev is already the newest version (5.12.8-0ubuntu1).
build-essential is already the newest version (12.8ubuntu1.1).
cmake is already the newest version (3.16.3-1ubuntu1.20.04.1).
git is already the newest version (1:2.25.1-1ubuntu3.11).
libgl1-mesa-glx is already the newest version (21.2.6-0ubuntu0.1~20.04.2).
libtiff-dev is already the newest version (4.1.0+git191117-2ubuntu0.20.04.11).
python3-numpy is already the newest version (1:1.17.4-5ubuntu3.1).
udev is already the newest version (245.4-4ubuntu3.22).
ffmpeg is already the newest version (7:4.2.7-0ubuntu0.1).
libavcodec-dev is already the newest version (7:4.2.7-0ubuntu0.1).
libavformat-dev is already the newest version (7:4.2.7-0ubuntu0.1).
libswscale-dev is already the newest version (7:4.2.7-0ubuntu0.1).
python3-pip is already the newest version (20.0.2-5ubuntu1.10).
qt5-qmake is already the newest version (5.12.8+dfsg-0ubuntu2.1).
qtbase5-dev is already the newest version (5.12.8+dfsg-0ubuntu2.1).
qtbase5-dev-tools is already the newest version (5.12.8+dfsg-0ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: pip in ./vision/lib/python3.8/site-packages (23.3.2)
Installing udev rules...
Finished installing global libraries.
(vision) ubuntu@ubuntu:~$ ros2 launch launch/mapping.py
Package 'launch/mapping.py' not found: "package 'launch/mapping.py' not found, searching: ['/opt/ros/foxy']"
(vision) ubuntu@ubuntu:~$ cd ros2_ws/src/ros2/
(vision) ubuntu@ubuntu:~/ros2_ws/src/ros2$ ros2 launch launch/mapping.py
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2024-01-14-16-51-47-378722-ubuntu-3476
[INFO] [launch]: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at /opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py:226> exception=PackageNotFoundError("package 'spectacularai_depthai' not found, searching: ['/opt/ros/foxy']")>
Traceback (most recent call last):
File "/opt/ros/foxy/lib/python3.8/site-packages/ament_index_python/packages.py", line 50, in get_package_prefix
content, package_prefix = get_resource('packages', package_name)
File "/opt/ros/foxy/lib/python3.8/site-packages/ament_index_python/resources.py", line 48, in get_resource
raise LookupError(
LookupError: Could not find the resource 'spectacularai_depthai' of type 'packages'
While handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py", line 248, in process_event
visit_all_entities_and_collect_futures(entity, self.context))
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
[Previous line repeated 2 more times]
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/action.py", line 108, in visit
return self.execute(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/actions/node.py", line 453, in execute
ret = super().execute(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/actions/execute_process.py", line 823, in execute
self.__expand_substitutions(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/actions/execute_process.py", line 668, in expand_substitutions
cmd = [perform_substitutions(context, x) for x in self.cmd]
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/actions/execute_process.py", line 668, in <listcomp>
cmd = [perform_substitutions(context, x) for x in self.__cmd]
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/perform_substitutions_impl.py", line 26, in perform_substitutions
return ''.join([context.perform_substitution(sub) for sub in subs])
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/utilities/perform_substitutions_impl.py", line 26, in <listcomp>
return ''.join([context.perform_substitution(sub) for sub in subs])
File "/opt/ros/foxy/lib/python3.8/site-packages/launch/launch_context.py", line 232, in perform_substitution
return substitution.perform(self)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/substitutions/executable_in_package.py", line 76, in perform
package_prefix = super().perform(context)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/substitutions/find_package.py", line 79, in perform
result = self.find(package)
File "/opt/ros/foxy/lib/python3.8/site-packages/launch_ros/substitutions/find_package.py", line 96, in find
return get_package_prefix(package_name)
File "/opt/ros/foxy/lib/python3.8/site-packages/ament_index_python/packages.py", line 52, in get_package_prefix
raise PackageNotFoundError(
ament_index_python.packages.PackageNotFoundError: "package 'spectacularai_depthai' not found, searching: ['/opt/ros/foxy']"
(vision) ubuntu@ubuntu:~/ros2_ws/src/ros2$ pip3 install spectacularAI
Requirement already satisfied: spectacularAI in /home/ubuntu/vision/lib/python3.8/site-packages (1.22.0)
Requirement already satisfied: depthai>=2.22.0 in /home/ubuntu/vision/lib/python3.8/site-packages (from spectacularAI) (2.24.0.0)
Requirement already satisfied: numpy in /home/ubuntu/vision/lib/python3.8/site-packages (from spectacularAI) (1.24.4)