Package Base Details: python-keras

Git Clone URL: https://aur.archlinux.org/python-keras.git (read-only)
Submitter: StreakyCobra
Maintainer: davidmcinnis (ixil)
Last Packager: davidmcinnis
Votes: 39
Popularity: 1.28
First Submitted: 2015-06-30 07:08
Last Updated: 2019-10-28 05:00

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

jerry73204 commented on 2017-11-04 17:40

python2-tensorflow package is missing, causing the unmet dependency.
How about create an individual python2-keras package instead of a split package in python-keras? Compiling python2-tensorflow might be tedious.

walwe commented on 2017-09-05 13:43

@dack I am experiencing the same problem and found the source.

The tensorflow archlinux package maintainer has decided to delete 'tensorflow.contrib.tensorboard'
> https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/tensorflow
> # tensorboard has been separated from upstream but they still install it with
> # tensorflow. I don't know what kind of sense that makes but we have to clean
> # it out from this pacakge.
> rm -rf ${pkgdir}/usr/lib/python3.6/site-packages/tensorflow/contrib/tensorboard
> rm -rf ${pkgdir}/usr/bin/tensorboard

Quick-fix: Install pip version
sudo pacman -R python-tensorflow
sudo pip install tensorflow

We might have to tell him the sense it makes...

[EDIT]:
Someone already did: https://bugs.archlinux.org/task/55477

dack commented on 2017-09-05 04:47

I get the following error when I try to import any keras modules:

File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/callbacks.py", line 34, in <module>
from tensorflow.contrib.tensorboard.plugins import projector
ModuleNotFoundError: No module named 'tensorflow.contrib.tensorboard'

This seems to be similar to https://github.com/fchollet/keras/issues/6545, however I tried install python-dask 0.15.2-1 and it made no difference. I'm thinking it's some sort of dependency issue. Has anyone else run into this?

agradzki commented on 2017-07-14 18:04

Unmet dependency community/python-werkzeug

StreakyCobra commented on 2017-04-14 17:52

> Is there any interest in this being just the python3 branch (since python2-keras has its own package already)?

Actually the `python2-keras` package is provided by this one, so it would not make sense to remove it :-)

stick commented on 2017-04-14 17:01

Is there any interest in this being just the python3 branch (since python2-keras has its own package already)? If anyone else wants to build just the python3 portion, you can edit the PKGBUILD as below:

# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com>
# Contributer: David McInnis <davidm@eagles.ewu.ewu>

pkgbase="python-keras"
pkgname=("python-keras")
_pkgname="keras"
pkgver="2.0.0"
pkgrel="2"
pkgdesc="Deep Learning library (convnets, recurrent neural networks, and more)"
arch=('any')
url="https://github.com/fchollet/keras"
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-numpy' 'python-scipy' 'python-h5py'
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/fchollet/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('1cfe5c298be813a512549f993e4d4fdfe0f887a8e67f7bf915fda6089ac9d403')

prepare() {
cd "$srcdir/"
cd "${_pkgname}-${pkgver}"
}

build() {

msg "Building Python 3"
cd "$srcdir/${_pkgname}-${pkgver}"
python setup.py build
}

package_python-keras() {
depends=('python' 'python-numpy' 'python-scipy' 'python-h5py' 'python-yaml')
optdepends=('python-theano' 'python-tensorflow' 'cudnn')
cd "$srcdir/${_pkgname}-${pkgver}"
python setup.py install --root="$pkgdir"/ --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}

# vim:set ts=2 sw=2 et:

StreakyCobra commented on 2017-03-16 10:24

@Ape: Seeing upstream README, it seems that yaml dependency is indeed needed. Fixed in 2.0.0-2. Thanks

Ape commented on 2017-03-16 10:07

Should python-yaml be added as a dependency? I got import errors without it.

StreakyCobra commented on 2016-04-17 18:50

@soupault: Done, thx.

soupault commented on 2016-04-17 17:32

@StreakyCobra, there is 1.0.1 already available on GitHub.