Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

illumos support #360

Open
mtelka opened this issue Jun 28, 2024 · 0 comments
Open

illumos support #360

mtelka opened this issue Jun 28, 2024 · 0 comments

Comments

@mtelka
Copy link

mtelka commented Jun 28, 2024

nodeenv is missing illumos support:

__________________________________ test_smoke __________________________________

tmpdir = local('/tmp/pytest-of-marcel/pytest-15/test_smoke0')

    @pytest.mark.integration
    def test_smoke(tmpdir):
        nenv_path = tmpdir.join('nenv').strpath
>       subprocess.check_call([
            # Enable coverage
            'coverage', 'run', '-p',
            '-m', 'nodeenv', '--prebuilt', nenv_path,
        ])

tests/nodeenv_test.py:30:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', ...],)
kwargs = {}, retcode = 1
cmd = ['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', '/tmp/pytest-of-marcel/pytest-15/test_smoke0/nenv']' returned non-zero exit status 1.

/usr/lib/python3.9/subprocess.py:373: CalledProcessError
----------------------------- Captured stderr call -----------------------------
 * Install prebuilt node (22.3.0)
Traceback (most recent call last):
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1547, in <module>
    main()
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1129, in main
    create_environment(env_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1005, in create_environment
    install_node(env_dir, src_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 762, in install_node
    install_node_wrapped(env_dir, src_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 778, in install_node_wrapped
    node_url = get_node_bin_url(args.node)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 569, in get_node_bin_url
    'arch': archmap[platform.machine()],
KeyError: 'i86pc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant