WindowsコンピューターにAnacondaをインストールしましたが、Spyderは正常に動作しますが、静的コード分析機能を使用してpylintを実行するとエラーが発生します。PylintはCondaを通じてインストールされました。
注:Spyderのエラーにより、テキストを直接コピーして貼り付けることができませんでした。画像からテキストへのコンバーターを使用して以下のコードを取得したため、文字が数文字ずれている可能性があります...
No config file found, using default configuration Traceback (most recent call last):
File "C: \Users\ Username \AppData \Local \Continuum \Anaconda \Scripts\pylint-script.py", line 2, in <module>
run_pylint()
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\_init_.py", line 23, in run_pylint
Run(sys.argv[1:])
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\lint.py", line 1313, in _init_
lintercheck(args)
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\lint.py", line 729, in check
self._do_check(files_or_modules)
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\lint.py", line 831, in _do_check
for descr in self.expand_files(files_or_modules):
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\lint.py", line 872, in expand_files
self.add_message(key, args=message)
File "C: \Users\ USERNAME \AppData \Local \Continuum \Anaconda \lib\site-packages\pylint\utils.py", line 390, in add_message
self.stats['by_moduld][self.current_name][msg_cat] += 1
KeyError: None
誰かが解決策について何か考えを持っていますか?ありがとうございました!
F8([ソース]> [静的コード分析の実行])を押すと、これが機能するはずです。
ペインの分析ボタンは、ボタンの左側にある静的コード分析ドロップダウンにあるファイルを分析するように指示します。そこに何もないと、とても混乱するようです。
F8キーを押すと、編集中の現在のファイルがドロップダウンに自動入力されるため、どこにいてもナビゲートする手間が省けます。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加