ament / uncrustify_vendor

CMake shim over the uncrustify library: https://github.com/uncrustify/uncrustify
Apache License 2.0
0 stars 9 forks source link

Compilation error python/pyenv related? #36

Closed LiohAu closed 1 year ago

LiohAu commented 1 year ago

Hello,

I have a compilation error when trying to compile ROS 2 which seems to depend on that package.

Here is the error log, any idea of what am I supposed to do ?

--- stderr: uncrustify_vendor                                                                                                                                                                                                             
pyenv: python: command not found

The `python' command exists in these Python versions:
  2.7.18

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.
pyenv: python: command not found

The `python' command exists in these Python versions:
  2.7.18

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.
make[5]: *** [src/option_enum.cpp] Error 127
make[4]: *** [CMakeFiles/uncrustify.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [uncrustify-0.72.0-prefix/src/uncrustify-0.72.0-stamp/uncrustify-0.72.0-build] Error 2
make[1]: *** [CMakeFiles/uncrustify-0.72.0.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 13 jobserver tokens available; should be 12!
---
Failed   <<< uncrustify_vendor [3.78s, exited with code 2]

I am on MacOS 13.0.1 with python 3.11.4 (system) and pyenv 2.3.23

clalancette commented 1 year ago

This seems like the pyenv environment isn't properly setup, and can't find python.

Since this doesn't seem like a problem with ROS 2, I'm going to close this one out. If you are still having problems, please open a question on https://answers.ros.org.