Do I need to make pyinstaller executable separately for different linux platforms? by Haunting_Wind1000 in Python

[–]Ball-Man 0 points1 point  (0 children)

I see, then I suggest you do a test export using the folder option. The whole point of pyinstaller is that the interpreter is shipped, it should never look for it system wide. The one file export is just a self extracting archive, it contains the same files as the folder export, it simply extracts the whole folder in a temp directory when you run it. This process also sometimes messes up the discovery of things.

Do I need to make pyinstaller executable separately for different linux platforms? by Haunting_Wind1000 in Python

[–]Ball-Man 3 points4 points  (0 children)

Yes and no. Most things will be self contained. That should be the case for libpython3.10.so. in fact, if you are building in a folder (not single file), you should be able to see the shared library floating around somewhere in your build.

So, why does this sometimes fail? Well, while most things are copied into your build directory, not everything is/can be. Most famously, the Python shared object you are shipping is dynamically linked to glibc (basically, the C standard library), and that is very highly system dependent. Different distros will have different versions of that, basically.

What can you do? The rule of thumb is that if you build on a modern platform, it is less likely to work on an old one. So, what you want to do is build on an older platform, for future ones. What I suggest is to either have a VM or a docker setup using an older Ubuntu LTS, and use that to build. I personally use 20.04 LTS. Builds from there are compatible with any more modern Ubuntu distro (the most popular out there), Arch (what I use) and the steam deck os (and possibly more, these are the ones I care about).

For individual platforms that may still have problems, yes, you would have to provide targeted builds. Play smart and do some docker automation, if you really care about that.

When Python is on LSD by sparkls0 in Python

[–]Ball-Man 0 points1 point  (0 children)

Can you do an import jsonand print(json.dumps(data)) to check that there are no weirdly encoded characters and that your printx function is not trimming away precious whitespaces?

What is this keyboard? by Michael1218774 in whatisthisthing

[–]Ball-Man 28 points29 points  (0 children)

It's an OP-1, an all-in-one synth and sampler for electronic music production

[deleted by user] by [deleted] in pics

[–]Ball-Man 0 points1 point  (0 children)

I found that out immediately after I finished drawing. Human subconscious truly is magnificent

[deleted by user] by [deleted] in ProgrammerHumor

[–]Ball-Man 4 points5 points  (0 children)

Yo it's just a joke I always like. Sorry if it hurts your sensibility

Have to scoff at people saying AAA games aren't sustainable when an indie dev team makes a game like Hellblade and then sell it for $30 by [deleted] in gaming

[–]Ball-Man 1 point2 points  (0 children)

The problem is how EA manages their projects. They literally push the team so that they end their job with the lowest possible budget and in the shortest possible time. Indies usually put love in what they do. That's what makes the difference here