Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F ffmpeg-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 402
    • Issues 402
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Karl Kroening
  • ffmpeg-python
  • Issues
  • #326
Closed
Open
Issue created Feb 09, 2020 by Administrator@rootContributor

Deprecation warning due to invalid escape sequences in Python 3.8

Created by: tirkarthi

Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue.

find . -iname '*.py'  | xargs -P 4 -I{} python -Walways -m py_compile {}
                      
./examples/split_silence.py:30: DeprecationWarning: invalid escape sequence \.
  silence_start_re = re.compile(' silence_start: (?P<start>[0-9]+(\.?[0-9]*))$')
./examples/split_silence.py:31: DeprecationWarning: invalid escape sequence \.
  silence_end_re = re.compile(' silence_end: (?P<end>[0-9]+(\.?[0-9]*)) ')
./examples/split_silence.py:33: DeprecationWarning: invalid escape sequence \.
  'size=[^ ]+ time=(?P<hours>[0-9]{2}):(?P<minutes>[0-9]{2}):(?P<seconds>[0-9\.]{5}) bitrate=')
./ffmpeg/tests/test_ffmpeg.py:33: DeprecationWarning: invalid escape sequence \:
  assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'
Assignee
Assign to
Time tracking