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

ModuleNotFoundError: No module named 'yunet_detector' #5

Open
AaronVG99 opened this issue Oct 31, 2023 · 5 comments
Open

ModuleNotFoundError: No module named 'yunet_detector' #5

AaronVG99 opened this issue Oct 31, 2023 · 5 comments

Comments

@AaronVG99
Copy link

Last commit does not work.

Error:
Screenshot from 2023-10-31 11-54-50

@severin-lemaignan
Copy link
Contributor

Hi @AaronVG99 -- sorry for not seeing this report earlier!! do you still have the issue? the code might have changed quite a bit since then.

@FabAlert
Copy link

I have the same problem:

`~$ roslaunch hri_face_detect detect.launch rgb_camera:=usb_cam filtering_frame:=head_camera

process[hri_face_detect-1]: started with pid [19539]
Traceback (most recent call last):
File "/home/fabio/ros_ws/devel/lib/hri_face_detect/detect", line 15, in
exec(compile(fh.read(), python_script, 'exec'), context)
File "/home/fabio/ros_ws/src/hri_face_detect/scripts/detect", line 24, in
from yunet_detector import YuNetDetector
ModuleNotFoundError: No module named 'yunet_detector'
[hri_face_detect-1] process has died [pid 19539, exit code 1, cmd /home/fabio/ros_ws/devel/lib/hri_face_detect/detect image:=usb_cam/image_raw camera_info:=usb_cam/camera_info __name:=hri_face_detect __log:=/home/fabio/.ros/log/8b2c1e18-ea69-11ee-a9e3-d106cb67051d/hri_face_detect-1.log].
log file: /home/fabio/.ros/log/8b2c1e18-ea69-11ee-a9e3-d106cb67051d/hri_face_detect-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done`

How did you solve it?

@severin-lemaignan
Copy link
Contributor

it looks like the yunet_detector module has not been compiled. How did you install hri_face_detect?

@thetiennguyen
Copy link

I got the same above problem, how did you solve it. I clone hri_face detect from
https://github.com/ros4hri/hri_face_detect.git
Please help me if you fixed it already

@vignif
Copy link

vignif commented Jul 11, 2024

It runs smoothly on my machine.
First make sure to use the correct branch for your system, with ROS Noetic I think the correct one is main or hri_headers while for ROS2 is humble-devel.

i.e. for ROS Noetic you can clone it like this

git clone https://github.com/ros4hri/hri_face_detect.git -b main

The problem with yunet_detector comes from where the python binding installation is.

You can find the location of where your binding is with

find devel -name "yunet_detector.*"

This should return something like:

devel/lib/yunet_detector.cpython-38-x86_64-linux-gnu.so
devel/.private/hri_face_detect/lib/yunet_detector.cpython-38-x86_64-linux-gnu.so

A temporary solution is to move the library to a folder that is actually sourced by source devel/setup.bash with

mv devel/lib/yunet_detector.cpython-38-x86_64-linux-gnu.so devel/lib/python3/dist-packages/

Now you can source the build with

source devel/setup.bash

and the node detect should run

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

5 participants