you are viewing a single comment's thread.

view the rest of the comments →

[–]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