I can't make this .py .exe help me.
i have python34 installed on windows 7 - 32 bits
This is a Snake.py simple game and i can't convert it using py2exe.
i looked in google and stackoverflow and everywhere else but couldn't fix it.
i get this error when trying to convert the script.
The error: http://pastebin.com/uRHpg1B8
And this is my game: http://pastebin.com/R6A89Nhe
Well, based on your error output, it looks like you are missing several packages which are important for pygame to function. Error output duplicated below, for future reference.
8 missing Modules
------------------
? MacOS imported from pygame.macosx
? Numeric imported from pygame
? OpenGL imported from pygame
? Py25Queue imported from pygame.threads
? Queue imported from pygame.threads
? numpy imported from pygame, pygame._numpysndarra
y, pygame._numpysurfarray
? packaging imported from pkg_resources
? readline imported from cmd, code, pdb
Related
Problem is whenever I try to run any python file with import pygame in it, it does not work. It always results in a ModuleNotFoundError: No module named 'pygame', though I do have pygame library installed.
I don't know if this is part of the problem but my pygame package is for some reason in \Lib\site-packages.
I created a game using pygame (python2.7) and tried to convert it using py2exe.
These are the modules I used:
pygame,Tkinter,random
here's my "setup.py":
from distutils.core import setup
import py2exe
setup(options={
"py2exe":{
"includes": ["Tkinter","pygame","random"]
}
}
)
when I try to run the .exe file I get this Error:
NotImplementedError: font module not avaible
(ImportError: DLL load failed: module couldn't be found
What do I have to change?
There's two things to check here. First, ensure that you are using 32-bit python and 32-bit pygame. Pygame only plays nice with 32-bit python, and you're opening a can of worms if you ignore that. The other thing to check is to make sure that all the modules are spelt the way that they are spelt on your system when you load in the dlls. (A common suspect is that Tkinter has an upper case module name and this might throw something off)
I'm having problems while running a compiled source code. The code itself is correct and if I run python file.py everything goes fine; if I compile it with pyinstaller or software like this, and then I run the compiled file it says ImportError: No module named _cffi_backend. But when I open python and import cffi and/or _cffi_backend python doesn't show error. Investigating in my code I found that the problem is just with padding from cryptography, so if I don't import padding the output doesn't show errors (obviously errors comes because the code doesn't work well without padding module).
Can someone help me?
I just ran into this issue as well.
What worked for me was adding in --hidden-import=_cffi_backend option when building with pyinstaller.
I can't make this .py .exe help me.
i have python34 installed on windows 7 - 32 bits
This is a Snake.py simple game and i can't convert it using py2exe.
i looked in google and stackoverflow and everywhere else but couldn't fix it.
i get this error when trying to convert the script.
The error: http://pastebin.com/uRHpg1B8
And this is my game: http://pastebin.com/R6A89Nhe
Well, based on your error output, it looks like you are missing several packages which are important for pygame to function. Error output duplicated below, for future reference.
8 missing Modules
------------------
? MacOS imported from pygame.macosx
? Numeric imported from pygame
? OpenGL imported from pygame
? Py25Queue imported from pygame.threads
? Queue imported from pygame.threads
? numpy imported from pygame, pygame._numpysndarra
y, pygame._numpysurfarray
? packaging imported from pkg_resources
? readline imported from cmd, code, pdb
I'm using cx_Freeze to freeze my Python code so I can distribute it as executable on Windows systems. It works fine but it's missing a few modules. I use some open-source libraries in my project e.g. BeautifulSoup and Periscope. They use some libraries for backward compatibility which i don't need to include as Python 2.6 has them. The problem is the third import — multiprocessing._multiprocessing. Can anyone tell me what I need to install in order to fix this? The mutiprocessing module seems to come bundled with Python so what's causing this error?
Missing modules:
? cjkcodecs.aliases imported from BeautifulSoup.BeautifulSoup
? iconv_codec imported from BeautifulSoup.BeautifulSoup
? multiprocessing._multiprocessing imported from multiprocessing.forking
? xdg.BaseDirectory imported from periscope.periscope
Any help?
Thanks guys!
There was a similar issue on Google App Engine. See this
I fixed this my putting a _multiprocessing.py file into the multiprocessing module's folder. This file contained the code:
import multiprocessing
This works but it isn't a robust answer.