質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

解決済

1回答

2769閲覧

atomのscript-runner インストールできない

Shrimp_of_ise

総合スコア8

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2018/03/19 04:04

ATOMでpythonを使っているのですが、script-runnerがインストールできません。

script-runnerを入れようとしても、途中で失敗してしまいます。

発生している問題・エラーメッセージ

Installing "script-runner@2.2.2" failed.

試したこと

https://iwb.jp/atom-script-plugin-error-fix/
上URLに書いてあることを試そうとしたのですが、コマンドをどこに書けばいいのかが分かりません。

補足情報

MacでATOMを使用しています。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

下記URLに書いてありますが、script-runnerはPython3.xでは動作しません。
https://github.com/ioquatix/script-runner

手元のMacのpythonを3.6に変更したところ、同じようなエラーが出ることを確認しました。
MacのデフォルトはPython2.7のはずなので、何か設定をいじっているのでしょうか?

ターミナルアプリを開いてpython --version を実行した際のバージョンはいくつですか?

それと、上記エラー発生時のShow output...を追記することで問題解決に近づけるかもしれません。

追記

apmで使うPythonのバージョンが2系で問題なければ(3系を使っている理由が特になければ)、下記のコマンド実行で解決するはずです。

sh

1apm config set python $(which python2.7)

投稿2018/03/19 06:27

編集2018/03/19 09:56
KaiShoya

総合スコア551

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

Shrimp_of_ise

2018/03/19 09:44

> node-pty@0.7.4 install /private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/apm-install-dir-118219-1154-tms3cc.pkifxswcdi/node_modules/script-runner/node_modules/node-pty > node scripts/install.js /private/var/folders/4t/sx89y90w_d0bgh_nmytsmhr0000gn/T/apm-install-dir-118219-1154-tms3cc.pkifxswcdi '-- (empty) Agreeing to the Xcode/iOS license requires admin privileges , please run "sudo xcodebuld -license" and then retry this command. Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 69 gyp ERR! stack at ChildProcess.onExit (/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/AppTranslocation/6AFFAA61-121C-4CFD-B920-BAA15D84459E/d/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Darwin 16.7.0 gyp ERR! command "/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/AppTranslocation/6AFFAA61-121C-4CFD-B920-BAA15D84459E/d/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/AppTranslocation/6AFFAA61-121C-4CFD-B920-BAA15D84459E/d/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "rebuild" gyp ERR! cwd /private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/apm-install-dir-118219-1154-tms3cc.pkifxswcdi/node_modules/script-runner/node_modules/node-pty gyp ERR! node -v v6.9.5 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/apm-install-dir-118219-1154-tms3cc.pkifxswcdi/package.json' npm WARN apm-install-dir-118219-1154-tms3cc.pkifxswcdi No description npm WARN apm-install-dir-118219-1154-tms3cc.pkifxswcdi No repository field. npm WARN apm-install-dir-118219-1154-tms3cc.pkifxswcdi No README data npm WARN apm-install-dir-118219-1154-tms3cc.pkifxswcdi No license field. npm ERR! Darwin 16.7.0 npm ERR! argv "/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/AppTranslocation/6AFFAA61-121C-4CFD-B920-BAA15D84459E/d/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/AppTranslocation/6AFFAA61-121C-4CFD-B920-BAA15D84459E/d/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/nishino_juniors/.atom/.apm/.apmrc" "--userconfig" "/Users/nishino_juniors/.atom/.apmrc" "install" "/private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/d-118219-1154-bak9j5.0zhb29y66r/package.tgz" "--runtime=electron" "--target=1.6.16" "--arch=x64" "--global-style" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! node-pty@0.7.4 install: `node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-pty@0.7.4 install script 'node scripts/install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-pty package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-pty npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-pty npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/4t/sx89y8w90_d0bgh_nmytsmhr0000gn/T/apm-install-dir-118219-1154-tms3cc.pkifxswcdi/npm-debug.log npm ERR! code 1
KaiShoya

2018/03/19 09:46

Pythonのバージョンは3系ですか?
Shrimp_of_ise

2018/03/19 09:46

がshow outputの内容になります。xcodeが邪魔をしているのでしょうか?
KaiShoya

2018/03/19 09:49

それが原因だと思います。
KaiShoya

2018/03/19 09:50

それ -> python3.6.5
Shrimp_of_ise

2018/03/19 09:50

xcodeを消せばいいのでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問