Package Details: python-hiddenlayer 0.2-1

Git Clone URL: https://aur.archlinux.org/python-hiddenlayer.git (read-only, click to copy)
Package Base: python-hiddenlayer
Description: A lightweight library for neural network graphs and training metrics for PyTorch, Tensorflow, and Keras
Upstream URL: https://github.com/waleedka/hiddenlayer
Licenses: MIT
Submitter: hottea
Maintainer: hottea
Last Packager: hottea
Votes: 1
Popularity: 0.85
First Submitted: 2019-03-29 03:18 (UTC)
Last Updated: 2019-11-17 02:31 (UTC)

Latest Comments

promach commented on 2021-09-18 12:33 (UTC)

I removed the entire check() which temporarily eliminated the error

hottea commented on 2021-09-18 12:25 (UTC)

@promach You could report this to upstream, not here.

promach commented on 2021-09-18 12:14 (UTC) (edited on 2021-09-18 12:25 (UTC) by promach)

When I tried to use the following PKGBUILD to build the git latest version, I encountered build error.

# Maintainer: Butui Hu hot123tea123@gmail.com

_pkgname=hiddenlayer

pkgname=python-hiddenlayer

pkgver=r58.45243d5

pkgrel=1

pkgdesc='A lightweight library for neural network graphs and training metrics for PyTorch, Tensorflow, and Keras'

arch=('any')

url='https://github.com/waleedka/hiddenlayer.git'

license=('MIT')

makedepends=('python-setuptools')

checkdepends=( 'flake8' 'ipython' 'python-matplotlib' 'python-numpy' 'python-pytest' 'python-pytorch' 'python-tensorflow' 'python-torchvision' )

source=('git+https://github.com/waleedka/hiddenlayer.git')

md5sums=('SKIP')

pkgver() { cd "${_pkgname}"

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" }

build() { cd "${_pkgname}"

python setup.py build }

check() { cd "${_pkgname}"

PYTHONPATH=${srcdir}/${_pkgname}/build/lib pytest -v }

package() { cd "${_pkgname}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et:

[phung@archlinux python-hiddenlayer]$ rm -rf hiddenlayer/ [phung@archlinux python-hiddenlayer]$ makepkg -srif ==> Making package: python-hiddenlayer 0.2-1 (Sat 18 Sep 2021 08:04:42 PM +08) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Cloning hiddenlayer git repo... Cloning into bare repository '/home/phung/Downloads/python-hiddenlayer/hiddenlayer'... remote: Enumerating objects: 409, done. remote: Counting objects: 100% (41/41), done. remote: Compressing objects: 100% (34/34), done. remote: Total 409 (delta 24), reused 20 (delta 7), pack-reused 368 Receiving objects: 100% (409/409), 4.48 MiB | 21.00 KiB/s, done. Resolving deltas: 100% (212/212), done. ==> Validating source files with md5sums... hiddenlayer ... Skipped ==> Extracting sources... -> Creating working copy of hiddenlayer git repo... Cloning into 'hiddenlayer'... done. ==> Starting pkgver()... ==> Updated version: python-hiddenlayer r58.45243d5-1 ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/hiddenlayer copying hiddenlayer/ge.py -> build/lib/hiddenlayer copying hiddenlayer/pytorch_builder.py -> build/lib/hiddenlayer copying hiddenlayer/utils.py -> build/lib/hiddenlayer copying hiddenlayer/transforms.py -> build/lib/hiddenlayer copying hiddenlayer/canvas.py -> build/lib/hiddenlayer copying hiddenlayer/init.py -> build/lib/hiddenlayer copying hiddenlayer/graph.py -> build/lib/hiddenlayer copying hiddenlayer/history.py -> build/lib/hiddenlayer copying hiddenlayer/tf_builder.py -> build/lib/hiddenlayer ==> Starting check()... ================================================ test session starts ================================================ platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python cachedir: .pytest_cache rootdir: /home/phung/Downloads/python-hiddenlayer/src/hiddenlayer collecting 18 items Fatal Python error: Aborted

Current thread 0x00007f49f4495740 (most recent call first): File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 1173 in create_module File "<frozen importlib._bootstrap>", line 565 in module_from_spec File "<frozen importlib._bootstrap>", line 666 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "/usr/lib/python3.9/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64 in <module> File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 850 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist File "/usr/lib/python3.9/site-packages/tensorflow/python/pywrap_tfe.py", line 28 in <module> File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 850 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist File "/usr/lib/python3.9/site-packages/tensorflow/python/eager/context.py", line 35 in <module> File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 850 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist File "/usr/lib/python3.9/site-packages/tensorflow/python/init.py", line 40 in <module> File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 850 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 972 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "/usr/lib/python3.9/site-packages/tensorflow/init.py", line 41 in <module> File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 850 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "/home/phung/Downloads/python-hiddenlayer/src/hiddenlayer/tests/test_tf_graph.py", line 5 in <module> File "/usr/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 170 in exec_module File "<frozen importlib._bootstrap>", line 680 in _load_unlocked File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1007 in _find_and_load File "<frozen importlib._bootstrap>", line 1030 in _gcd_import File "/usr/lib/python3.9/importlib/init.py", line 127 in import_module File "/usr/lib/python3.9/site-packages/_pytest/pathlib.py", line 524 in import_path File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 578 in _importtestmodule File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 500 in _getobj File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 291 in obj File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 516 in _inject_setup_module_fixture File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 503 in collect File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 341 in <lambda> File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 341 in pytest_make_collect_report File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in call File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 458 in collect_one_node File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 808 in genitems File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 634 in perform_collect File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 333 in pytest_collection File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in call File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 322 in _main File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in call File "/usr/lib/python3.9/site-packages/_pytest/config/init.py", line 162 in main File "/usr/lib/python3.9/site-packages/_pytest/config/init.py", line 185 in console_main File "/usr/bin/pytest", line 33 in <module> /home/phung/Downloads/python-hiddenlayer/PKGBUILD: line 35: 16282 Aborted (core dumped) PYTHONPATH=${srcdir}/${_pkgname}/build/lib pytest -v ==> ERROR: A failure occurred in check(). Aborting... [phung@archlinux python-hiddenlayer]$