Third-party module classes not detected when setting PYTHONPATH in a shell file
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- bash, javascript, python
- 領域
- tooling
調査の方向性
提供された run.sh を使って GAMS クラスが検出されない問題をまず再現し、パッケージのバージョン 1.9.3 と 1.9.4 を比較します。パッケージが設定された Python パスをどのように呼び出し、PYTHONPATH をどのように読み取るかを追跡します。run.sh の使用時に gams モジュール内のクラスが再び検出されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I've defined a shell script inside the root of my project, called run.sh. What it does is, adds two paths relating to a third-party module (GAMS Python API), to PYTHONPATH environment variable, and then calls python with all arguments given to the script:
#!/bin/bash
export PYTHONPATH=/opt/gams/gams34.3_linux_x64_64_sfx/apifiles/Python/api_39/:"$PYTHONPATH"
export PYTHONPATH=/opt/gams/gams34.3_linux_x64_64_sfx/apifiles/Python/gams/:"$PYTHONPATH"
export PYTHONPATH="$(pwd)":"$PYTHONPATH"
python3 $@
In the package settings, I've configured the python path to ./run.sh, for the script to be called and the module being detected by the package.
However, after updating the package version to 1.9.4, it no longer detects the classes inside the gams module:

Note that, the script works perfectly with 1.9.3. I downgraded the package and then upgraded it, and it seems it is reproducable for me.
(I don't think the system specs are needed, as I just mentioned, the issue is new in 1.9.4, with exact set of packages and Atom version)
- 主要言語
- JavaScript
- スター
- 238
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
atom-community/ide-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
atom-community/ide-python#575 · リアクション 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
atom-community/ide-python#570 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
atom-community/ide-python#568 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
atom-community/ide-python#567 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
atom-community/ide-python#566 ·
atom-community/ide-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-aw-workshop#3897 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信