Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using pyinstaller
#1
Heart 
Hello forum,

I want to create an executable of my python code. But I´m running into an error when I run the executable.

My file "test.py" has the following content:

import numpy as np
from moviepy.editor import VideoFileClip, concatenate_videoclips

print("hello world")
When I run: "python test.py" in my console it generates an output and put "hello world" on my console. So far so great!

When I run the command: "pyinstaller --onefile test.py" it generates an executable in my dist directory. However, when I run the executable I get the following error:

AttributeError: module 'moviepy.audio.fx.all' has no attribute 'audio_fadein'
[10316] Failed to execute script testinstaller

Why I cannot run the executable while the code runs fine going through the python compiler?

I use:

Python 3.8.3
Pyinstaller 4.0 (I have tried 4.1 from github as well, but I get the same results)

Thanks for helping me out in advance.

Greetings,

Irwin
Reply


Messages In This Thread
using pyinstaller - by irwincommap - Nov-17-2020, 04:13 PM
RE: using pyinstaller - by buran - Nov-17-2020, 05:55 PM
RE: using pyinstaller - by irwincommap - Nov-23-2020, 03:50 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020