AttributeError: module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'
See original GitHub issueI have used cx_freeze to build a python project into a single folder with an .exe and it’s dependencies, but when I run the .exe I get the error: AttributeError: module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'
I have tried both from moviepy.editor import * and also from moviepy.video.io.VideoFileClip import VideoFileClip and here is the python code:
pygame.display.set_mode((854, 480), pygame.NOFRAME)
pygame.display.set_caption('©2017 CherryByte™ Software')
pygame.mouse.set_visible(False)
logo = VideoFileClip('CherryByte Logo.mp4')
logo.preview()
pygame.mouse.set_visible(True)
It seems to run fine from the IDE (PyCharm) but once built, it seems to fail. Here is a shot of the Traceback:

Python version 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] Version info. sys.version_info(major=3, minor=6, micro=1, releaselevel=‘final’, serial=0)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:24 (1 by maintainers)
Top Results From Across the Web
AttributeError: 'module' object has no attribute 'audio_fadein'
I had same error while I was using the pyinstaller to build the .exe file. However, I changed the import statement to from...
Read more >Attributeerror: 'Module' Object Has No Attribute ... - ADocLib
AttributeError : module 'moviepy.audio.fx.all' has no attribute 'audiofadein'. Just when I was So I used pyinstaller to package in the pycharm terminal.
Read more >audio.fx — MoviePy 1.0.2 documentation
The module moviepy.audio.fx regroups functions meant to be used with audio.fx() . ... import moviepy.audio.fx.all as afx newaudio = (audioclip.afx( ...
Read more >module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'_ ...
Pyinstaller:moviepy打包报错AttributeError: module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'. 丶凉 于 2021-09-05 23:29:56 发布 8571 收藏 20.
Read more >AttributeError: 'module' object has no attribute 'audio_fadein'
AttributeError : module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'. AttributeError. I have read the docs for MoviePy but cannot ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For everyone that has the same issue i solved it by modifying the selected init file shown in the picture below:
Inside it there is a piece of code that import every function inside the fx folder:
Comment this block and import manually every function needed, like so:
Do the same with the init placed in moviepy.audio.fx.all
you can do with the ZiddyEng comment but with audio
and this is the full list of video: