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

Library cannot be found #16

Open
bpiwowar opened this issue Apr 4, 2018 · 0 comments
Open

Library cannot be found #16

bpiwowar opened this issue Apr 4, 2018 · 0 comments

Comments

@bpiwowar
Copy link

bpiwowar commented Apr 4, 2018

I got an error while trying to build a debian package for pytorch, which is due to problem in detecting the shared libraries installed with the package (in the lib directory).

dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: error: couldn't find library libATen.so.1 needed by /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so (ELF format: 'elf64-x86-64'; RPATH: '$ORIGIN')
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: couldn't find library libshm.so needed by /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so (ELF format: 'elf64-x86-64'; RPATH: '$ORIGIN/lib')
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: error: couldn't find library libATen.so.1 needed by /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so (ELF format: 'elf64-x86-64'; RPATH: '$ORIGIN/lib')
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so and the corresponding directory could not be identified due to lack of DEBIAN sub-directory in the root of package's build tree
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory
dpkg-shlibdeps: error: cannot continue due to the errors listed above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.2018-04-04 16:25:35 linuxmint17 py2deb.cli[10899] ERROR Caught an unhandled exception!
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/py2deb/cli.py", line 200, in main
    archives, relationships = converter.convert(arguments)
  File "/usr/local/lib/python3.4/dist-packages/py2deb/converter.py", line 546, in convert
    archive = package.convert()
  File "/usr/local/lib/python3.4/dist-packages/py2deb/package.py", line 409, in convert
    dependencies += self.find_system_dependencies(shared_object_files)
  File "/usr/local/lib/python3.4/dist-packages/py2deb/package.py", line 561, in find_system_dependencies
    output = execute(*command, directory=fake_source_directory, capture=True, logger=logger)
  File "/usr/local/lib/python3.4/dist-packages/executor/__init__.py", line 174, in execute
    return execute_prepared(ExternalCommand(*command, **options))
  File "/usr/local/lib/python3.4/dist-packages/executor/__init__.py", line 203, in execute_prepared
    command.start()
  File "/usr/local/lib/python3.4/dist-packages/executor/__init__.py", line 1392, in start
    self.wait()
  File "/usr/local/lib/python3.4/dist-packages/executor/__init__.py", line 1435, in wait
    self.check_errors(check=check)
  File "/usr/local/lib/python3.4/dist-packages/executor/__init__.py", line 1553, in check_errors
    raise self.error_type(self)
executor.ExternalCommandFailed: External command failed with exit code 2!

Command:
dpkg-shlibdeps -O --warnings=0 /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_dl.cpython-34m.so /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/_C.cpython-34m.so /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libshm.so /tmp/py2deb-build-l8yv6y4p/usr/lib/python3.4/dist-packages/torch/lib/libATen.so
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