Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"Loading PyV8 binary" issue #129

Open
aeyoll opened this Issue · 51 comments
@aeyoll

Hello,
When installing Emmet, I get the "Loading PyV8 binary" message, then it says it's successfully loaded, and Emmet is working fine.

I'm having an issue when I restart Sublime Text. The "Loading PyV8 binary" is not going away and Emmet is not working.

If I delete my ~/.config/sublime-text-2/Packages/PyV8 folder, and then restart Sublime Text, it downloads and loads PyV8 successfully.

I'm using a 64bits Ubuntu 10.04.

Thanks,
Jean-Philippe

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@sergeche
Owner

PyV8 loader should create a PyV8/linux/config.json file with info about last update. Then it checks once a day if there’s a new version of PyV8 binary. Can you confirm that this file is created and post here its content?

Also, as a workaround, you can manually download PyV8 binary and store it in the very same location and create config.json with the following content:

{"skip_update": true}

This will turn off automatic update of PyV8.

@sergeche
Owner

Also, can you check out ST2 console for messages regarding PyV8 loader?

@aeyoll

Thanks for your quick answer.

My config.json file is created in PyV8/linux64/config.json, here is its content:

$ more config.json 
{"skip_update": false, "last_update": 1352891356.74651, "last_id": 353541}

Turning skip_update to true doesn't have any effect.

Here is what I got on the console:

Reloading plugin /home/jeanphilippe/.config/sublime-text-2/Packages/Emmet/emmet-plugin.py
PyV8 Loader: Creating thread
@sergeche
Owner

OK, I’ll check it out

@totaku

I have the same problem. OS Debian 6.0 Sublime dev 2220. in Windows 7 all work.

@Honn

Same here. Ubuntu 10.04. skip_update: true didn't have any effect.

@ivancduran

I uninstall emmet an delete folders from emmet and pyv8.
reinstall all and works...

but the next problem is:

div + [tab] =

the problem is here:

div*2 + [tab] = not works!

div>li + [tab] = not works!

div>ul>li + [tab] = not works!

ctrl+alt+enter = not works!

I checked the keyboard settings and still not working.
only works with single tags

thanks you!

@sergeche
Owner

@ivancduran can you open ST2 console, run sublime.log_commands(True) and post here command names invoked when you’re expanding abbreviation by Tab key.

@ivancduran

for normal div:

Traceback (most recent call last):
File "./sublime_plugin.py", line 225, in on_query_context
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 224, in
File "./emmet-plugin.py", line 289, in on_query_context
File "./emmet-plugin.py", line 143, in should_handle_tab_key
AttributeError: 'NoneType' object has no attribute 'locals'
command: insert_best_completion {"default": " ", "exact": false}


for div*2:

Traceback (most recent call last):
File "./sublime_plugin.py", line 225, in on_query_context
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 224, in
File "./emmet-plugin.py", line 289, in on_query_context
File "./emmet-plugin.py", line 143, in should_handle_tab_key
AttributeError: 'NoneType' object has no attribute 'locals'
command: insert_best_completion {"default": " ", "exact": false}

@sergeche
Owner

@ivancduran it means PyV8 was not downloaded or installed. Check out ST2 log for any clues about PyV8

@ivancduran

in ubuntu 11.04
sublime reinstall without any plugin.
install package manager
Emmet install
Pyv8 install manually. (From the ZIP).
and get the same problem.

ubuntu 12.04
on my laptop with a completely new installation.
and works fine.

I hope I can help solve this detail with this feedback.
I am very interested in being able to use it on my desktop.
thank you very much.

@jonhkr

same problem here:

I think the problem is with glibc

here is the traceback when running python linux32/PyV8.py

Traceback (most recent call last):
  File "linux32/PyV8.py", line 19, in <module>
    import _PyV8
ImportError: /usr/lib/gcc/i686-pc-linux-gnu/4.5.4/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by linux32/_PyV8.so)

