Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67867 - [python-tensorflow] Missing dependencies for some C libraries

Attached to Project: Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Thursday, 10 September 2020, 15:02 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 11 September 2020, 02:57 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Importing tensorflow fails due to missing C libraries

Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: libpng16.so.16: cannot open shared object file: No such file or directory

namcap indicates more missing dependencies other than libpng:

$ namcap /var/cache/pacman/pkg/python-tensorflow-2.3.0-3-x86_64.pkg.tar.zst
(...irrelevant lines omitted...)
python-tensorflow E: Dependency curl detected and not included (libraries ['usr/lib/libcurl.so.4'] needed in files ['usr/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so'])
python-tensorflow E: Dependency giflib detected and not included (libraries ['usr/lib/libgif.so.7'] needed in files ['usr/lib/python3.8/site-packages/tensorflow/python/profiler/internal/_pywrap_traceme.so'])
python-tensorflow E: Dependency icu detected and not included (libraries ['usr/lib/libicuuc.so.67'] needed in files ['usr/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so'])
python-tensorflow E: Dependency libpng detected and not included (libraries ['usr/lib/libpng16.so.16'] needed in files ['usr/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so'])
python-tensorflow E: Dependency libjpeg-turbo detected and not included (libraries ['usr/lib/libjpeg.so.8'] needed in files ['usr/lib/python3.8/site-packages/tensorflow/python/profiler/internal/_pywrap_traceme.so'])
(...irrelevant lines omitted...)

Additional info:
community/python-tensorflow 2.3.0-3

Steps to reproduce:

# Create such a PKGBUILD and run extra-x86_64-build
pkgname=foo
pkgver=1.0
pkgrel=1
arch=(any)
depends=(python python-tensorflow)

check() {
python -c 'import tensorflow'
}

package() {
true
}
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 11 September 2020, 02:57 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 10 September 2020, 20:41 GMT
Alright, check out 2.3.0-4.
Comment by Chih-Hsuan Yen (yan12125) - Friday, 11 September 2020, 02:52 GMT
Thanks, it works!

Loading...