Sublime Forum

Emmet not working in 3126

#1

Heyo,

I’ve struggled to get Emmet working again in Sublime Text 3 3126 (also in 3125). When I check the console I get this:

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 109, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "emmet-plugin in /home/user/.config/sublime-text-3/Installed Packages/Emmet.sublime-package", line 24, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/home/user/.config/sublime-text-3/Installed Packages/Emmet.sublime-package/emmet/pyv8loader.py", line 20, in <module>
AttributeError: 'module' object has no attribute 'error'

I’ve tried one of the other solutions (remove the 0_ .package file etc.), which makes Emmet work again UNTIL I have to restart Sublime. After restarting, Emmet fails to work again.

I hope this log can shed some light on what might be the issue.

Thanks in advance for any kind of help.

1 Like

#2

Hi, I can confirm the issue. Incrementing/decrementingnumbers (via Ctrl or Alt + arrows) is also gone (honestly I can’t remember whether it is Emmet feature or Sublime’s).

Also weird properties appeared in autocomplete (probably some default list of CSS properties). For instance db expands to box-decoration-break not yet fully supported property (instead of display: block).

Partial and temporary help is to install Hayaku package, which brings back expected autocompletion, but does not help with in/decrementing the numbers via Ctrl+ArrowUp/Down.

1 Like

#3

The same issue or similar one that was solved

0 Likes

#4

Hi guys,

I tested it on portable edition and Emmet works good. Maybe some plugin kill Emmet.

0 Likes

#5

Hi gerry, I tried that solution as well, but it didn’t work for me. Well, it works, but only if I rename the file and restart ST3 every time I want to work. So it’s not a viable solution for me, I’m afraid.

But thanks!

0 Likes

#6

I’m suspecting that it could be another plugin that’s messing things up. I’ll try to dig into that. Thanks Mertak.

0 Likes

#7

I’m having the same issue here. Emmet not working anyway!

0 Likes

#8

I’ve tried the solution and it works for me.
For now at least!
Thanks guys!

0 Likes

#10

we wait pull

for those who do not want to wait for an update plugin
1 rename/backup /Installed Packages/Emmet.sublime-package -> Emmet.sublime-package.orig
2 edit Emmet.sublime-package/emmet/pyv8loader.py (.sublime-package = zip-archive)
before
20: import urllib.error as url_err
21: import urllib.parse as url_parse
after
20: url_err = ‘’
21: url_parse = ‘’
or ready to replace the file
https://github.com/ildarkhasanshin/emmet-sublime/raw/tmp-for-3125/3126/Emmet.sublime-package

0 Likes

[Solved]Emmet not working in 3124