Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named PythonTidy #6

Open
miohtama opened this issue Jun 26, 2012 · 4 comments
Open

ImportError: No module named PythonTidy #6

miohtama opened this issue Jun 26, 2012 · 4 comments

Comments

@miohtama
Copy link

SublimePythonTidy seems to depend on PythonTidy, but does not support instructions how to configure one.

This shows on console when trying to execute PythonTidy

Reloading plugin /Users/moo/Library/Application Support/Sublime Text 2/Packages/PythonTidy/Tidy.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./Tidy.py", line 17, in <module>
ImportError: No module named PythonTidy

OSX Lion

@miohtama
Copy link
Author

Ah, my guess is that Package Control installation is broken for SublimePythonTidy, because it referes to external Git repo.

I suggest either to fix or disable Package Control installation method.

@sindresorhus
Copy link

Package Control currently doesn't support git submodules: wbond/package_control#126

You could create a custom package or just include PythonTidy in the repo

// @witsch

@jfroco
Copy link

jfroco commented May 20, 2013

Hi,

Same problem here. To solved it, I did the following:

1.- Downloaded https://github.com/witsch/PythonTidy/archive/master.zip and put the files inside the master folrder in the Packages/PythonTidy/PythonTidy folder

2.- Edited Packages/PythonTidy/Tidy.py and commented the following lines:

if not exists(join(extra, '.git')):
call(['git', 'submodule', 'init'])
call(['git', 'submodule', 'update'])

Hope this helps.

@miohtama
Copy link
Author

It should also make sense to check call() return value so we can detect the condition when use has no git command installed and we can show a message telling user to install command-line git first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants