Issues with local files on next

9 views
Skip to first unread message

Weihmann, Konrad

unread,
Dec 5, 2024, 5:23:11 AM12/5/24
to kas-...@googlegroups.com

After using latest next, I have an issue with dump failing.
It works for everything that comes from a repository, but for local files that are not under version control I end up with

Traceback (most recent call last):

  File "/usr/local/lib/python3.10/dist-packages/kas/kas.py", line 237, in main

    kas(sys.argv[1:])

  File "/usr/local/lib/python3.10/dist-packages/kas/kas.py", line 211, in kas

    plugin.run(args)

  File "/usr/local/lib/python3.10/dist-packages/kas/plugins/dump.py", line 213, in run

    super().run(args)

  File "/usr/local/lib/python3.10/dist-packages/kas/plugins/checkout.py", line 58, in run

    ctx.config = Config(ctx, args.config)

  File "/usr/local/lib/python3.10/dist-packages/kas/config.py", line 53, in __init__

    top_repo_path = Repo.get_root_path(

  File "/usr/local/lib/python3.10/dist-packages/kas/repos.py", line 282, in get_root_path

    (ret, output) = run_cmd(['hg', 'root'],

  File "/usr/local/lib/python3.10/dist-packages/kas/libkas.py", line 188, in run_cmd

    ret = subprocess_run(cmd, env=env, cwd=cwd, stdout=PIPE)

  File "/usr/lib/python3.10/subprocess.py", line 503, in run

    with Popen(*popenargs, **kwargs) as process:

  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__

    self._execute_child(args, executable, preexec_fn, close_fds,

  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child

    raise child_exception_type(errno_num, err_msg, err_filename)

FileNotFoundError: [Errno 2] No such file or directory: 'hg'

Does that mean hg module is now required to run kas?
Would a sanity check for git tool make sense as well?

BTW that doesn’t happen on master

Regards
Konrad

 

We continuously commit to comply with the applicable data protection laws and ensure fair and transparent processing of your personal data.
Please read our privacy statement including an information notice and data protection policy for detailed information on our website.

MOESSBAUER, Felix

unread,
Dec 5, 2024, 7:11:48 AM12/5/24
to Konrad....@avnet.eu, kas-...@googlegroups.com
On Thu, 2024-12-05 at 10:23 +0000, 'Weihmann, Konrad' via kas-devel
wrote:
Hi, many thanks for testing and reporting this.

>
> Does that mean hg module is now required to run kas?
> Would a sanity check for git tool make sense as well?

No, mercurial ("hg") support will remain optional.

>
> BTW that doesn’t happen on master

Master does not yet include some of the event loop changes. I just sent
a fix for the bug to the list.

Best regards,
Felix

>
> Regards
> Konrad
>  
> We continuously commit to comply with the applicable data protection
> laws and ensure fair and transparent processing of your personal
> data.
> Please read our privacy statement including an information notice and
> data protection policy for detailed information on our website.

--
Siemens AG, Technology
Linux Expert Center


Reply all
Reply to author
Forward
0 new messages