GitGutter icon indicating copy to clipboard operation
GitGutter copied to clipboard

No module named git_gutter_handler

Open marktheunissen opened this issue 12 years ago • 21 comments

I'm seeing this in Sublime Text 2 from today:

Traceback (most recent call last): File "./sublime_plugin.py", line 205, in on_activated File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 204, in File "./git_gutter_events.py", line 44, in on_activated File "./view_collection.py", line 18, in add ImportError: No module named git_gutter_handler

marktheunissen avatar May 29 '14 14:05 marktheunissen

Hello, I have the same issue.

badmanski avatar May 29 '14 14:05 badmanski

It may be related to #169.

Reinmar avatar May 29 '14 15:05 Reinmar

Last good commit: 5f332b7. First bad: e5450eb.

Reinmar avatar May 29 '14 15:05 Reinmar

Thanks, @Reinmar , temporarily checked out to 5f332b7, will wait for updates on this issue :+1:

badmanski avatar May 29 '14 15:05 badmanski

Thats bazaar. The error looks like it is coming from line 18 in view_collection.py:

from git_gutter_handler import GitGutterHandler

Which has not changed in any of the recent commits.

However, in the recent commits I did change to use relative imports but I see I missed that spot. so line 16 should be:

from .git_gutter_handler import GitGutterHandler

instead of

from GitGutter.git_gutter_handler import GitGutterHandler

But that should only effect ST3 not ST2. Just out of curiosity though, if you make that change manually does it change anything?

jisaacks avatar May 29 '14 18:05 jisaacks

Hi @jisaacks , tried the change in ST2, still same error

mcmoe avatar May 29 '14 18:05 mcmoe

Made the changes as @jisaacks suggested: File "./sublime_plugin.py", line 205, in on_activated File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 204, in File "./git_gutter_events.py", line 44, in on_activated File "./view_collection.py", line 16, in add ValueError: Attempted relative import in non-package

in ST2.

tomsherrod avatar May 29 '14 18:05 tomsherrod

Installed latest version available (2014.05.29.11.57.01) using Sublime Package Control for ST2 and I'm facing the same errors.

sergiolepore avatar May 29 '14 18:05 sergiolepore

Yes indeed, it won't work for ST2. What I did was revert to the last known working commit which is at https://github.com/jisaacks/GitGutter/commit/5f332b7 .. go to the GitGutter package directory in your ST2 Package directory and run "git checkout 5f332b7" .. this should revert your local branch to the last working commit. You can then update everything once there is a working solution.

mcmoe avatar May 29 '14 18:05 mcmoe

I just pushed a new commit. I believe it fixes this issue. Please test and confirm. Thanks!

jisaacks avatar May 30 '14 00:05 jisaacks

I tried to install via package control and cloning the repo. Seems to be working but the gutter icons are displaying strangely. (see attached) screen shot 2014-05-29 at 11 38 06 pm

qaiken avatar May 30 '14 04:05 qaiken

Me and a colleague of mine have the same issue of @qaiken. But we had the plugin already installed. A reinstallation of it doesn't fix the problem.

schermata 05-2456808 alle 09 23 40

kevincittadini avatar May 30 '14 07:05 kevincittadini

Same problem for me today, icons are not working like previous comment. I have tried to uninstall and reinstall but it doesn't work yet

AlessandroMinoccheri avatar May 30 '14 07:05 AlessandroMinoccheri

Same here. In console it shows:

Unable to decode .../Application Support/Sublime Text 2/Packages/Theme - Default/..//icons/changed.png

martins avatar May 30 '14 07:05 martins

I just updated from Package Control. Also seeing the weird icons.

blalor avatar May 30 '14 10:05 blalor

It sounds like everyone having an issue still is with the icons not loaded which is issue #167. This issue should be for GitGutter not working at all and reporting an error like: ImportError: No module named git_gutter_handler

Is anyone still seeing that?

jisaacks avatar May 30 '14 11:05 jisaacks

Resolved for me.

blalor avatar May 30 '14 11:05 blalor

Not for me. Still same problem

kevincittadini avatar May 30 '14 12:05 kevincittadini

Working, both this issue and #167 on ST2 @jisaacks thanks!

sergiolepore avatar May 30 '14 14:05 sergiolepore

Upgraded and it's working for me again. Thanks for the fast fix! I never realized how dependent I was on this plugin...

Scotchester avatar May 30 '14 18:05 Scotchester