小编Neu*_*rus的帖子

没有名为教练的模块

我有一个非常简单的培训师,遵循样本目录结构:

/dist
  __init__.py
  setup.py
  /trainer
    __init__.py
    task.py
Run Code Online (Sandbox Code Playgroud)

在/ dist目录下,在本地运行正常:

$ gcloud ml-engine local train 
    --package-path=trainer
    --module-name=trainer.task
Run Code Online (Sandbox Code Playgroud)

现在,在尝试部署它时,在/ dist目录和此命令下:

$ gcloud ml-engine jobs submit training testA
    --package-path=trainer
    --module-name=trainer.task
    --staging-bucket=$JOB_DIR
    --region us-central1
Run Code Online (Sandbox Code Playgroud)

它给了我一个错误"没有模块化的名字教练"

INFO    2017-04-13 12:28:35 -0700   master-replica-0        Installing collected packages: pyyaml, scipy, scikit-learn, trainer
INFO    2017-04-13 12:28:38 -0700   master-replica-0        Successfully installed pyyaml-3.12 scikit-learn-0.18.1 scipy-0.18.1 trainer-0.1
INFO    2017-04-13 12:28:38 -0700   master-replica-0        Running command: python -m trainer.task
ERROR   2017-04-13 12:28:38 -0700   master-replica-0        /usr/bin/python: No module named trainer
Run Code Online (Sandbox Code Playgroud)

编辑:这是setup.py的内容

from setuptools import find_packages
from …
Run Code Online (Sandbox Code Playgroud)

google-cloud-ml

7
推荐指数
1
解决办法
3538
查看次数

FontAwesome 6 + Nuxt 3“找不到一个或多个图标{前缀:'fab',iconName:'facebook'} {}”

一直在尝试将 FontAwesome 添加到 Nuxt 3 / Tailwind 样板中。一切正常,Facebook 图标出现了!但服务器控制台给出了这个错误:

\n
\xe2\x9c\x94 Vite server hmr 12 files in 446.295ms                                                        18:11:42\nCould not find one or more icon(s) { prefix: \'fab\', iconName: \'facebook\' } {}\n
Run Code Online (Sandbox Code Playgroud)\n

在浏览器控制台中:

\n
[Vue warn]: Hydration node mismatch:\n\n- Client vnode: svg \n- Server rendered DOM: <!---->  \n  at <FontAwesomeIcon icon= (2)\xc2\xa0[\'fab\', \'facebook\'] > \n  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > \n  at <RouteProvider key="/" routeProps= {Component: {\xe2\x80\xa6}, route: {\xe2\x80\xa6}} pageKey="/"  ... > \n  at <FragmentWrapper …
Run Code Online (Sandbox Code Playgroud)

font-awesome vuejs3 nuxtjs3

6
推荐指数
1
解决办法
1017
查看次数

GDAX API:购买时状态为“已拒绝”(reject_reason:仅发布)

我有一个Python脚本,该脚本使用以下参数调用/ orders方法:

{
    "size": "0.01",
    "price": "<last price>",
    "side": "buy",
    "product_id": "BTC-USD",
    "type": "limit",
    "post_only": true
}
Run Code Online (Sandbox Code Playgroud)

有时它可以工作,但是大多数时候我都会收到此错误:

{
    "status": "rejected",
    "reject_reason": "post only"
}
Run Code Online (Sandbox Code Playgroud)

阅读交易规则后,它表示:

1.8A Limit Order with ‘post-only’ selected will only be posted to the Order Book if it would not be posted at the same price as an existing Order on the Order Book.

So I attempted to make the purchase with + $0.01, + $0.02, ..., + $0.99 (just to make sure that …

coinbase-api gdax-api

2
推荐指数
1
解决办法
1576
查看次数