Skip to content

bug: ng_init_resources_server crashes when using relative paths or used outside Gym root #936

Open

Description

@bogdansalyp

Use cases, pain points, and background
Trying to scaffold an environment outside Gym folder: ng_init_resources_server +entrypoint=../../resources_servers/my_weather_tool crashes with assert len(dirpath.parts) == 2

Description:
Make it possible to create NemoGym components (at least resource_servers) outside NemoGym repo to avoid unnecessary forking

  • It would be useful not to maintain a separate fork of a rapidly evolving framework

Design:
cli.py improvement
It still may be required that dirpath[-2] == "resource_servers"

Out of scope:
What are some items that this issue could be mistaken to cover that this issue should explicitly NOT cover?

Acceptance Criteria:

  • ng_init_resources_server accepts relative paths

Activity

  1. changed the title [-]Custom resource_servers outside NemoGym repo[/-] [+]ng_init_resources_server crashes outside NemoGym repo[/+] on Mar 25, 2026
  2. changed the title [-]ng_init_resources_server crashes outside NemoGym repo[/-] [+]ng_init_resources_server crashes when using relative paths or used outside Gym root[/+] on Mar 25, 2026
  3. cmunley1 commented on Mar 30, 2026

    @cmunley1
    Contributor

    @bogdansalyp i pulled some of your changes into 972, please take a look / test if you can. unfortunately i think i lost your commits along the way. I mentioned you in the PR description.

  4. added
    core-infra
    on Apr 2, 2026
  5. added theissue type on Apr 2, 2026
  6. changed the title [-]ng_init_resources_server crashes when using relative paths or used outside Gym root[/-] [+]bug: ng_init_resources_server crashes when using relative paths or used outside Gym root[/+] on Apr 2, 2026
  7. added
    community-request
    on Apr 2, 2026
  8. added a commit that references this issue on Apr 14, 2026
  9. cmunley1 commented on Apr 17, 2026

    @cmunley1
    Contributor

    Hi @bogdansalyp could you give the nemo gym 0.2.1 release a try? We pulled in some of your changes, thanks for flagging this.

    https://github.com/NVIDIA-NeMo/Gym/blob/main/docs/get-started/pypi-install.md

  10. 19 remaining items

  11. added
    waiting-on-maintainers
    and removed
    waiting-on-customer
    on Jul 3, 2026
  12. added
    waiting-on-customer
    waiting-on-maintainers
    and removed
    waiting-on-maintainers
    waiting-on-customer
    on Jul 10, 2026
  13. added
    waiting-on-maintainers
    waiting-on-customer
    and removed
    waiting-on-customer
    waiting-on-maintainers
    on Aug 5, 2026
  14. added
    waiting-on-maintainers
    and removed
    waiting-on-customer
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CLIPlatformcommunity-requestcore-infrawaiting-on-maintainers

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions