Skip to content

swap out pipes for shlex #127

@kalegood

Description

@kalegood

Vibe coded the following fix for an error on an AUR install.Not a coder, so not sure how to do pull requests.

Well, that's not quite true. I have done 1 pull request. It was for ly2video, and it was 13 years ago! I see you got around to trying it out a few years back... we're like ships in the night here.

The ly2video package you installed is failing because it relies on the pipes module, which was removed in Python 3.13. The package has not been updated to support this new version of Python.

The pkg_resources warning you see is separate and harmless for now, but the ModuleNotFoundError is a crash that requires a fix.

Since you installed this via the AUR, the quickest solution is to manually patch the installed file.

How to Fix It (Manual Patch)
You need to edit the file mentioned in your error message to use the modern shlex module instead of the removed pipes module.

Open the file in a text editor with root privileges:

Bash

sudo nano /usr/lib/python3.13/site-packages/ly2video/cli.py
Find line 30 (the import): Change:

Python

import pipes
To:

Python

import shlex
Find and replace usages of pipes.quote: Search for pipes.quote in the file (Ctrl+W in nano) and replace every instance with shlex.quote.

Change pipes.quote( to shlex.quote(.

Save and Exit: (Ctrl+O, Enter, then Ctrl+X).

Try running ly2video again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions