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

[windows] C:¥dev¥ros2¥local_setup.bat can not find Python36 #311

Closed
sugarsweetrobotics opened this issue Feb 13, 2017 · 3 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@sugarsweetrobotics
Copy link

I installed ROS2 in Windows10 x64 Pro with Chocolatey v0.10.3.
C:¥dev¥ros2¥local_setup.bat can not find Python.exe because the default folder where the Python36 is installed by choco is different from "C:¥ProgramData¥Chocolatey¥lib¥Python3¥tools¥Python.exe".

I edited line 26 of local_setup.bat like below:

  • set "ament_python_executable=C:\ProgramData\chocolatey\lib\python3\tools\python.exe"
  • set "ament_python_executable=C:\Python36\python.exe"

Then, I got the correct output of the talker/listener examples.

@mikaelarguedas
Copy link
Member

Hi @sugarsweetrobotics,
Thanks for reporting the issue.

Did you install from source or from binaries?

  • If from binaries:
    It may be because our windows machines building the binaries need to be updated to use the latest version of chocolatey + python.
  • If building from source:
    That may be because you had an older version of chocolatey and python when you built your ROS2 workspace. Since then installed/upgraded your python through chocolatey before sourcing your local_setup.bat

@mikaelarguedas
Copy link
Member

mikaelarguedas commented Feb 13, 2017

Note: the path to python you can set the environment variable AMENT_PYTHON_EXECUTABLE to override whatever Python executable was used at configure/build time

@mikaelarguedas
Copy link
Member

duplicate of #360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants