Repository navigation
security: remove dependencies flagged in legal review - #2492
Merged
Merged
Conversation
- pycountry (LGPL-2.1): exclude via tool.uv.exclude-dependencies; arrives transitively from mistral-common but is never imported by Gym code - rsync (GPL-3.0-only): remove from Dockerfile apt-get install; not called by any script in the repo - gprof2dot (LGPLv3+): move from main dependencies to dev optional extra; only used for profiling and should not ship in the released container - autocommand (LGPLv3): confirmed absent from the project (false positive) Signed-off-by: Kajal Jain <[email protected]>
ccy (a toolsandbox dep) hard-requires pycountry>=24.6.1. The global exclude-dependencies blocks pycountry for nemo-gym itself (which never imports it), but toolsandbox needs it. overrides.txt re-enables it for the toolsandbox venv following the same pattern used by longmt_eval and wmt_translation for codec packages. Signed-off-by: Kajal Jain <[email protected]>
…dencies exclude-dependencies is a hard lockfile exclusion that prevents server venvs from re-enabling the package via overrides.txt. Switch to the same sys_platform=='never' override pattern used for codec packages, which keeps pycountry out of the main install while allowing toolsandbox (which needs it via ccy) to re-enable it via overrides.txt. Signed-off-by: Kajal Jain <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
balasaajay
approved these changes
Aug 11, 2026
kajalj22
added a commit
that referenced
this pull request
Aug 11, 2026
…o r0.5.1 (#2494) Cherry-pick of #2492 into `r0.5.1`. Signed-off-by: Kajal Jain <[email protected]>
kajalj22
added a commit
to kajalj22/Gym
that referenced
this pull request
Oct 8, 2026
## Summary - `pycountry` is suppressed from the image via `[tool.uv].override-dependencies` (legal review, NVIDIA-NeMo#2492) and is only re-enabled for `toolsandbox`. - vLLM's Qwen3-VL multimodal processor lazily imports `transformers.MistralCommonBackend` -> `mistral_common` -> `pydantic_extra_types.language_code`, which hard-requires `pycountry`. In the shipped image this raises `ModuleNotFoundError: Could not import module 'MistralCommonBackend'` before the model loads, so the `circle_click` and `circle_count` README workflows (`vllm serve Qwen/Qwen3-VL-8B-Instruct -tp 8 ...`) cannot start. `vllm serve --help` still passes because it never builds that processor. - `docker/install_codec_deps.sh` is the documented opt-in installer for excluded packages but never installed `pycountry`. This adds it (pinned to the `uv.lock` version, 26.2.16) and includes it in the "already installed" check. The override stays in place, so the default image is unchanged and the legal change is preserved. Tracks NVBug 6751026. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Kajal Jain <[email protected]> Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removing dependencies flagged in legal review.
rsyncfrom Dockerfilegprof2dotto dev-only optional extrapycountryfrom main install via override; re-enabled fortoolsandboxviaoverrides.txt