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

Warnings are suppressed by moviepy #1191

Closed
fepegar opened this issue May 12, 2020 · 1 comment · Fixed by #1220
Closed

Warnings are suppressed by moviepy #1191

fepegar opened this issue May 12, 2020 · 1 comment · Fixed by #1220
Labels
bug Issues that report (apparent) bugs.

Comments

@fepegar
Copy link

fepegar commented May 12, 2020

Hi,

Thanks for the library, I think it's great.

My warnings are being suppressed/captured after I import certain moviepy modules. I suspect it's caused by this line:

logging.captureWarnings(True)

Steps to Reproduce the Problem

iPython 3.8.2 (default, May  6 2020, 02:49:43)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import warnings

In [2]: import moviepy

In [3]: warnings.warn('x')
<ipython-input-3-5759b8345431>:1: UserWarning: x
  warnings.warn('x')

In [4]: from moviepy.video.io.VideoFileClip import VideoFileClip

In [5]: warnings.warn('x')

In [6]:

Specifications

  • Python Version: 3.8.2
  • Moviepy Version: 1.0.3
  • Platform Name: macOS
  • Platform Version: Catalina 10.15.4
@tburrows13
Copy link
Collaborator

Hey, thanks for the report. That is definitely not ideal, and should be looked at before the release of v2.0.

In the meantime, it looks like if you call logging.captureWarnings(False) after importing moviepy, then it should go back to the default behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs.
Projects
None yet
2 participants