Sorry, that should read
includes = ['decimal']
________________________________
From: Lee <quim...@yahoo.com>
To: Thomas Kluyver <tak...@gmail.com>
Cc: primary discussion list for use and development of cx_Freeze
<cx-freeze-users@lists.sourceforge.net>
Sent: Thursday, September 19, 2013 4:18 PM
Subject: Re: [cx-freeze-users] cx-freeze with pyserial
Thomas,
My apologies for not realizing they were only warnings - This is my first time
using cx_freeze. I was getting an error when running my EXE and assumed they
were related.
(The following is the solution for others who might be having the same problem)
I was getting the following error when running my EXE
Traceback (most recent call last):
File "C:\Python33\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 2
7, in <module>
exec(code, m.__dict__)
File "miGPS.py", line 4, in <module>
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1558, in _find_a
nd_load
File
"C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1525, in _find_a
nd_load_unlocked
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 586, in _check_n
ame_wrapper
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 497, in set_pack
age_wrapper
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 510, in set_load
er_wrapper
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1130, in load_mo
dule
File "C:\Python\32-bit\3.3\lib\importlib\_bootstrap.py", line 313, in _call_wi
th_frames_removed
RuntimeError: Unable to import decimal
The solution was to add includes: ['decimal'] in my cx_freeze setup.py file.
All good now. Thankyou!
________________________________
From: Thomas Kluyver <tak...@gmail.com>
To: Lee <quim...@yahoo.com>; primary discussion list for use and development of
cx_Freeze <cx-freeze-users@lists.sourceforge.net>
Sent: Thursday, September 19, 2013 3:57 PM
Subject: Re: [cx-freeze-users] cx-freeze with pyserial
On 19 September 2013 06:29, Lee <quim...@yahoo.com> wrote:
I'm Getting the following message in the build process:
>Missing modules:
>? System imported from serial.serialcli
>? TERMIOS imported from serial.serialposix
>? clr imported from serial.serialcli
This means that it can't find 'System', 'TERMIOS' and 'clr'. The 'imported
from' bit is telling you which modules those are imported from.
As the next version of cx_Freeze will say after that: "This is not necessarily
a problem - the modules may not be needed on this platform." In this case, I
recognise TERMIOS as being a Unix-only thing, and clr is related to .NET, so I
think it only exists in IronPython.
In other words, those are warnings, not errors. Try running the executable you
get anyway, and see whether it works.
Thomas
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users