tbodt / v8py

Write Python APIs, then call them from JavaScript using the V8 engine.
GNU Lesser General Public License v3.0
443 stars 29 forks source link

Broken installation on pip when libv8 is not installed (You are not currently on a branch) #43

Open michelemostarda opened 3 years ago

michelemostarda commented 3 years ago

(venv) DIR $ pip install v8py Collecting v8py Using cached v8py-0.9.15.tar.gz (45 kB) Building wheels for collected packages: v8py Building wheel for v8py (setup.py) ... \ error ERROR: Command errored out with exit status 1: command: DIR/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"'; file='"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-wheel-63avuc5y cwd: /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/ Complete output (91 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.8 creating build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/init.py -> build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/devtools.py -> build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/debug.py -> build/lib.macosx-10.14-x86_64-3.8/v8py running build_ext running build_v8 libv8_libplatform.a not found installing depot tools git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git Cloning into 'depot_tools'... downloading v8 fetch --force v8 WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.

____ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/v8/v8.git /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/_gclient_v8_68z64n79' in '/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py' Cloning into '/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/_gclient_v8_68z64n79'... remote: Sending approximately 418.37 MiB ... remote: Counting objects: 7660, done
remote: Total 809100 (delta 677676), reused 809100 (delta 677676) Receiving objects: 100% (809100/809100), 418.37 MiB | 13.98 MiB/s, done. Resolving deltas: 100% (677676/677676), done. [0:01:47] Still working on: [0:01:47] v8 ____ running 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/v8' Hook 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' took 11.58 secs ____ running 'vpython build/landmines.py --landmine-scripts tools/get_landmines.py' in '/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/v8' ____ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s buildtools/mac/clang-format.sha1' in '/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/v8' /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/depot_tools/python: line 2: python2: command not found Error: Command 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s buildtools/mac/clang-format.sha1' returned non-zero exit status 127 in /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/v8 Running: gclient config --spec 'solutions = [ { "name": "v8", "url": "https://chromium.googlesource.com/v8/v8.git", "deps_file": "DEPS", "managed": False, "custom_deps": {}, }, ] ' Running: gclient sync --with_branch_heads Subprocess failed with return code 2. Traceback (most recent call last): File "", line 1, in File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 171, in setup( File "DIR/venv/lib/python3.8/site-packages/setuptools/init.py", line 165, in setup return distutils.core.setup(**attrs) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "DIR/venv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 223, in run self.run_command('build') File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 164, in build_extension self.run_command('build_v8') File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 146, in run get_v8() File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 127, in get_v8 run('fetch --force v8') File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 85, in run check_call(command, shell=True, env=COMMAND_ENV) File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'fetch --force v8' returned non-zero exit status 2.

ERROR: Failed building wheel for v8py Running setup.py clean for v8py Failed to build v8py Installing collected packages: v8py Running setup.py install for v8py ... error ERROR: Command errored out with exit status 1: command: DIR/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"'; file='"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-record-doo1rd0u/install-record.txt --single-version-externally-managed --compile --install-headers DIR/venv/include/site/python3.8/v8py cwd: /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/ Complete output (67 lines): running install running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.8 creating build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/init.py -> build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/devtools.py -> build/lib.macosx-10.14-x86_64-3.8/v8py copying v8py/debug.py -> build/lib.macosx-10.14-x86_64-3.8/v8py running build_ext running build_v8 libv8_libplatform.a not found updating depot tools git pull You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 171, in <module>
    setup(
  File "DIR/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/DIR/venv/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 164, in build_extension
    self.run_command('build_v8')
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 146, in run
    get_v8()
  File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 123, in get_v8
    run('git pull')
  File "/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py", line 85, in run
    check_call(command, shell=True, env=COMMAND_ENV)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'git pull' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: DIR/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"'; file='"'"'/private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-install-60cwoxo4/v8py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/d5/c_0b4h1d7t1gx6tzz_dn5cj40000gq/T/pip-record-doo1rd0u/install-record.txt --single-version-externally-managed --compile --install-headers DIR/venv/include/site/python3.8/v8py Check the logs for full command output.