Package: python3-venv
Version: 3.10.4-1

I tried to take upstream jupyter-packaging (I'm trying to package
it...). I installed all deps:
Build-Depends: debhelper-compat (= 13),
               dh-python,
               python3-all,
               python3-build <!nocheck>,
               python3-deprecation,
               python3-packaging,
               python3-pytest <!nocheck>,
               python3-pytest-mock <!nocheck>,
               python3-setuptools,
               python3-tomlkit,
               python3-venv <!nocheck>


Then running "pytest-3" gives what's below. Notice: /tmp/build-env-
nu5yo_4s doesn't seem to exist at all when I check after the error, so
I don't really know what to check / how to debug the issue.

Cheers,

J.Puydt

============================= test session starts
==============================
platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/jpuydt/Debian/build/jupyter-packaging-0.12.0
plugins: hypothesis-6.36.0, mock-3.6.1
collected 66 items

tests/test_build_api.py ......FF                                      
[ 12%]
tests/test_core_functions.py .......                                  
[ 22%]
tests/test_datafiles_install.py ssssssssss                            
[ 37%]
tests/test_datafiles_paths.py ........                                
[ 50%]
tests/test_deprecated.py ...s.s....                                   
[ 65%]
tests/test_install.py sss                                             
[ 69%]
tests/test_is_stale.py ...........                                    
[ 86%]
tests/test_main.py .                                                  
[ 87%]
tests/test_utility_functions.py ........                              
[100%]

=================================== FAILURES
===================================
______________________________ test_build_package
______________________________

make_package = <function make_package_base.<locals>.do_stuff at
0x7f471b7c5ea0>

    def test_build_package(make_package):
        package_dir = make_package()
        pyproject = package_dir / "pyproject.toml"
        text = pyproject.read_text(encoding="utf-8")
        text = text.replace("setuptools.build_meta",
"jupyter_packaging.build_api")
        text += TOML_CONTENT
        pyproject.write_text(text, encoding="utf-8")
        package_dir.joinpath("foo.py").write_text(FOO_CONTENT,
encoding="utf-8")
>       check_call([sys.executable, "-m", "build"], cwd=package_dir)

/home/jpuydt/Debian/build/jupyter-packaging-
0.12.0/tests/test_build_api.py:128: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ 

popenargs = (['/usr/bin/python3', '-m', 'build'],)
kwargs = {'cwd': PosixPath('/tmp/pytest-of-jpuydt/pytest-
6/test_build_package0/package')}
retcode = 1, cmd = ['/usr/bin/python3', '-m', 'build']

    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
'['/usr/bin/python3', '-m', 'build']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:369: CalledProcessError
----------------------------- Captured stdout call --------------------
---------
* Creating venv isolated environment...

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 372, in
main
    built = build_call(
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 229, in
build_package_via_sdist
    sdist = _build(isolation, builder, outdir, 'sdist',
config_settings, skip_dependency_check)
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 140, in
_build
    return _build_in_isolated_env(builder, outdir, distribution,
config_settings)
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 104, in
_build_in_isolated_env
    with _IsolatedEnvBuilder() as env:
  File "/usr/lib/python3/dist-packages/build/env.py", line 104, in
__enter__
    executable, scripts_dir = _create_isolated_env_venv(self._path)
  File "/usr/lib/python3/dist-packages/build/env.py", line 258, in
_create_isolated_env_venv
    executable, script_dir, purelib =
_find_executable_and_scripts(path)
  File "/usr/lib/python3/dist-packages/build/env.py", line 303, in
_find_executable_and_scripts
    raise RuntimeError(f'Virtual environment creation failed,
executable {executable} missing')
RuntimeError: Virtual environment creation failed, executable
/tmp/build-env-nu5yo_4s/local/bin/python missing

ERROR Virtual environment creation failed, executable /tmp/build-env-
nu5yo_4s/local/bin/python missing

Reply via email to