Giter Site home page Giter Site logo

Comments (8)

yun-long avatar yun-long commented on September 23, 2024

you are missing the catkin_pkg in your python. Try to install it via "(sudo) pip install catkin_pkg" or "pip3 install catkin_pkg".

Or google the error message, Import error, no module named "catkin_pkg". I believe you can find the answer.

from flightmare.

sotomotocross avatar sotomotocross commented on September 23, 2024

I have run all the commands you have told me.
Also I tried to run: sudo apt-get install python-catkin-pkg
In all cases the catkin_pkg is installed in the system.
Also googling the message didn't gave me any solutions.
Do you have any more propositions?
Thank you very much.

from flightmare.

yun-long avatar yun-long commented on September 23, 2024

Hmmm, it looks like a catkin/python/ROS problem.

Did you build other ROS projects on your machine before?

from flightmare.

peasant98 avatar peasant98 commented on September 23, 2024

Hi @sotomotocross, do you get a new error after installing catkin_pkg? Or does from catkin_pkg.package import parse_package still cause an error?

from flightmare.

yun-long avatar yun-long commented on September 23, 2024

closing the issue. it seems like a ROS installation problem. feel free to reopen it if the issue still exists.

from flightmare.

sotomotocross avatar sotomotocross commented on September 23, 2024

Excuse me for the lack of feedback. I was with another project.
The error still exists. I tried to install the flightmare on a new Ubuntu 18.04.05 LTS system and i have the problem of the two attached screenshots.
Screenshot from 2020-09-23 14-17-41
Screenshot from 2020-09-23 14-18-00
I have installed the below:

  1. sudo apt install python-catkin-pkg python-catkin-tools
  2. pip install catkin-tools
  3. pip install catkin-tools-python
  4. sudo -H pip install -U catkin_pkg

Still the error doesn't stop appearing.
I have run catkin build before on this system and everything run ok. Especially earlier today i built https://github.com/uzh-rpg/rpg_esim that uses similar steps.

I don't know what else to do and i really need any help available.
Thank you in advance for the cooperation, time and help.
Looking forward to here from someone.

from flightmare.

vivekrathi14 avatar vivekrathi14 commented on September 23, 2024

Initialize your build for python 2.7. It seems your catkin tools point to python 3.7.
Do this in your workspace directory (~/catkin_ws)
catkin config --init --mkdirs --extend /opt/ros/$ROS_DISTRO --merge-devel --cmake-args -DCMAKE_BUILD_TYPE=Release -DPYTHON_VERSION=2.7

from flightmare.

jtorde avatar jtorde commented on September 23, 2024

In case it helps, I was having the same issue (in Ubuntu 18.04 + ROS Melodic), and

sudo apt install python3-pip
pip3 install catkin_pkg

(as suggested above) solved the problem

from flightmare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.