pytorch install from source woe

— Using python found in /usr/local/anaconda3/envs/nephi2/bin/python

Traceback (most recent call last):

  File “/Users/packrd/dev/random/pytorch/aten/src/ATen/gen.py”, line 8, in <module>

    import preprocess_declarations

  File “/Users/packrd/dev/random/pytorch/aten/src/ATen/preprocess_declarations.py”, line 3, in <module>

    from function_wrapper import TYPE_FORMAL_GENERIC

  File “/Users/packrd/dev/random/pytorch/aten/src/ATen/function_wrapper.py”, line 12, in <module>

    ‘Missing build dependency: Unable to import the `typing` module. ‘

RuntimeError: Missing build dependency: Unable to import the `typing` module. Please install it via `conda install typing` or `pip install typing`

CMake Error at src/ATen/CMakeLists.txt:131 (message):

  Failed to get generated_cpp list

— Configuring incomplete, errors occurred!

See also “/Users/packrd/dev/random/pytorch/torch/lib/build/aten/CMakeFiles/CMakeOutput.log”.

See also “/Users/packrd/dev/random/pytorch/torch/lib/build/aten/CMakeFiles/CMakeError.log”.

 

 

meant

 

 

(nephi2) RogerPackMBP:pytorch packrd$ conda install typing

cmake woe warp-ctc

make

[ 25%] Building CXX object CMakeFiles/warpctc.dir/src/ctc_entrypoint.cpp.o

clang: error: unsupported option ‘-fopenmp’

on os x

this meant

brew install gcc –without-multilib

cmake ../ -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_C_COMPILER=gcc-7

*or*

cmake ../ -DWITH_OMP=OFF

ref

yum woe

                                                 3.3-3.el6                                              yumOS-epel

packrd@dpsprod-app01.a|dpsprod:~$ sudo yum installxxx 

sudo: perm stack underflow: Invalid argument

sudo: unknown uid: 5408

Segmentation fault

packrd@dpsprod-app01.a|dpsprod:~$ sudo yum install xxx

 

this time it worked.

So moral: just try again? LOL

Roger's meanderings, notes to himself, bug reports, and other things