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

ValueError: Function has keyword-only arguments or annotations, #47

Open
PaulLantos opened this issue Oct 15, 2017 · 1 comment
Open

Comments

@PaulLantos
Copy link

Hi,
I'm getting the following error and not sure how to fix it. Thanks for any help.
Paul

make_image_analogy.py input/img1b.jpg input/img1a.jpg input/IMG_0006_12.jpg output/img2.jpg --vgg-weights=vgg16_weights.h5 --height=500 --a-scale-mode=match --patch-size=5 --scales=5 --mrf-w=0.2

Using TensorFlow backend.
Traceback (most recent call last):
File "/dscrhome/pl39/anaconda3/bin/make_image_analogy.py", line 12, in
import image_analogy.argparser
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/image_analogy/argparser.py", line 4, in
from keras import backend as K
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/keras/init.py", line 2, in
from . import backend
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/keras/backend/init.py", line 69, in
from .tensorflow_backend import *
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 1, in
import tensorflow as tf
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/init.py", line 23, in
from tensorflow.python import *
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/python/init.py", line 65, in
import tensorflow.contrib as contrib
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/init.py", line 30, in
from tensorflow.contrib import learn
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/init.py", line 72, in
from tensorflow.contrib.learn.python.learn import *
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/init.py", line 23, in
from tensorflow.contrib.learn.python.learn import *
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/init.py", line 26, in
from tensorflow.contrib.learn.python.learn import estimators
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/init.py", line 23, in
from tensorflow.contrib.learn.python.learn.estimators.autoencoder import TensorFlowDNNAutoencoder
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/autoencoder.py", line 25, in
from tensorflow.contrib.learn.python.learn.estimators.base import TensorFlowBaseTransformer
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/base.py", line 34, in
from tensorflow.contrib.learn.python.learn.estimators import estimator
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 39, in
from tensorflow.contrib.learn.python.learn.learn_io import data_feeder
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/learn_io/init.py", line 22, in
from tensorflow.contrib.learn.python.learn.learn_io.dask_io import extract_dask_data
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/learn_io/dask_io.py", line 26, in
import dask.dataframe as dd
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/dask/dataframe/init.py", line 1, in
from .core import (DataFrame, Series, Index, _Frame, map_partitions,
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/dask/dataframe/core.py", line 23, in
from .. import array as da
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/dask/array/init.py", line 4, in
from .core import (Array, stack, concatenate, take, tensordot, transpose,
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/dask/array/core.py", line 13, in
from toolz.curried import (pipe, partition, concat, unique, pluck, join, first,
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/toolz/curried/init.py", line 53, in
_curry_namespace(vars(toolz)),
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/toolz/curried/init.py", line 48, in _curry_namespace
for name, f in ns.items() if '' not in name
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/toolz/curried/init.py", line 48, in
for name, f in ns.items() if '
' not in name
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/toolz/curried/init.py", line 42, in _should_curry
return (callable(f) and _nargs(f) > 1 or f in do_curry)
File "/dscrhome/pl39/anaconda3/lib/python3.5/site-packages/toolz/curried/init.py", line 35, in _nargs
return len(inspect.getargspec(f).args)
File "/dscrhome/pl39/anaconda3/lib/python3.5/inspect.py", line 1050, in getargspec
raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

@vidyasagarr7
Copy link

I get the same error when importing keras. Any ideas ?

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

2 participants