Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run train_with_warp_drive #11

Open
Emerald01 opened this issue Jul 14, 2022 · 2 comments
Open

cannot run train_with_warp_drive #11

Emerald01 opened this issue Jul 14, 2022 · 2 comments

Comments

@Emerald01
Copy link

I meet a few errors when running train_with_warp_drive,

one is from scripts.run_unittests import import_class_from_path seem not good, it will complain scripts cannot be found in module, so I remove scripts., I believe the Python path of this lib shall be cleaned up a little bit

the 2nd problem is when I run this training script, the first time is fine, but the second time and on I constantly got this error, I believe it comes from the package importer, can you check on that?

Traceback (most recent call last):
  File "/home/user/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2191, in _handle_ns
    loader = importer.find_spec(packageName).loader
  File "<frozen importlib._bootstrap_external>", line 1391, in find_spec
  File "<frozen importlib._bootstrap_external>", line 59, in _path_join
  File "<frozen importlib._bootstrap_external>", line 59, in <listcomp>
AttributeError: 'PosixPath' object has no attribute 'rstrip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "train_with_warp_drive.py", line 52, in <module>
    other_imports = perform_other_imports()
  File "train_with_warp_drive.py", line 34, in perform_other_imports
    import torch
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/torch/__init__.py", line 29, in <module>
    from .torch_version import __version__ as __version__
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/torch/torch_version.py", line 3, in <module>
    from pkg_resources import packaging  # type: ignore[attr-defined]
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3238, in <module>
    @_call_aside
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    for dist in working_set
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3266, in <genexpr>
    for dist in working_set
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2780, in activate
    declare_namespace(pkg)
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2279, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/home/tian-lan/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2196, in _handle_ns
    loader = importer.find_module(packageName)
  File "<frozen importlib._bootstrap_external>", line 431, in _find_module_shim
  File "<frozen importlib._bootstrap_external>", line 1346, in find_loader
  File "<frozen importlib._bootstrap_external>", line 1391, in find_spec
  File "<frozen importlib._bootstrap_external>", line 59, in _path_join
  File "<frozen importlib._bootstrap_external>", line 59, in <listcomp>
AttributeError: 'PosixPath' object has no attribute 'rstrip'
@tianyu-z
Copy link
Collaborator

Thanks for pointing this out @Emerald01 , we really appreciate it. Could you please give more information, like a list of the versions of the modules and the OS that you are using so that we might be able to replicate this issue?

Besides, did you try following the tutorial notebook via Colab? Are the issues also showing up here?

@muxspace
Copy link
Contributor

This is the same error i had. It's fixed in my pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants