-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 Galactic Installation Issues #8
Comments
Many thanks for the great bug report and digging around! I'd like to further pin down the issue. What happens if you |
Seems like after running Environment Details
(base) C:\code>mamba create -n test python=3.8 pywin32
__ __ __ __
/ \ / \ / \ / \
/ \/ \/ \/ \
███████████████/ /██/ /██/ /██/ /████████████████████████
/ / \ / \ / \ / \ \____
/ / \_/ \_/ \_/ \ o \__,
/ _/ \_____/ `
|/
███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗
████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
██╔████╔██║███████║██╔████╔██║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝
mamba (0.19.0) supported by @QuantStack
GitHub: https://github.com/mamba-org/mamba
Twitter: https://twitter.com/QuantStack
█████████████████████████████████████████████████████████████
Looking for: ['python=3.8', 'pywin32']
conda-forge/win-64 Using cache
conda-forge/noarch Using cache
Transaction
Prefix: C:\Users\<username>\mambaforge\envs\test
Updating specs:
- python=3.8
- pywin32
Package Version Build Channel Size
--------------------------------------------------------------------------------------
Install:
--------------------------------------------------------------------------------------
+ ca-certificates 2021.10.8 h5b45459_0 conda-forge/win-64 Cached
+ openssl 3.0.0 h8ffe710_2 conda-forge/win-64 Cached
+ pip 21.3.1 pyhd8ed1ab_0 conda-forge/noarch Cached
+ python 3.8.12 h900ac77_2_cpython conda-forge/win-64 Cached
+ python_abi 3.8 2_cp38 conda-forge/win-64 Cached
+ pywin32 302 py38h294d835_2 conda-forge/win-64 Cached
+ setuptools 59.4.0 py38haa244fe_0 conda-forge/win-64 Cached
+ sqlite 3.37.0 h8ffe710_0 conda-forge/win-64 Cached
+ ucrt 10.0.20348.0 h57928b3_0 conda-forge/win-64 Cached
+ vc 14.2 hb210afc_5 conda-forge/win-64 Cached
+ vs2015_runtime 14.29.30037 h902a5da_5 conda-forge/win-64 Cached
+ wheel 0.37.0 pyhd8ed1ab_1 conda-forge/noarch Cached
Summary:
Install: 12 packages
Total download: 0 B
--------------------------------------------------------------------------------------
Confirm changes: [Y/n] y
Command Results
|
Hmmm.. trickier than I'd like it to be ;). How about installing colcon-common-extensions in the test environment now? Then cmake and compilers etc, and then ros-galactic-base? When does it break? |
Adding to test
I also tried making two minimal environments with the specific different Python builds
Those environments both work. I'll drill down further when I get a chance, but if there's anything that feels more likely in the ROS base packages/dependencies I can try that first. |
Thanks for hanging in there, @danzimmerman! Very weird error still .. @wolfv @traversaro do you have any input? Those packages look "suspicious" and might be worth trying to add package by package: getopt-win32 m2w64-gcc-libgfortran m2w64-gcc-libs m2w64-gmp m2w64-libwinpthread-git But honestly I'm not sure what's going on .. |
We've just rebuilt the Windows packages. Could you please try whether your problems are now resolved (note that we build against python=3.9)? |
@Tobias-Fischer Yes, looks like it's working 👍
All the distributions have been switched over to 3.9, yeah? The "Getting Started" page still says
I followed everything in the instructions verbatim except initializing the |
Great! |
Issue Description
I'm having trouble installing ROS2 Galactic on Windows 11 according to the Getting Started Instructions.
The steps up to and including
mamba install ros-galactic-desktop
are fine.However,
mamba
breaks after runningAny subsequent
mamba
commands error out withIn prior debugging, I isolated the issue to the installation of
pywin32
that's required bycolcon-common-extensions
. An example of the full error is given below.mamba info
Full Error Output:Interim Solution
It appears that downgrading to Python 3.8 in the
(base)
environment is sufficient to fix this for my freshmambaforge
installation:However, based on the prior attempt described below, I also expect that the
pywin32
version in(base)
and my(galactic)
ROS2 environment also needs to match.Prior Attempt
I reported this initially in the Robostack Gitter chat using an existing
miniconda3
installation. This attempt uses a fresh install ofmambaforge
to follow the instructions exactly instead. The specific error thrown there was different:I fixed my
miniconda3
installation by installing the same version ofpywin32
in the base environment, as suggested bymhammond/pywin32#1730 (comment)
Also potentially related:
jupyter/notebook#4980
pywin32
Postinstall ScriptThe
pywin32
installation instructions have a batch script that attempts to clean up after previouspywin32
installations.https://github.com/mhammond/pywin32#installing-via-pip
However, running this postinstall script on my
miniconda3
installation simply triggered a number of runtime DLL load errors, possibly by deleting something from the base environmentpywin32
.I still had to upgrade
pywin32
in the base environment on myminconda3
installation. The postinstall script also broke my Noetic installation, so I thinkpywin32
andpython
might have to match in ALL of the different virtual environments related to a single base environment.This suggests that the
mambaforge
installation might have to remain isolated to Robostack ROS and only Robostack ROS.I haven't dug into the postinstall script to figure out what it does, but I don't recommend running it if you have other virtual environments that depend on
pywin32
. They may break.Summary
It appears that to successfully install Robostack ROS2 Galactic with
colcon-common-extensions
on Windows, it is necessary to downgrade to Python 3.8 in the base environment and possibly ensure that thepywin32
versions in the base and ROS2 environments match.The text was updated successfully, but these errors were encountered: