PatZilla does not serve requests when started in development mode
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The traceback identifies patzilla/navigator/templates/site.mako and the missing patzilla.navigator:templates/urlcleaner.js template. Start by checking how that include is packaged and resolved in development mode, then compare it with the installed template files. Done when the /navigator/ request succeeds with the development configuration and the template can be found.
索引モデルが issue の本文から書いたものです。
説明
Hi there,
following up on the report #51 by @think-nice-things, we tried to reproduce the problem. We installed the software with:
virtualenv --python=python2 .venv2
source .venv2/bin/activate
pip install patzilla
pip install 'urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1' # Just a fix to adjust some dependency woes.
Then, we created the configuration file patzilla.ini
patzilla make-config development > patzilla.ini
and adjusted a single line, adding the depatech data source like:
[ip_navigator]
datasources = ops, depatisnet, depatech
With that, PatZilla seems to start successfully.
pserve patzilla.ini
2022-04-28 18:26:07,646 INFO [patzilla.navigator.settings ][MainThread] Root configuration file is /path/to/patzilla.ini
2022-04-28 18:26:07,646 INFO [patzilla.util.config ][MainThread] Requested configuration files: /path/to/patzilla.ini
2022-04-28 18:26:07,650 INFO [patzilla.util.config ][MainThread] Effective configuration files: /path/to/patzilla.ini
2022-04-28 18:26:09,184 INFO [patzilla.access.epo.ops.client ][MainThread] Creating OpsClientPool
2022-04-28 18:26:09,186 INFO [patzilla.access.depatech.clientpool ][MainThread] Creating DepaTechClientPool
Starting server in PID 89804.
Serving on http://0.0.0.0:6543
However, when invoking a request to http://localhost:6543/navigator/, the application croaks like
Traceback (most recent call last):
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/pyramid_mako/__init__.py", line 148, in __call__
result = template.render_unicode(**system)
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/template.py", line 479, in render_unicode
self, self.callable_, args, data, as_unicode=True
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 883, in _render
**_kwargs_for_callable(callable_, data)
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 920, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 947, in _exec_template
callable_(context, *args, **kwargs)
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/patzilla/navigator/templates/site.mako", line 29, in render_body
<%include file="urlcleaner.js"/>
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 782, in _include_file
template = _lookup_template(context, uri, calling_uri)
File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 841, in _lookup_template
raise exceptions.TemplateLookupException(str(compat.exception_as()))
TemplateLookupException: Can not locate template for uri 'patzilla.navigator:templates/urlcleaner.js'
With kind regards,
Andreas.
- 主要言語
- Python
- スター
- 123
- フォーク
- 31
- 平均マージ
- 2時間 50分
- マージ済み PR(30日)
- 66
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ip-tools/patzilla のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ip-tools/patzilla#149 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ip-tools/patzilla#139 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
UI: Update Babelオープンdependencies help wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
dependencies help wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
ip-tools/patzilla#181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ip-tools/patzilla の issue をすべて見る
似ている issue
-
URLValidator ignores an explicit empty scheme allowlist対応中かも @IlyaKhalafi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
tortoise/tortoise-orm#2393 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
frappe/frappe_docker#2046 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
complete_box_iou_loss / complete_box_iou: NaN gradients for zero-height boxes, NaN for point boxesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
AXI SMU SPEC
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tenstorrent/tt-oca-harness#3556 ·
メンテナーはふだん 1 日以内に返信