Skip to content

Navigation Menu

Sign in
Sign up

installation error #488

Open
Open

Description

Issue type

Documentation Bug / Error

How did you install PythonMonkey?

Installed from pip

OS platform and distribution

Centos 7.9

Python version (python --version)

3.10

PythonMonkey version (pip show pythonmonkey)

No response

Bug Description

Building wheels for collected packages: pythonmonkey, pminit
Building wheel for pythonmonkey (pyproject.toml) ... error
error: subprocess-exited-with-error

×ばつ Building wheel for pythonmonkey (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Installing dependencies
Installing apt packages
sudo: apt-get:找不到命令
Traceback (most recent call last):
File "/tmp/pip-install-78cg2h49/pythonmonkey_7d37dc62cd74446d8d29e6e50624fb4f/build.py", line 77, in
build()
File "/tmp/pip-install-78cg2h49/pythonmonkey_7d37dc62cd74446d8d29e6e50624fb4f/build.py", line 70, in build
ensure_spidermonkey()
File "/tmp/pip-install-78cg2h49/pythonmonkey_7d37dc62cd74446d8d29e6e50624fb4f/build.py", line 44, in ensure_spidermonkey
execute("bash ./setup.sh", cwd=TOP_DIR)
File "/tmp/pip-install-78cg2h49/pythonmonkey_7d37dc62cd74446d8d29e6e50624fb4f/build.py", line 34, in execute
raise subprocess.CalledProcessError(return_code, cmd)
subprocess.CalledProcessError: Command 'bash ./setup.sh' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/in_process/in_process.py", line 280, in build_wheel
return build_backend().build_wheel(
File "/tmp/pip-build-env-kxie553
/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
return WheelBuilder.make_in(
File "/tmp/pip-build-env-kxie553
/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 95, in make_in
wb.build(target_dir=directory)
File "/tmp/pip-build-env-kxie553
/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 134, in build
self.build(zip_file)
File "/tmp/pip-build-env-kxie553
/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 183, in _build
self._run_build_script(self.package.build_script)
File "/tmp/pip-build-env-kxie553
/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 304, in _run_build_script
subprocess.check_call([self.executable.as_posix(), build_script])
File "/usr/local/python3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/python3.10/bin/python3.10', 'build.py']' 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: Failed building wheel for pythonmonkey
Building wheel for pminit (pyproject.toml) ... error
error: subprocess-exited-with-error

×ばつ Building wheel for pminit (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
Installing node_modules/asn1.js
Traceback (most recent call last):
File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/usr/local/python3.10/lib/python3.10/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/local/python3.10/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/python3.10/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/local/python3.10/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
 File "/tmp/pip-install-78cg2h49/pminit_bac586bc6a4a44aaa0bcf01c2e3679bf/post-install-hook.py", line 13, in <module>
 main()
 File "/tmp/pip-install-78cg2h49/pminit_bac586bc6a4a44aaa0bcf01c2e3679bf/post-install-hook.py", line 10, in main
 pmpm.main(WORK_DIR) # cd pythonmonkey && npm i
 File "/tmp/pip-install-78cg2h49/pminit_bac586bc6a4a44aaa0bcf01c2e3679bf/pmpm.py", line 63, in main
 tarball_data = download_package(i.tarball_url)
 File "/tmp/pip-install-78cg2h49/pminit_bac586bc6a4a44aaa0bcf01c2e3679bf/pmpm.py", line 41, in download_package
 with urllib.request.urlopen(tarball_url) as response:
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
 return opener.open(url, data, timeout)
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 519, in open
 response = self._open(req, data)
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 536, in _open
 result = self._call_chain(self.handle_open, protocol, protocol +
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
 result = func(*args)
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 1391, in https_open
 return self.do_open(http.client.HTTPSConnection, req,
 File "/usr/local/python3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
 raise URLError(err)
 urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
 Traceback (most recent call last):
 File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
 main()
 File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
 json_out["return_val"] = hook(**hook_input["kwargs"])
 File "/usr/local/python3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
 return _build_backend().build_wheel(
 File "/tmp/pip-build-env-pjlnxtsx/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
 return WheelBuilder.make_in(
 File "/tmp/pip-build-env-pjlnxtsx/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 95, in make_in
 wb.build(target_dir=directory)
 File "/tmp/pip-build-env-pjlnxtsx/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 134, in build
 self._build(zip_file)
 File "/tmp/pip-build-env-pjlnxtsx/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 183, in _build
 self._run_build_script(self._package.build_script)
 File "/tmp/pip-build-env-pjlnxtsx/overlay/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 304, in _run_build_script
 subprocess.check_call([self.executable.as_posix(), build_script])
 File "/usr/local/python3.10/lib/python3.10/subprocess.py", line 369, in check_call
 raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['/usr/local/python3.10/bin/python3.10', 'post-install-hook.py']' 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: Failed building wheel for pminit
Failed to build pythonmonkey pminit
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pythonmonkey, pminit)

Standalone code to reproduce the issue

Relevant log output or backtrace

Additional info if applicable

What branch of PythonMonkey were you developing on? (If applicable)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /