Hi Przemek,
You only need to include modules in the "includes" option if they can't be
found using static analysis. In other words, only if they are dynamically
imported using __import__() or the imp module. If you aren't using
dateutil, don't include it!
Anthony
On Wed, Mar 16, 2016 at 9:17 AM, <przemol...@poczta.fm> wrote:
>
> Hi Anthony,
>
> BTW do I need to include dateutil in the
> includes = ....
> line ?
> In general what should I put in this line ? All packages imported in my
> python script ?
>
> Best regards
> Przemek
>
>
> Od: "Anthony Tuininga" <anthony.tuini...@gmail.com>
> Do: "primary discussion list for use and development of cx_Freeze" <
> cx-freeze-users@lists.sourceforge.net>;
> Wysłane: 15:13 Środa 2016-03-16
> Temat: Re: [cx-freeze-users] Trying to use cx_freeze for first time
>
> Hi,
>
> You have been bitten by the "inclusion of package data" problem. dateutil
> has a data file that it requires for execution. It assumes its presence in
> the file system where it is installed. With cx_Freeze, however, this
> doesn't work as the package is found inside a zip file and the package
> assumes it is found on the filesystem. This problem is being worked on and
> will be addressed in cx_Freeze 5.0. In the meantime, either eliminate the
> package and use something else...or adjust the package to retrieve the data
> from another location instead and ensure that cx_Freeze puts the file there
> (using the include_files option).
>
> Anthony
>
> On Wed, Mar 16, 2016 at 7:27 AM, <przemol...@poczta.fm> wrote:
>
>> Hi all,
>>
>> I am python beginner and am trying to use cx_freeze to create exe file
>> under Windows 7.
>> I am using the following setup.py file:
>>
>> application_title = "Jira tickets alert" #what you want to application to
>> be called
>> main_python_file = "main.py" #the name of the python file you use to run
>> the program
>>
>> import sys
>>
>> from cx_Freeze import setup, Executable
>>
>> base = None
>> if sys.platform == "win32":
>> base = "Win32GUI"
>>
>> # includes = ["atexit","re"]
>> includes = ['dateutil.zoneinfo']
>>
>> setup(
>> name = "jira",
>> version = "0.1",
>> description = "cx_Freeze PyQt5 script",
>> options = {"build_exe" : {"includes" : includes }},
>> executables = [Executable(main_python_file, base = base)])
>>
>> The exe has been built but when I run it I get error window like in
>> attachment.
>> Can anybody tell me what I need to do to have it working ?
>>
>> Best regards
>> Przemek
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>> _______________________________________________
>> cx-freeze-users mailing list
>> cx-freeze-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users