Skip to content

Error when trying to see dependencies of torch #55

Description

@DoraAgali

Describe the bug

A clear and concise description of what the bug is.

Bug when running python3 -m import_tracker -n torch -i 2 -s watson_nlp._init_java

Platform

Please provide details about the environment you are using, including the following:

  • Interpreter version:
  • Library version: 2.2.1
  • torch version is >=1.10.2,<1.11.0

Sample Code

Please include a minimal sample of the code that will (if possible) reproduce the bug in isolation

Expected behavior

A clear and concise description of what you expected to happen.

Expected to see the set of dependencies from torch

Observed behavior

What you see happening (error messages, stack traces, etc...)

bash-4.4$ python3 -m import_tracker -n torch -i 2 -s watson_nlp._init_java
/usr/local/lib64/python3.8/site-packages/torch/distributed/distributed_c10d.py:170: UserWarning: torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead
  warnings.warn(
Traceback (most recent call last):
  File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/site-packages/import_tracker/__main__.py", line 755, in <module>
    main()
  File "/usr/local/lib/python3.8/site-packages/import_tracker/__main__.py", line 661, in main
    full_module_name: _get_non_std_modules(tracker_finder.get_all_new_modules())
  File "/usr/local/lib/python3.8/site-packages/import_tracker/__main__.py", line 429, in get_all_new_modules
    self._set_ending_modules()
  File "/usr/local/lib/python3.8/site-packages/import_tracker/__main__.py", line 468, in _set_ending_modules
    for attr_name, attr in vars(mod).items():
RuntimeError: dictionary changed size during iteration
bash-4.4$

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions