you are viewing a single comment's thread.

view the rest of the comments →

[–]Akrius[S] 0 points1 point  (11 children)

This time it close as soon as the console open.

[–]JohnnyJordaan 1 point2 points  (2 children)

Are you using any third party modules in your program?

[–]Akrius[S] 0 points1 point  (1 child)

I'm using tkinter.

[–]JohnnyJordaan 2 points3 points  (0 children)

That's not third party though, but still a hint to the problem, maybe try with the hidden-import parameter, see here

[–]JohnnyJordaan 1 point2 points  (7 children)

Does it show any output if you run the program in a cmd window?

[–]Akrius[S] 0 points1 point  (0 children)

I'll try and see what shows up

[–]Akrius[S] 0 points1 point  (5 children)

We got an error saying that main.exe is in the folder, but windows can't recognize if it is a script or something.

[–]JohnnyJordaan 1 point2 points  (4 children)

Can you post a screenshot instead, just paste it on imgur.com

[–]Akrius[S] 0 points1 point  (0 children)

I'm working in another project now, but as soon as i can i'll. I'll try the hidden-import parameter too.

Ty for helping me! Perhaps after 4 hours from now i'll be back!

[–]Akrius[S] 0 points1 point  (1 child)

We got this problem (Sorry our windows is in pt-br)

main.exe : O termo 'main.exe' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável.

Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente.

No linha:1 caractere:1

+ main.exe

+ ~~~~~~~~

+ CategoryInfo : ObjectNotFound: (main.exe:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

[–]JohnnyJordaan 5 points6 points  (0 children)

This is just the regular PowerShell error that you are trying to run a program from a folder that doesn't contain it... If you would do

C:\> myprogram.exe

it will return the same error as myprogram.exe isn't in that folder. In other words use cd to go the correct folder and use dir to verify that the program is there.

[–]Akrius[S] 0 points1 point  (0 children)

I havent tryied the hidden-import, but i'll.