Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Python package testing/installation failing, due to missing *.h file in non-existent directory! #3262

Closed
@capn-freako

Description

@capn-freako

Attempting to follow the instructions in docs/pytorch.md, Python package testing and installation are failing:

(pytorch)
dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow/glow/torch_glow
$ python setup.py test --cmake_prefix_path=/usr/local/Cellar/llvm\@7/7.0.1/lib/cmake/llvm/
{snip}
[ 94%] Building CXX object tools/loader/CMakeFiles/text-translator.dir/TextTranslator.cpp.o
/Users/dbanas/Documents/Projects/PyTorch-Glow/glow/torch_glow/src/binding.cpp:20:10: fatal error: 'torch/csrc/jit/operator_options.h' file not found
#include <torch/csrc/jit/operator_options.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dbanas/Documents/Projects/PyTorch-Glow/glow/torch_glow/src/PyTorchModelLoader.cpp:533:35: error: no member named 'toVector' in namespace 'c10::impl'
    const auto &vals = c10::impl::toVector(valsList);
                       ~~~~~~~~~~~^
1 error generated.
make[2]: *** [torch_glow/src/CMakeFiles/_torch_glow.dir/binding.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
{snip}

The really strange thing is: none of the intermediate directories on the path to that missing *.h file exist!

dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow
$ find . -type f -name 'operator_options.h'

dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow
$ find . -type d -name 'jit'                                                                                                                               

dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow
$ find . -type d -name 'csrc'

dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow
$ find . -type d -name 'torch'

dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyTorch-Glow

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