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

Trying to hide the Logger Bar in the console #2149

Open
Ernesto-Alves67 opened this issue Apr 2, 2024 Discussed in #2145 · 0 comments
Open

Trying to hide the Logger Bar in the console #2149

Ernesto-Alves67 opened this issue Apr 2, 2024 Discussed in #2145 · 0 comments

Comments

@Ernesto-Alves67
Copy link

Discussed in #2145

Originally posted by Ernesto-Alves67 March 28, 2024

Recently i made a YouTube Downloader, and add GUI to it.

  • Using the anaconda enviroment to run and build.
  • The problem is when i build the app with pyinstaller.
  • I'm using this comand to build
pyinstaller  --hidden-import=PyQt5 --hidden-import=threading --hidden-import=time 
--hidden-import=pytube --hidden-import=moviepy --hidden-import=moviepy.editor --hidden-import=os 
--hidden-import=json --hidden-import=sys --hidden-import=youtubesearchpython --hidden-import=pygame

  • I try to change the files AudioClip.py and ffmpeg_audiowriter.py in an attempt to disable the logger bar.
  • And that's works only when i running the app using the following comand:
python ytdl_main.py

The app works normaly and do not print the audio writting process.

On the main code I also direct the outputs of the application to itself with:

    def initUI(self):
        self.setWindowIcon(QtGui.QIcon(self.ui.iconspath+'app-64.png'))
        sys.stdout = self

My question is:

Why when I compile with pyinstaller, without '--noconsole' tag to hide the console, I run the .exe, and when writing the audio, it still writes progress to the console?

I have done tests with '--noconcole ' too. But when he goes to write audio he can't finish the process.

Project Link: https://github.com/Ernesto-Alves67/YoutubeDownloader_/tree/main/Gui_version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant