RoboStack / ros-humble

Recipes for ROS 2 Humble Hawksbill
85 stars 33 forks source link

Does ros-humble support python 3.11 now? #65

Closed songyuc closed 1 year ago

songyuc commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

Hi, guys! Does ros-humble support python 3.11 now?

Installed packages

Later.

Environment info

Later.
Tobias-Fischer commented 1 year ago

No - not yet. We'll consider it for the next rebuild (no ETA for that, though)

songyuc commented 1 year ago

Thanks sincerely for the response!

songyuc commented 1 year ago

Hi, @Tobias-Fischer! Besides, is vs2022_win-64 supported, currently?

Tobias-Fischer commented 1 year ago

Not sure - @traversaro do you have any idea?

traversaro commented 1 year ago

Not sure - @traversaro do you have any idea?

Yes, all the packages have been built with VS2019 (if I recall correctly) and so you can use VS2022 downstream and link the libraries built with VS2019.

songyuc commented 1 year ago

Hi, @traversaro! I am at a beginner level in C++. And my question, to be specific, is can we use mamba install vs2022_win-64, for [install the Visual Studio command prompt]? Your answer and guide will be appreciated!

traversaro commented 1 year ago

Yes, you should use the one corresponding to the Visual Studio version you have installed:

songyuc commented 1 year ago

Could you please also provide this detailed information in the doc? Thanks very much!

Tobias-Fischer commented 1 year ago

Can you please open a pull request @songyuc?

songyuc commented 1 year ago

Hi, @Tobias-Fischer! As a GitHub beginner, I want to try a PR of this doc.

Tobias-Fischer commented 1 year ago

I've done this in https://github.com/RoboStack/robostack.github.io/pull/23

songyuc commented 1 year ago

@Tobias-Fischer, thanks sincerely for your support!

songyuc commented 1 year ago

Could you please add a requirement section in the doc, like:

Requirements: python <= 3.10

Tobias-Fischer commented 1 year ago

Please open a PR in https://github.com/RoboStack/robostack.github.io

songyuc commented 11 months ago

Hi, guys! I am using Miniforge, but I found that the default command, such as mamba create -n ros_humble, creates a Python 3.11 environment. However, I remember it has been mentioned that ros-humble currently does not support Python 3.11. But the current official documentation uses the default command, too, as mamba create -n ros_env. I am wondering if this operation will bring some potential problems.

traversaro commented 11 months ago

In theory mamba create -n ros_humble creates an empty environment. Can you provide the complete output of the mamba create -n ros_humble invocation that installs Python 3.11? Thanks!

songyuc commented 11 months ago
(base) C:\Users\songyucheng>conda info -e
# conda environments:
#
base                  *  C:\Users\songyucheng\mambaforge
mmcoursed3               C:\Users\songyucheng\mambaforge\envs\mmcoursed3
ros_env                  C:\Users\songyucheng\mambaforge\envs\ros_env

(base) C:\Users\songyucheng>mamba create -n ros_humble

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (1.4.1) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Looking for: []

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

     $ mamba activate ros_humble

To deactivate an active environment, use

     $ mamba deactivate

(base) C:\Users\songyucheng>mamba activate ros_humble

(ros_humble) C:\Users\songyucheng>python -V
Python 3.11.2

(ros_humble) C:\Users\songyucheng>
traversaro commented 11 months ago

I think what you are finding when you execute the python -V is the python installed in the base environment. Once you do either mamba install ros-noetic-desktop or mamba install ros-humble-desktop a suitable python will be installed in the ros_humble environment.

songyuc commented 11 months ago

Hello, @traversaro, thank you for your reply and help. I tested and found out that “Python 3.11.2” was actually the python environment that came with my Win11 system. I apologize for my lack of knowledge about python environments, and I appreciate your guidance very much.

songyuc commented 11 months ago

I noticed that you mentioned that “a suitable python will be installed”. Does this mean that ros-humble does not support custom python version?

traversaro commented 11 months ago

I noticed that you mentioned that “a suitable python will be installed”. Does this mean that ros-humble does not support custom python version?

Yes, at the moment we are not building for multiple Python versions.

songyuc commented 11 months ago

Thanks sincerely for @traversaro your response.