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

ImportError: cannot import name '**' from '**' (unknown location) #68

Open
MartinRivadeneira opened this issue Feb 21, 2022 · 3 comments

Comments

@MartinRivadeneira
Copy link

Good afternoon!

Today I was trying to develop some functionalities and for that I cloned some ros packages from the internet, but some of them weren't working and gave problems. In the end, I erased all these packages, but when I tried to run my code I'm getting a new error.

So I developed a ROS msg called "detection_info.msg", and it is recognize by rosmsg list and the catkin_ws also compile when I run the command "catkin_make", but then, when I try to run the node that uses this message, it shows the following error:
image

I've been trying to solve this, but I really don't know how. The message is also recognized by pycharm:
image

I don't know if the problem has something to do with the fact that I tried to compile some packages that weren't working, but now it's in fact compiling but still doesn't recognize the message.

Thank you for your help!

Martin

@MartinRivadeneira
Copy link
Author

@miguelriemoliveira

@miguelriemoliveira
Copy link
Owner

Hi @MartinRivadeneira ,

not sure what is going on ... can you compile with catkin_make?

Do you have the message listed when you run

ros msg list

@MartinRivadeneira
Copy link
Author

Yes, I can compile without problem and the message does appear in roosmsg list…. I can’t understand what the problem is…

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

2 participants