How can I make Windows executable using Pyserial?

I am trying to make a Stackless Python 2.6 program executable. Setup file

from distutils.core import setup
import py2exe



and i run it with

python py2exe


However, when I try to run it, it raises an ImportError and says there is no module named serial. When I try:

python py2exe --includes serial



python py2exe --includes pyserial


build fails with ImportError. Do you have any ideas?


source to share

1 answer

There was the same problem. Upgrading pyserial to 2.5 solved the problem: exec built without additional "includes" contains pyserial.



All Articles