Code Monkey home page Code Monkey logo

Comments (10)

github-actions avatar github-actions commented on June 29, 2024

👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.

Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on June 29, 2024

When you say "stays in the background as background task", are you meaning the UI doesn't open at all and just the Python process is running, or do you mean the UI opens in the background (unfocused) and then you need to click on the taskbar icon to focus the window?

from auto-py-to-exe.

San3-Cod3 avatar San3-Cod3 commented on June 29, 2024

Sorry for not making that even more clearer:

So, I'll launch auto-py-to-exe for example without Administrator privileges - whether by launching its exe directly or using CLI, and a CMD Command Prompt / Terminal / Console Window appears for it, a blank empty cmd window like so: http://puu.sh/K2wxw/faa7e66968.png -- this would appear using an Admin cmd too, and this is normal behaviour and will show up on-screen and have a spot on the TaskBar in both scenarios.

And, at the same time, the Python Interpreter executable launches in the background as it does usually, along with the executable for auto-py-to-exe, here: http://puu.sh/K2wwT/28cd3b11b8.png -- both running in the background - BUT, the Graphical User Interface for auto-py-to-exe does not appear at all, as in the UI does not launch, it is not in the TaskBar; not on-screen -- there is no interface to interact with; nothing can be brought to the Foreground, it exists simply as a Background Task in this: non-Administrator state. Something relating to privileges or something is preventing the GUI from appearing; at least for me.

Now, when auto-py-to-exe is run as an Administrator through cmd or its exe, the GUI will appear as normal on-screen: http://puu.sh/K2wEd/9608826cff.png -- with its usual place on the TaskBar. And its background process then appearing like this: http://puu.sh/K2wBD/739926c4a8.png

Do note slight change in image for its background task, it differs from when it's running normally and on-screen, versus when it won't appear - yellow Python script icon ( no GUI ) vs. generic green and white application icon ( visible GUI ).

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on June 29, 2024

I noticed the executable running was auto-py-to-exe.exe - this project does not supply a file named this.

You can find the proper installation and usage in the README.

from auto-py-to-exe.

San3-Cod3 avatar San3-Cod3 commented on June 29, 2024

I'm confused to be honest.

Either way, this isn't the only executable - there are two:

http://puu.sh/K2x5C/bfe2f136ca.png

There's these folders as well:

http://puu.sh/K2x6p/47838c3fd7.png

Located in:

%USERPROFILE%\AppData\Local\Programs\Python\Python36-32\Lib\site-packages

http://puu.sh/K2x7e/1955309e2b.png

http://puu.sh/K2x7C/44639119de.png

You're saying you don't recognise these?

http://puu.sh/K2x89/08617e8782.png

http://puu.sh/K2x8k/4d896a1582.png

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on June 29, 2024

My bad, those are the executables Python makes for entry_points in setup.py - I had thought this was a custom .exe.

When running auto-py-to-exe from a non-admin terminal (a case where you say the UI doesn't open), is there any output in the terminal you ran the command from?

Also is it opening another console window when running auto-py-to-exe from a terminal? That's a bit odd 🤔

from auto-py-to-exe.

San3-Cod3 avatar San3-Cod3 commented on June 29, 2024

So, when I use a non-Administrative Command Prompt and type: auto-py-to-exe, just like that, in the background I get this as I linked previously before: https://puu.sh/K2wwT/28cd3b11b8.png -- the cmd window I used to enter that command into then goes into wait mode with the blinking white line (Terminal Cursor) on the upper left-hand side, (no text in cmd, other than what was user typed), and then you get the typical slight screen flash as if a program or application is loading and preparing to launch, but then the GUI does not actually appear like normal behaviour, not in the TaskBar and nowhere to be seen, with no way for it to be interacted with - no way of having it come to the Foreground, and with an Admin Console like I mentioned before, it launches just fine and would appear in the background as this: http://puu.sh/K2xfH/ff995d5855.png. It wasn't always like this though, as in the past it would work normally without needing any elevated Admin privileges. Odd indeed.

The way I can describe this after having thought about it some more is, ironically, it's like its stuck in headless mode without Admin privileges, I.E like when you make an exe with the program itself and choose to "hide the console" xD -- but the GUI is hidden in this regard, and then with Admin rights it's like it appears normally like making things GUI Window Based.

But other than what I have described thus far - I don't have any more information I can provide on this issue; unless you can think of something.

Any idea or suggestion? @brentvollebregt

Able to reproduce?

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on June 29, 2024

Sorry for the late reply - have been busy.

I noticed you said, "get the typical slight screen flash as if a program or application is loading and preparing to launch" when running from cmd without admin - sounds like Chrome tried to open the application but something happened.

It's interesting you say this was working before and now you have this issue - the last UI change that impacted the UI in any way was almost a year ago.

If you try using auto-py-to-exe --no-chrome, do you still have this happen?

from auto-py-to-exe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.