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

[Bug]: (Dependency)pydub warnings on python-3.12 #719

Closed
1 task done
mikewaters opened this issue Jul 10, 2024 · 1 comment
Closed
1 task done

[Bug]: (Dependency)pydub warnings on python-3.12 #719

mikewaters opened this issue Jul 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mikewaters
Copy link

What happened?

Upon first use (fabric -h) on Python 3.12.3/darwin I received the following warnings:

/Users/mike/Develop/MeatAug/fabric/.venv/lib/python3.12/site-packages/pydub/utils.py:300: SyntaxWarning: invalid escape sequence '\('
  m = re.match('([su]([0-9]{1,2})p?) \(([0-9]{1,2}) bit\)$', token)
/Users/mike/Develop/MeatAug/fabric/.venv/lib/python3.12/site-packages/pydub/utils.py:301: SyntaxWarning: invalid escape sequence '\('
  m2 = re.match('([su]([0-9]{1,2})p?)( \(default\))?$', token)
/Users/mike/Develop/MeatAug/fabric/.venv/lib/python3.12/site-packages/pydub/utils.py:310: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(flt)p?( \(default\))?$', token):
/Users/mike/Develop/MeatAug/fabric/.venv/lib/python3.12/site-packages/pydub/utils.py:314: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(dbl)p?( \(default\))?$', token):
usage: fabric [-h] [--text TEXT] ...

This is an issue with the pydub dependency (pydub-0.25.1), which was fixed and merged a few years back but hasn't made it into pypi. Related issue: test failures on python 3.12

Attached is a patch to run against your Python 3.12 venv after installing fabric:

patch -i pydub-e9ce529.patch "/where/you/keep/code/fabric/.venv/lib/python3.12/site-packages/pydub/utils.py"

Obviously this is not under your control, and the Pydub project looks like it needs some love.

Version check

  • Yes I was.

Relevant log output

No response

Relevant screenshots (optional)

No response

@mikewaters mikewaters added the bug Something isn't working label Jul 10, 2024
@mikewaters
Copy link
Author

I haven't observed it impacting anything, so maybe it's a big nothingburger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants