The dts map editor command in the ente profile was failing with:
AttributeError: 'types.SimpleNamespace' object has no attribute 'start_gui_tools'- Missing
dt_mapsmodule in Docker container - Import errors preventing GUI from launching
- Missing start_gui_tools command: The map editor tried to call
shell.include.start_gui_tools.command()but this command doesn't exist in the ente profile - Missing dt_maps module: The Docker image
duckietown/dt-gui-tools:ente-amd64doesn't have thedt_mapsPython module installed - Incomplete integration: The ente profile is still under development and has incomplete command integration
/home/dan/.duckietown/shell/profiles/ente/commands/duckietown/map/editor/command.py
- Bypassed broken start_gui_tools: Direct Docker container launch instead of using shell.include
- Added dt_maps workaround:
- First tries to install
dt-mapsvia pip - If that fails, creates a stub module with basic Map class
- First tries to install
- Proper X11 forwarding: Added xhost command and proper display environment variables
- Volume mounting: Maps current directory to
/mapsin container for file persistence
- Docker Image:
duckietown/dt-gui-tools:ente-amd64 - Launcher Script:
/launch/dt-gui-tools/editor.sh(inside container) - Map Editor Location:
/code/src/dt-gui-tools/packages/map_editor/main.py(inside container)
# Copy the working command file
cp ~/working_map_editor_command.py /home/dan/.duckietown/shell/profiles/ente/commands/duckietown/map/editor/command.py
# Test the fix
dts map editor- ✅ Map editor launches successfully
- ✅ GUI interface works (though "a bit janky")
⚠️ Save/load functionality needs testing⚠️ Duckiematrix integration needs testing
- Root cause fix: Implement proper
start_gui_toolscommand in ente profile - Docker image fix: Add
dt_mapsmodule toduckietown/dt-gui-tools:ente-amd64 - Integration testing: Verify save/load and Duckiematrix compatibility
- Submit PR: Contribute fix back to Duckietown repositories
~/working_map_editor_command.py(our working solution)- This documentation file
- Shell commands:
/home/dan/duckietown-dev/duckietown-shell-commands/ - GUI tools:
/home/dan/duckietown-dev/dt-gui-tools/