Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2940

[Python] Import error with pytorch 0.3

    XMLWordPrintableJSON

Details

    Description

      The fix in ARROW-2920 doesn't work in versions strictly before pytorch 0.4:

      >>> import pyarrow
      
      Traceback (most recent call last):
      
        File "<stdin>", line 1, in <module>
      
        File "/home/ubuntu/arrow/python/pyarrow/__init__.py", line 57, in <module>
      
          compat.import_pytorch_extension()
      
        File "/home/ubuntu/arrow/python/pyarrow/compat.py", line 249, in import_pytorch_extension
      
          ctypes.CDLL(os.path.join(path, "lib/libcaffe2.so"))
      
        File "/home/ubuntu/anaconda3/envs/breaking-env2/lib/python3.5/ctypes/__init__.py", line 351, in __init__
      
          self._handle = _dlopen(self._name, mode)
      
      OSError: /home/ubuntu/anaconda3/envs/breaking-env2/lib/python3.5/site-packages/torch/lib/libcaffe2.so: cannot open shared object file: No such file or directory

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pcmoritz Philipp Moritz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m