igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] cx-freeze executable problem.


From: Tamas Nepusz
Subject: Re: [igraph] cx-freeze executable problem.
Date: Sat, 8 Aug 2015 21:58:49 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

> I am having a problem creating an executable from my script.
> [...] 
> Import Error: No module named texttable
igraph relies on the texttable Python module to draw nicely formatted ASCII
tables in graph summaries. A copy of texttable is bundled with igraph but we
try to ensure that we use the one installed by the user and fall back on the
version bundled with igraph only if the user did not install texttable
separately. Unfortunately this requires some import trickery which confuses
cx_Freeze (it does not detect that igraph depends on texttable).

The solution is described in the cx-freeze docs here:

http://cx-freeze.readthedocs.org/en/latest/faq.html#problems-with-running-frozen-programs

Basically, if you have created a setup script for your script, you need to add
"igraph.vendor.texttable" to the list of modules that you want to bundle with
your script in the "packages" option. Alternatively, add "import
igraph.vendor.texttable" to the top of your script -- this will make cx_Freeze
recognize the dependency.

T.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]