I'm installing gcc 4.6 right now to see if can solve the issue.

@jonhkr

Installing gcc 4.6 solved solved for me, I'm using Gentoo Linux

@sergeche
Owner

OK, I’ve installed Ubuntu 10.04 and, as @jonhkr noted, the problem with outdated LIBC. I’ll try to recompile PyV8 binary for older LIBC, but you should try to update LIBC/GCC to the most recent version.

@ivancduran

I have gcc 4.5
try to install from repository and look like this:

sudo apt-get install build-essential

Reading package lists... Done
Building dependency tree

Reading state information... Done

build-essential is already the newest version.

will try to install it manually.

@Bucozar

On 32bit Mac OSX 10.6.8 I get:

$ python PyV8.py 
Traceback (most recent call last):
  File "PyV8.py", line 19, in 
    import _PyV8
ImportError: dlopen(~/Library/Application Support/Sublime Text 2/Packages/PyV8/osx/_PyV8.so, 2): no suitable image found.  Did find:
        ~/Library/Application Support/Sublime Text 2/Packages/PyV8/osx/_PyV8.so: mach-o, but wrong architecture
@Bucozar

Ok, thanks for the information.
Sorry to hear 10.6 is it not supported.

@aeyoll

@sergeche I installed gcc4.6, and it solved the problem. Thanks everyone for your feedbacks and solutions!

@sahibalejandro

I had the same problem, in Debian 6.0.6 and Ubuntu 10.04 x64 fresh install.
Like @sergeche, the fix is to install gcc 4.6, for those who want to do this, follow this steps:

Add https://launchpad.net/~ubuntu-toolchain-r/+archive/test to your repositories by running:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Then follow the steps in http://askubuntu.com/a/26518/23678 to map gcc to the version you just installed.

In our case, you want to run:

sudo apt-get install gcc-4.6
sudo apt-get install g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++

Then Emmet works!

Source: http://superuser.com/questions/310809/how-can-i-update-gcc-to-the-latest-version-in-ubuntu-10-04

@jackocnr

Thanks @sahibalejandro this worked for me on Ubuntu 10.04

@clayzermk1

I also ran into this on Debian 6.0.6 squeeze. GCC 4.7 is in wheezy at the moment.

I added wheezy to my /etc/apt/sources.list and set the default version per http://serverfault.com/questions/322533/best-way-to-install-package-from-wheezy-on-squeeze.

I installed with apt-get install gcc/wheezy and restarted ST2.

This got Emmet working and resolved the PyV8 issue, but installing gcc 4.7 is a pretty severe solution.
For example: this breaks squeeze linux-headers-2.6.32-5 (no compiling kernel modules for you!) along with other things.

@sergeche Would it be possible to just compile the PyV8 binaries with a lower gcc version in a future release? squeeze uses gcc 4.3/4.4.

Thanks all.

@danihuge

and what about Fedora Core??

@sergeche
Owner

@clayzermk1 I was trying to compile it with lower GCC version, but I got lots of compilation errors. I’ll try to re-compile it again.

@pauldcollins

I am having the same problem, but I am on Windows 7. Does anyone have a fix for Windows 7? Let me know if you need any further info!

@pauldcollins

Just a bit more information, I am getting the following in the console when I start ST. I am on a Windows 32 bit machine.


PyV8 Loader: Creating thread
emmet.pyv8loader: Unable to download packages list. URL error [Errno 11004] getaddrinfo failed downloading https://api.github.com/repos/emmetio/pyv8-binaries/downloads.
Reloading plugin C:\Users\d693100\AppData\Roaming\Sublime Text 2\Packages\HTML\encode_html_entities.py
Reloading plugin C:\Users\d693100\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
Reloading plugin C:\Users\d693100\AppData\Roaming\Sublime Text 2\Packages\Package Control\Package Control.py
Reloading plugin C:\Users\d693100\AppData\Roaming\Sublime Text 2\Packages\PyV8\PyV8.py
plugin init time: 0.439023


