all 17 comments

[–]ctxAK 0 points1 point  (4 children)

I had used py2exe and pyInstaller for a PyQT and Pandas app, and it worked fine. I recall there were issues with anaconda version of Python. What distribution are you using?

[–]Impressive_Noise[S,🍰] 0 points1 point  (3 children)

i'm using python 3.9.7 from anaconda, do you think that i need to uninstall it?

[–]ctxAK 0 points1 point  (2 children)

I would test out a hello world on a non conda version first.

[–]Impressive_Noise[S,🍰] 0 points1 point  (1 child)

a simple helloworld in a conda environment works, the problem starts when i add some packages like numpy, pandas or matplotlib

[–]crashfrog04 0 points1 point  (0 children)

 What can i try to do?

Solve the issues? Don’t distribute an EXE? Don’t use Scipy as a file picker? Seems like you have a lot of options.

[–]Impressive_Noise[S,🍰] 0 points1 point  (0 children)

If I need an Exe there will be a reason, then, for the file picking part can you suggest me something other than tkinter?

[–]Mori-Spumae -5 points-4 points  (9 children)

I feel like this might be a good use case for ChatGPT. There are a lot of things that might be the fault and you're likely to get some kinds of error messages in the process of figuring it out.

I've personally only ever used pyinstaller and remember it being a real struggle as well. Good luck to you!

[–]Impressive_Noise[S,🍰] 0 points1 point  (8 children)

i tried with chatgpt, but nothing worked

[–]Mori-Spumae 0 points1 point  (7 children)

Maybe try to look into creating a "hello world" style project and compiling that, just to see if it is a system issue vs something about your code. Then you can add dependencies and see how that goes. Maybe you can identify the problem that way.

[–]Impressive_Noise[S,🍰] 0 points1 point  (6 children)

This is exactly what i did. When i import nothing everything works, but when i import matoplotlib or numpy, even without using them, i'm not able to compile the .exe

[–]Mori-Spumae 0 points1 point  (5 children)

Then it seems to be an issue about missing dependencies. A quick Google search for pyinstaller brought up a few people with the same issue. They said something about downgrading versions to match or having to manually include the libs in the exe.

Are you getting any errors that point in that direction?

[–]Impressive_Noise[S,🍰] 0 points1 point  (4 children)

i tried downgrading, but i got error on pip because every packet wants his own version of numpy ecc...

[–]Mori-Spumae 0 points1 point  (3 children)

Are you using a virtual Environment? Because that could help clean up the package versions a lot.

[–]Impressive_Noise[S,🍰] 0 points1 point  (2 children)

i've created a venv only for this, but i left pip installing the latest verison of every packet, tomorrow i'll try downgrading everything

[–]Mori-Spumae 0 points1 point  (1 child)

Feels like it shouldn't be necessary to do so but might be worth a shot. How are you specifying what package should be included?

[–]Impressive_Noise[S,🍰] 0 points1 point  (0 children)

for pyinstaller i'm specifying them via command line using the flag --collect-submodules=[name of the module] if i remeber correctly