PyMiniRacer
PyMiniRacer copied to clipboard
Problems with installation / module import / depot-tools
Output when installing with pip Pyhton 3.11.10.
python -m pip install mini-racer
Collecting mini-racer
Using cached mini_racer-0.12.4.tar.gz (447 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
DEBUG:helpers.v8_build:Cloning depot tools
DEBUG:helpers.v8_build:Calling: 'git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git' from working directory /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace
Cloning into 'depot_tools'...
DEBUG:helpers.v8_build:Calling: '/opt/bin/python /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace/depot_tools/gclient.py sync --revision v8@branch-heads/12.6' from working directory /share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace
Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace/depot_tools/gclient.py", line 108, in <module>
import gclient_scm
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace/depot_tools/gclient_scm.py", line 23, in <module>
import gerrit_util
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace/depot_tools/gerrit_util.py", line 38, in <module>
import httplib2.socks
ModuleNotFoundError: No module named 'httplib2.socks'
Traceback (most recent call last):
File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-build-env-j_3erkxh/overlay/lib/python3.11/site-packages/hatchling/build.py", line 58, in build_wheel
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-build-env-j_3erkxh/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
build_hook.initialize(version, build_data)
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/hatch_build.py", line 24, in initialize
artifacts = build_v8(out_path="src/py_mini_racer")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/helpers/v8_build.py", line 413, in build_v8
ensure_v8_src(revision)
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/helpers/v8_build.py", line 233, in ensure_v8_src
run(
File "/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/helpers/v8_build.py", line 163, in run
return check_call(args, env=env, cwd=cwd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lib/python3.11/subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '('/opt/bin/python', '/share/CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-9ev4kjw5/mini-racer_5340a7c6e7c041f8b971033420cdf794/v8_workspace/depot_tools/gclient.py', 'sync', '--revision', 'v8@branch-heads/12.6')' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
As far as i could track it down the latest version is 0.12.4 from 20th June 24 (not that new). But the installation pulls the depot_tools from git without a fixed tag or version.
The problematic commit introducing import httplib2.socks has been brought in at 12th June 24. This was before mini-racer has released it latest version.
So I assume it was not a mini-racer issue that time but could be caused by the latest depot-tools.
Can someone verify if mini-racer is still working with the latest depot-tools?! Thank you