简体   繁体   English

类型错误:可配置()得到了一个意外的关键字参数“拒绝列表”

[英]TypeError: configurable() got an unexpected keyword argument 'denylist'

I installed the package, but I cannot import it.我安装了 package,但无法导入。 I get this error: TypeError: configurable() got an unexpected keyword argument 'denylist' I appreciate it if you could help me to fix this.我收到此错误:TypeError:configurable() got an unexpected keyword argument 'denylist' 如果您能帮我解决这个问题,我将不胜感激。 Below you can see the complete error that I got.您可以在下面看到我得到的完整错误。

import trax

I installed this package(Deep learning package), and when I import it, I get this error:我安装了这个包(深度学习包),当我导入它时,我得到了这个错误:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-3afdcd9c7c68> in <module>
----> 1 import trax

~/opt/anaconda3/lib/python3.7/site-packages/trax/__init__.py in <module>
     16 """Trax top level import."""
     17 
---> 18 from trax import data
     19 from trax import fastmath
     20 from trax import layers

~/opt/anaconda3/lib/python3.7/site-packages/trax/data/__init__.py in <module>
     18 
     19 from trax.data import inputs
---> 20 from trax.data import tf_inputs
     21 
     22 

~/opt/anaconda3/lib/python3.7/site-packages/trax/data/tf_inputs.py in <module>
    504 
    505 # Makes the function accessible in gin configs, even with all args denylisted.
--> 506 @gin.configurable(denylist=['dataset', 'training'])
    507 def cifar10_no_augmentation_preprocess(dataset, training):
    508   del training

TypeError: configurable() got an unexpected keyword argument 'denylist'

I really need to work with this package, and I don't know how to fix it.我真的需要使用这个 package,我不知道如何解决它。 My OS: macOS Big Sur Python version: Python 3.7.4我的操作系统:macOS Big Sur Python 版本:Python 3.7.4

I found the solution: :pip install --upgrade -q gin git+https.//github.com/google/trax.git@v1.2.3我找到了解决方案::pip install --upgrade -q gin git+https.//github.com/google/trax.git@v1.2.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有可配置属性的装饰器收到了意外的关键字参数 - Decorator with configurable attributes got an unexpected keyword argument TypeError:得到一个意外的关键字参数 - TypeError: got an unexpected keyword argument TypeError:得到了意外的关键字参数“ name” - TypeError: got an unexpected keyword argument “name” 类型错误:binarySearch() 得到了一个意外的关键字参数“key” - TypeError: binarySearch() got an unexpected keyword argument 'key' TypeError:histogram()得到了意外的关键字参数“ new” - TypeError: histogram() got an unexpected keyword argument 'new' TypeError:urlopen()获得了意外的关键字参数&#39;headers&#39; - TypeError: urlopen() got an unexpected keyword argument 'headers' TypeError:得到了一个意外的关键字参数“图像” - TypeError: got an unexpected keyword argument 'image' TypeError: concatenate() 得到了一个意外的关键字参数“dtype” - TypeError: concatenate() got an unexpected keyword argument 'dtype' TypeError: mannwhitneyu() 得到了一个意外的关键字参数“方法” - TypeError: mannwhitneyu() got an unexpected keyword argument 'method' TypeError: UserCreateForm() 得到了一个意外的关键字参数“初始” - TypeError: UserCreateForm() got an unexpected keyword argument 'initial'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM