Skip to content

python test/test_cpp_extensions.py cannot be invoked directly #5963

@ezyang

Description

@ezyang
(/home/ezyang/Dev/pytorch-env) [ezyang@devgpu005.ash6 ~/Dev/onnx-fb-universe/repos/pytorch] python test/test_cpp_extensions.py 
Traceback (most recent call last):
  File "test/test_cpp_extensions.py", line 5, in <module>
    import torch_test_cpp_extension as cpp_extension
ModuleNotFoundError: No module named 'torch_test_cpp_extension'

It should, at the very least, give a note that run_tests.py must be used.

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