14
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pythonista3でstashを実行しNo module named 'urlparse'が出た場合の解決方法

Posted at

問題

Pythonista3でStaShを実行しgit cloneをしようとしたら下記エラーが発生

stash: <class 'ModuleNotFoundError'>: No module named 'urlparse'

原因

stashをpython3で実行しているため

解決策

設定からDefault Interpreterを選択しバージョンを2系に変更してから'stash'を実行
その後、'git clone'を実行する
※stashを実行したら、Default Interpreterはバージョンを3系に戻してOK

単純なことなのに、すごく悩みました。
インスタンスを2系で立ち上げれれば良いので他の方法もあるかも知れません。

参考にしたissues抜粋

Well, you can still run StaSh in python2 (works also in pythonista 3) until git is ported. You could even run a py2 StaSh-instance and a py3 StaSh-instance next to each other at the same time, so you could use 'git' in py2 StaSh and do your py3 work in the py3 StaSh instance.

14
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?