@sergeche
Owner

@pauldcollins looks like the problem is that Emmet can’t download PyV8 package for some reason (no internet? proxy?). You may try to install it manually: https://github.com/emmetio/pyv8-binaries

@smasty

@sergeche Would it be possible to compile it on GCC 4.4? I don't want to update half of my distro just to use Emmet...

@sergeche
Owner

@smasty I’ll see what I can do. But you can compile PyV8 by yourself: http://code.google.com/p/pyv8/wiki/HowToBuild

@TravisBenning

@pauldcollins I'm on a Win7 machine and (with ST2 not running) I just deleted the PyV8 folder from the packages folder and then started ST2 and it worked. It's a work around for now but it resolved the issue for me.

@oliahmed

i installed emmet on sublime but its not working perfectly when i am writing ul>li then its just showing ul

  • insteasd of showing
    its just working with one tag not for all what would i do for solving this problem ....

  • @sergeche
    Owner

    @oliahmed check ST console for errors

    @oliahmed

    i checked console but there's nothing about any error it showing this startup, version: 2221 windows x32 channel: stable
    executable: /C/Program Files/Sublime Text 2/sublime_text.exe
    working dir: /C/Windows/system32
    packages path: /C/Users/Administrator/AppData/Roaming/Sublime Text 2/Packages
    settings path: /C/Users/Administrator/AppData/Roaming/Sublime Text 2/Settings
    PackageSetup not required
    Py_GetProgramName(): sublime_text.exe
    Py_GetExecPrefix(): C:\Program Files\Sublime Text 2
    Py_GetProgramFullPath(): C:\Program Files\Sublime Text 2\sublime_text.exe
    Py_GetPath(): C:\Program Files\Sublime Text 2\python26.zip;C:\Program Files\Sublime Text 2\DLLs;C:\Program Files\Sublime Text 2\lib;C:\Program Files\Sublime Text 2\lib\plat-win;C:\Program Files\Sublime Text 2\lib\lib-tk;C:\Program Files\Sublime Text 2
    Py_GetPythonHome(): C:\Program Files\Sublime Text 2
    catalogue loaded
    found 8 files for base name Default.sublime-keymap
    found 1 files for base name Default.sublime-mousemap
    found 4 files for base name Main.sublime-menu
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\CSS\css_completions.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\echo.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\fold.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\new_templates.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\open_file_settings.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\open_in_browser.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\paragraph.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\save_on_focus_lost.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\set_unsaved_view_name.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\side_bar.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Diff\diff.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Emmet\emmet-plugin.py
    Traceback (most recent call last):
    File ".\sublime_plugin.py", line 62, in reload_plugin
    File ".\emmet-plugin.py", line 720, in
    init()
    File ".\emmet-plugin.py", line 82, in init
    pyv8loader.unpack_pyv8(p)
    File ".\emmet\pyv8loader.py", line 150, in unpack_pyv8
    package_zip = zipfile.ZipFile(f, 'r')
    File ".\zipfile.py", line 696, in init
    File ".\zipfile.py", line 716, in _GetContents
    File ".\zipfile.py", line 728, in _RealGetContents
    zipfile.BadZipfile: File is not a zip file
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\HTML\encode_html_entities.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\LoremIpsum\LoremIpsum.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Package Control\Package Control.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Vintage\vintage.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Vintage\vintage_commands.py
    Reloading plugin C:\Users\Administrator\AppData\Roaming\Sublime Text 2\Packages\Vintage\vintage_motions.py
    plugin init time: 0.178465
    loading bindings
    loading pointer bindings
    found 1 files for base name Default.sublime-theme
    theme loaded
    app ready
    pre session restore time: 0.341942
    wrote startup cache, added files: 2 orphaned files: 0 total files: 107 cache hits: 105
    startup time: 0.415628 (package setup was not run)
    loaded 1801 snippets
    Package Control: Skipping automatic upgrade, last run at 2013-09-30 14:14:01, next run at 2013-09-30 15:14:01 or after
    Writing file /E/Unknown/Texts/oli.html with encoding UTF-8

    @sergeche
    Owner

    Traceback (most recent call last):
    File ".\sublime_plugin.py", line 62, in reload_plugin
    File ".\emmet-plugin.py", line 720, in
    init()
    File ".\emmet-plugin.py", line 82, in init
    pyv8loader.unpack_pyv8(p)
    File ".\emmet\pyv8loader.py", line 150, in unpack_pyv8
    package_zip = zipfile.ZipFile(f, 'r')
    File ".\zipfile.py", line 696, in init
    File ".\zipfile.py", line 716, in _GetContents
    File ".\zipfile.py", line 728, in _RealGetContents
    zipfile.BadZipfile: File is not a zip file

    Try to re=install plugin or install PyV8 manually: https://github.com/emmetio/pyv8-binaries#manual-installation

    @oliahmed

    thanks emmet is now working great my PyV8 folder was empty i have installed pyv8 and set it to the default folder.

    @giancarlorosa

    I am also trying to install but to no avail.
    Could you tell me how to get the file path for the ST3?

    I tried these two ways:
    C: \ Users \ iagente \ AppData \ Roaming \ Sublime Text 3 \ Packages \ PyV8 \ pyv8-win64-p3.zip

    • In this way still kept giving error loading.

    C: \ Users \ iagente \ AppData \ Roaming \ Sublime Text 3 \ Packages \ PyV8 \ _PyV8.pyd
    C: \ Users \ iagente \ AppData \ Roaming \ Sublime Text 3 \ Packages \ PyV8 \ PyV8.py

    • Thus, the error does not occur, but the Emmet simply does not work.
    @giancarlorosa

    DPI scale: 1
    startup, version: 3047 windows x64 channel: stable
    executable: /C/Program Files/Sublime Text 3/sublime_text.exe
    working dir: /C/Program Files/Sublime Text 3
    packages path: /C/Users/iagente/AppData/Roaming/Sublime Text 3/Packages
    state path: /C/Users/iagente/AppData/Roaming/Sublime Text 3/Local
    hardware concurrency: 2
    zip path: /C/Program Files/Sublime Text 3/Packages
    zip path: /C/Users/iagente/AppData/Roaming/Sublime Text 3/Installed Packages
    found 15 files for base name Default.sublime-keymap
    found 1 files for base name Default.sublime-mousemap
    found 9 files for base name Main.sublime-menu
    loading bindings
    loading pointer bindings
    found 1 files for base name Default.sublime-theme
    theme loaded
    app ready
    startup cache, total files: 197 cache hits: 197
    pre session restore time: 0.111866
    startup time: 0.246866
    first paint time: 0.275866
    launching: /C/Program Files/Sublime Text 3/plugin_host.exe
    reloading plugin Default.block
    reloading plugin Default.comment
    reloading plugin Default.copy_path
    reloading plugin Default.delete_word
    reloading plugin Default.detect_indentation
    reloading plugin Default.duplicate_line
    reloading plugin Default.echo
    reloading plugin Default.exec
    reloading plugin Default.fold
    reloading plugin Default.font
    reloading plugin Default.goto_line
    reloading plugin Default.history_list
    reloading plugin Default.indentation
    reloading plugin Default.kill_ring
    reloading plugin Default.mark
    reloading plugin Default.new_templates
    reloading plugin Default.open_file_settings
    reloading plugin Default.open_in_browser
    reloading plugin Default.pane
    reloading plugin Default.paragraph
    reloading plugin Default.paste_from_history
    reloading plugin Default.save_on_focus_lost
    reloading plugin Default.scroll
    reloading plugin Default.set_unsaved_view_name
    reloading plugin Default.side_bar
    reloading plugin Default.sort
    reloading plugin Default.swap_line
    reloading plugin Default.switch_file
    reloading plugin Default.symbol
    reloading plugin Default.transform
    reloading plugin Default.transpose
    reloading plugin Default.trim_trailing_white_space
    reloading plugin CSS.css_completions
    reloading plugin Diff.diff
    reloading plugin HTML.encode_html_entities
    reloading plugin HTML.html_completions
    reloading plugin Alignment.Alignment
    reloading plugin DocBlockr.jsdocs
    reloading plugin Emmet.emmet-plugin
    loaded 1214 snippets
    reloading plugin JsFormat.js_formatter
    reloading plugin Package Control.Package Control
    reloading plugin SideBarEnhancements.Edit
    reloading plugin SideBarEnhancements.SideBar
    reloading plugin SideBarEnhancements.SideBarDefaultDisable
    reloading plugin SideBarEnhancements.StatusBarFileSize
    reloading plugin SideBarEnhancements.StatusBarModifiedTime
    reloading plugin Tag.Edit
    reloading plugin Tag.Tag
    reloading plugin Tag.tag_close_tag
    reloading plugin Tag.tag_close_tag_on_slash
    reloading plugin Tag.tag_indent
    reloading plugin Tag.tag_insert_as_tag
    reloading plugin Tag.tag_lint
    reloading plugin Tag.tag_remove
    reloading plugin Tag.tag_remove_attributes
    reloading plugin PyV8.PyV8
    Traceback (most recent call last):
    File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
    File "X/importlib/init.py", line 88, in import_module
    File "", line 1577, in _gcd_import
    File "", line 1558, in _find_and_load
    File "", line 1525, in _find_and_load_unlocked
    File "", line 586, in _check_name_wrapper
    File "", line 1023, in load_module
    File "", line 1004, in load_module
    File "", line 562, in module_for_loader_wrapper
    File "", line 869, in _load_module
    File "", line 313, in _call_with_frames_removed
    File "C:\Users\iagente\AppData\Roaming\Sublime Text 3\Packages\PyV8\PyV8.py", line 32, in
    import _PyV8
    ImportError: No module named '_PyV8'
    reloading plugin SFTP.SFTP
    plugins loaded
    Traceback (most recent call last):
    File "emmet-plugin in C:\Users\iagente\AppData\Roaming\Sublime Text 3\Installed Packages\Emmet.sublime-package", line 101, in init
    File "emmet-plugin in C:\Users\iagente\AppData\Roaming\Sublime Text 3\Installed Packages\Emmet.sublime-package", line 231, in update_settings
    File "C:\Users\iagente\AppData\Roaming\Sublime Text 3\Installed Packages\Emmet.sublime-package\emmet\context.py", line 204, in js
    File "C:\Users\iagente\AppData\Roaming\Sublime Text 3\Installed Packages\Emmet.sublime-package\emmet\context.py", line 57, in should_use_unicode
    AttributeError: 'module' object has no attribute 'JSContext'
    Package Control: Skipping automatic upgrade, last run at 2013-10-09 11:13:37, next run at 2013-10-09 12:13:37 or after

    @smit2013

    i use my laptop under university proxy and as such i had trouble automatically downloading and installing PyV8 so I manually downloaded the compiled binaries and put them in respective dir as instructed in https://github.com/emmetio/pyv8-binaries .. this method perfectly worked for ST2 but in ST3 the plugins are in compressed form so how do you suggest we manually install PyV8 in ST3? I tried zipping the PyV8 folder and renaming it to PyV8.sublime-package but got the following error msg in console

    PyV8/pyv8-win64-p3/__MACOSX/._PyV8.py in C:\Users\Abhijit Baishya\AppData\Roaming\Sublime Text 3\Installed Packages\PyV8.sublime-package is not utf-8 encoded, unable to load plugin

    Any suggestions...?

    @sergeche
    Owner

    ST3 supports both compressed and uncompressed plugins, installation instructions are the same.

    @gmoralesc

    Same problem.

    CentOS 6.5, Sublime Text 3, Install Emmet via Package Control.

    Change in Emmet User Settings:
    {"disable_pyv8_update": true}

    Change in config.json on PyV8
    {"skip_update": true}

    Write a tag, press CTRL+SHIFT+Y and says "Please wait a bit while PyV8" binary is being downloaded.

    Try to reinstall PyV8 manually from https://github.com/emmetio/pyv8-binaries, does not work

    Thanks

    @sergeche
    Owner

    @gmoralesc there was a problem with GitHub recently, it returned broken zip files. You should remove PyV8 folder from Packages or Installed Packages of ST app data and restart ST

    @gmoralesc

    @sergeche Thanks for quick answer. I think the problem is CentOS, because in Mac OS 10.9 and Windows 7 works perfectly. In CentOS installation have python 2.6.6 and gcc 4.4.7, need upgrade?

    @zeusdeux zeusdeux referenced this issue in emmetio/pyv8-binaries
    Open

    Updated install instructions for Sublime Text 3 #9

    @seanwoodward

    @sergeche first. thank you for all of your work. emmet looks fantastic. while reviewing the code, I noticed an issue with the PV8 loading. I don't know if this applies, but in the file context.py:105 a lock is acquired in a try: except: block. I am very new to python, so I'm not sure if this is correct, but if an exception is thrown by the subsequent calls to imp.load_module(), will the lock be released? or should the release_lock() be moved to the finally: block?

    @ggirelli

    Same issue here on Ubuntu 14.04 64-bit.
    Already downloaded the .zip file from emmetio/pyv8-binaries and followed the instruction.
    After restarting ST3, the bug was not fixed...
    Here the console log:

    PyV8: Creating new thread
    Emmet: Creating thread
    Emmet: Loading https://api.github.com/repos/emmetio/pyv8-binaries/contents
    Emmet: Loading PyV8 binary from https://raw.github.com/emmetio/pyv8-binaries/master/pyv8-linux64-p3.zip
    Exception in thread Thread-15:
    Traceback (most recent call last):
      File "X/threading.py", line 639, in _bootstrap_inner
      File "X/threading.py", line 825, in run
      File "/home/gire/.config/sublime-text-3/Installed Packages/Emmet.sublime-package/emmet/pyv8loader.py", line 271, in run
        return self.trigger('error', exit_code=self.thread.exit_code, progress=self)
      File "/home/gire/.config/sublime-text-3/Installed Packages/Emmet.sublime-package/emmet/pyv8loader.py", line 290, in trigger
        c(*args, **kwargs)
    TypeError: on_error() got an unexpected keyword argument 'progress'
    
    @ggirelli

    Solved. Please specify that, when installing the PyV8 precompiled zip, we must place the PyV8/pyv8-osx-p3 in the SAME folder as Emmet :D

    @ricardoerl

    This worked for me: With ST3 on ubuntu 14.04, unzip the PyV8 Binarie (from https://github.com/emmetio/pyv8-binaries) in the path: /home/[user]/.config/sublime-text-3/PyV8 and restart.

    @triitvn

    @ggirelli Thank you :+1:

    @ondoheer

    Hello,
    I've run into the same problem on a freshly installed system, Installing it in the main sublime-text-2 folder solved it in sublime-text-2 also.

    @sergeche
    Owner

    Try v1.1 beta, this issue should be fixed: http://emmet.io/blog/beta-v1-1/

    @ondoheer
    @96chan

    I am using OS X 10.9.4 with ST 2.

    I resolve this issue by manually installing OSX 10.6 version, instead of OSX 10.7+

    1) Installing EMMET through Package Control.
    2) Check the Package folder whether PyV8 folder is created.
    3) Download OSX 10.6 version through https://github.com/emmetio/pyv8-binaries#readme
    4) Unzip and copy two files in the directory and paste them to osx folder inside PyV8 folder by replacing existing ones.

    and done!

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Something went wrong with that request. Please try again.