I have created a simple game with python and pygame and I would like to create an executable for each platform, so people don't need to install a lot of dependencies just to try my game. It seems that pyinstaller is what I am looking for, so I have installed it on my Ubuntu machine, where I developed the game. I tried to run it with the following command:
pyinstaller --onefile main.py
and the executable seems to be correctly created, but when I run it, I get the following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "/home/loris/Dropbox/Workspace/Python/pyMemory/build/main/out00-PYZ.pyz/pygame", line 99, in <module>
ImportError: No module named base
I don't really know what to do to solve this problem and I can't seem to find someone else with the same one, so is there anything I could check to try to fix this issue?
EDIT:
I succesfully managed to create a 32 bit executable on Windows, so I thought the problem lied in the 64 bit version of python I was using, so I tried to use pyinstaller into a 32 bit Ubuntu virtual machine, but the result was the same.