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

Issues running from source on Linux #54

Open
AdalynBlack opened this issue Mar 17, 2020 · 3 comments
Open

Issues running from source on Linux #54

AdalynBlack opened this issue Mar 17, 2020 · 3 comments

Comments

@AdalynBlack
Copy link

I am attempting to run DAIN on Linux, and the only way I could find was by cloning this git repository and compiling it, however, not a single line on the build.sh file seems to work for some reason, is there something I might be missing or doing wrong?

@AdalynBlack
Copy link
Author

I have done some experimenting with different things, and I have been able to make some progress, but now I am getting segmentation faults on the python3.6 setup.py install commands within the build.sh script. I believe what I did to fix the issues is I installed the cuda7.5 library for conda, and I changed the LD_LIBRARY_PATH variable to /usr/lib64, because it previously had nothing in it at all, and from what I found it should be that.

This is the output of the build.sh script:

Need pytorch>=1.0.0
./build.sh: line 4: activate: No such file or directory
./build.sh: line 8: 684564 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 13: 684570 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 18: 684581 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 23: 684592 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 28: 684603 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 33: 684616 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 38: 684627 Segmentation fault      (core dumped) python3.6 setup.py install
./build.sh: line 43: 684638 Segmentation fault      (core dumped) python3.6 setup.py install

@AdalynBlack
Copy link
Author

with a little bit more work I managed to get all of the build.sh files to run correctly, the only issue I am having now is when I run demo_MiddleBury.py:

Traceback (most recent call last):
  File "demo_MiddleBury.py", line 3, in <module>
    from torch.autograd import Variable
  File "/home/tonygamer/anaconda3/envs/pytorch1.0.0/lib/python3.6/site-packages/torch/__init__.py", line 84, in <module>
    from torch._C import *
ImportError: /home/tonygamer/anaconda3/envs/pytorch1.0.0/lib/python3.6/site-packages/torch/lib/libcaffe2.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_10E

@AdalynBlack AdalynBlack changed the title Issues compiling from source Issues running from source on Linux Apr 23, 2020
@AdalynBlack
Copy link
Author

I'm not sure what I did but it now gets all the way to line 10:

Traceback (most recent call last):
  File "demo_MiddleBury.py", line 10, in <module>
    import networks
  File "/home/tonygamer/src/DAIN/networks/__init__.py", line 1, in <module>
    from .DAIN import DAIN
  File "/home/tonygamer/src/DAIN/networks/DAIN.py", line 4, in <module>
    from my_package.FilterInterpolation import  FilterInterpolationModule
  File "/home/tonygamer/src/DAIN/my_package/FilterInterpolation/__init__.py", line 1, in <module>
    from .FilterInterpolationModule import *
  File "/home/tonygamer/src/DAIN/my_package/FilterInterpolation/FilterInterpolationModule.py", line 6, in <module>
    from .FilterInterpolationLayer import FilterInterpolationLayer,WeightLayer, PixelValueLayer,PixelWeightLayer,ReliableWeightLayer
  File "/home/tonygamer/src/DAIN/my_package/FilterInterpolation/FilterInterpolationLayer.py", line 4, in <module>
    import filterinterpolation_cuda as my_lib
ImportError: /home/tonygamer/anaconda3/envs/pytorch1.0.0/lib/python3.6/site-packages/filterinterpolation_cuda-0.0.0-py3.6-linux-x86_64.egg/filterinterpolation_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

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

1 participant