无法安装'cordova-plugin-whitelist':使用forcedroid命令行时出错

时间:2017-03-14 11:19:22

标签: android cordova salesforce salesforce-ios-sdk salesforce-communities

以下是我运行Traceback (most recent call last): File "./complete.py", line 33, in <module> dcgan = DCGAN(sess, image_size=args.imgSize,checkpoint_dir=args.checkpointDir, lam=args.lam) File "/home/anshit/Downloads/dcgan-completion.tensorflow-master/dcgan-completion.tensorflow-master/model.py", line 65, in __init__ self.build_model() File "/home/anshit/Downloads/dcgan-completion.tensorflow-master/dcgan-completion.tensorflow-master/model.py", line 81, in build_model self.D_, self.D_logits_ = self.discriminator(self.G, reuse=True) File "/home/anshit/Downloads/dcgan-completion.tensorflow-master/dcgan-completion.tensorflow-master/model.py", line 312, in discriminator h1 = lrelu(self.d_bn1(conv2d(h0, self.df_dim*2, name='d_h1_conv'))) File "/home/anshit/Downloads/dcgan-completion.tensorflow-master/dcgan-completion.tensorflow-master/ops.py", line 34, in __call__ ema_apply_op = self.ema.apply([batch_mean, batch_var]) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/moving_averages.py", line 391, in apply self._averages[var], var, decay, zero_debias=zero_debias)) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/moving_averages.py", line 70, in assign_moving_average update_delta = _zero_debias(variable, value, decay) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/moving_averages.py", line 177, in _zero_debias trainable=False) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 1024, in get_variable custom_getter=custom_getter) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 850, in get_variable custom_getter=custom_getter) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 346, in get_variable validate_shape=validate_shape) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 331, in _true_getter caching_device=caching_device, validate_shape=validate_shape) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 650, in _get_single_variable "VarScope?" % name) ValueError: Variable d_bn1/d_bn1_2/d_bn1_2/moments/moments_1/mean/ExponentialMovingAverage/biased does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope? 时得到的结果: 我看到很多关于stackoverflow的讨论,如failed to install cordova-plugin,但没有答案。 enter image description here

1 个答案:

答案 0 :(得分:0)

这将解决问题:

1)添加环境变量ANDROID_HOME和JAVA_HOME(给出文件夹SDK的路径和JDKin值的路径)。

2)在系统可用的PATH中,添加platform-tools的路径作为tools文件夹之一。

它会成功修复您的错误。