Comments (13)
Just adding a confirmation that Debian version of python3 3.11.1-3
is also affected. Using 3.10.9-1
works fine.
from colcon-core.
And on Debian python3.11 3.11.2-2 fixed the issue. (3.11.2-1 had an issue)
from colcon-core.
I recall having similar issues a few years ago, and the problem was related to parsing elaborate environment variables. Could you please dump your environment (using env
) and either post it here or send it to me? Be sure to sanitize any sensitive information before sharing it.
from colcon-core.
env.txt
env_kitty.txt
Here you go
from colcon-core.
Shoot, I'm not seeing any problems. I've updated my Fedora 37 machine as well, and I still can't reproduce this behavior.
Can you try posting your command environment script files from build/ament_package/colcon_command_prefix_*
?
from colcon-core.
# generated from colcon_core/shell/template/command_prefix.sh.em
does not generate anything but the comment
from colcon-core.
weirdly ament_pycodestlye did generate a colcon_command_prefix_setup_py.sh.env
here it is
CHROME_DESKTOP=code-url-handler.desktop
COLCON=1
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=gnome
DISPLAY=:0
EDITOR=/usr/bin/nano
GDK_BACKEND=x11
GDMSESSION=gnome
GDM_LANG=en_US.UTF-8
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/code.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=5768
GIT_ASKPASS=/usr/share/code/resources/app/extensions/git/dist/askpass.sh
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_SETUP_DISPLAY=:1
HOME=/home/tgallion
INVOCATION_ID=c5c9ac6e0ea74d0bb4ebacda0e005884
JOURNAL_STREAM=8:29595
LANG=en_US.UTF-8
LOGNAME=tgallion
MANAGERPID=2250
NO_AT_BRIDGE=1
ORIGINAL_XDG_CURRENT_DESKTOP=GNOME
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin
POSH_THEME=/home/tgallion/.poshthemes/star.omp.json
PWD=/home/tgallion/ros2_humble/build/ament_pycodestyle
QT_IM_MODULE=ibus
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2343,unix/unix:/tmp/.ICE-unix/2343
SHELL=/usr/bin/fish
SHLVL=2
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SYSTEMD_EXEC_PID=2394
TERM=xterm-256color
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.74.2
USER=tgallion
USERNAME=tgallion
VSCODE_GIT_ASKPASS_EXTRA_ARGS=--ms-enable-electron-run-as-node
VSCODE_GIT_ASKPASS_MAIN=/usr/share/code/resources/app/extensions/git/dist/askpass-main.js
VSCODE_GIT_ASKPASS_NODE=/usr/share/code/code
VSCODE_GIT_IPC_HANDLE=/run/user/1000/vscode-git-61af660bed.sock
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.WXOHX1
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/home/tgallion/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/tgallion/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/tgallion/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/tgallion/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=gnome
XDG_SESSION_TYPE=wayland
XMODIFIERS=@im=ibus
_=/usr/bin/env
omp_last_status_generation=3
omp_lastcommand=rm -rf build/ install/ log/
from colcon-core.
don't know why I did not think to try this earlier but the following works for individual packages and builds fine it just fails when building a set of packages
colcon build --symlink-install --packages-up-to ament_lint --cmake-args -DTHIRDPARTY_Asio=ON --no-warn-unused-cli
from colcon-core.
using the sequential executor seems to fix it so it seems to be related to parallel builds. Also parallel builds with --parallel-workers 1
seem to work
from colcon-core.
I was finally able to reproduce this. The regression is caused by python3.11-3.11.1-1.fc37. You can dnf downgrade python3.11
for now as a workaround.
from colcon-core.
I'm now moderately confident that this is python/cpython#100133. It really doesn't look like there is a trivial workaround, so my advice is to avoid Python 3.11.1. The ticket says that we should expect the fix to be part of 3.11.2.
from colcon-core.
It looks like Python v3.11.2 was released this week.
from colcon-core.
This Python regression was fixed a while back and I've heard nothing of re-occurrence, so I'm going to close this. Feel free to reopen if you encounter this again.
from colcon-core.
Related Issues (20)
- `colcon build` uses the wrong Python version when inside a virtualenvironment on Windows HOT 2
- [bug] additional cmake args after CMAKE_TOOLCHAIN_FILE will clear it HOT 2
- Cache get_extension_points output
- empy version incompatibility HOT 4
- [Question] Correct way to build a ros driver which depends on a library without having to run 'sudo make install' on the library. HOT 6
- Design intent of setup.sh vs setup.bash HOT 4
- Why can data_files destinations not be absolute for ament_python packages? HOT 4
- [Question] Recommended way to invoke colcon on ubuntu noble? / request for release recent colcon in ROS APT ubuntu noble repos HOT 2
- Feature Request: Multiple `build-base` and `install-base` for multiple `base-paths`
- Colcon hangs when stdout / stderr is redirected and output line is longer than default buffer size HOT 2
- Colcon extends LD_LIBARAY_PATH with cross compiled libraries HOT 4
- Package includes directory has subdir of subdir of package name HOT 1
- Install colcon on x86 to cross compile ros2 HOT 4
- Error building after deleting a file: can't copy '<deleted-file> doesn't exist or not a regular file HOT 3
- colcon list Traceback (most recent call last): File "/usr/bin/colcon", line 33, in <module> sys.exit(load_entry_point('colcon-core==0.16.0', 'console_scripts', 'colcon')()) File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 118, in main return _main(command_name=command_name, argv=argv) File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 185, in _main create_log_path(args.verb_name) File "/usr/lib/python3/dist-packages/colcon_core/location.py", line 186, in create_log_path os.makedirs(str(path)) File "/usr/lib/python3.10/os.py", line 225, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: 'log/list_2024-04-06_02-45-22' HOT 2
- colcon returns with success when extension loading fails
- No executable found for scripts when using --symlink-install and install(PROGRAMS) HOT 2
- Torch shared library: libc10.so: cannot open shared object file HOT 4
- About changing the default compilation method of colcon build HOT 1
- Several lines from _local_setup_util_sh.py contain this: E501 line too long
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colcon-core.