python - py2exe and assimulo - No module named algebraic -


i trying build executable using py2exe on soft uses library assimulo (differential equation solver). problem encountered during execution receive:

importerror: no module named algebraic

the exact error message is:

traceback (most recent call last):   file "main.py", line 89, in <module>     simulation.simulation import simulation   file "simulation\simulation.pyc", line 18, in <module>     manages action linked simulation, running, saving, replay, etc...   file "solver\assimulosolver.pyc", line 7, in <module>     explicit solver choose in list of assimulo solvers:   file "assimulo\solvers\__init__.pyc", line 25, in <module>   file "assimulo\solvers\kinsol.pyc", line 12, in <module>   file "assimulo\solvers\kinsol.pyc", line 10, in __load   file "kinsol.pyx", line 1, in init assimulo.solvers.kinsol (assimulo\solvers\kinsol.c:19711) importerror: no module named algebraic 

here qe can see line 7 produces troubles, , line

from assimulo.solvers import radau5dae 

the setup.py file py2exe looks following:

from distutils.core import setup py2exe.build_exe import py2exe import sys glob import glob import matplotlib  data_files = [("microsoft.vc90.crt", glob(r'c:\program files (x86)\microsoft visual studio 9.0\vc\redist\x86\microsoft.vc90.crt\*.*'))] data_files.extend(matplotlib.get_py2exe_datafiles()) sys.path.append("c:\\program files (x86)\\microsoft visual studio 9.0\\vc\\redist\\x86\\microsoft.vc90.crt")  excludes = ['_gtkagg', '_tkagg'] includes = [             "scipy.sparse.csgraph._validation",              "scipy.special._ufuncs_cxx",              ]  opts = {     "py2exe": {         "includes":includes,         "excludes":excludes,     } }  setup(name = "mysoft",        version = "0.1",        data_files=data_files,        windows=[{"script":"main.py"}], options=opts) 

if has clue, interested. thanks

sometimes have found py2exe failing include packages, when listed in packages option, have found if import package in setup.py starts work try adding, near top of setup.py:

import assimulo 

you find even

if false:     import assimulo 

will work, (use assimulo lot of setting on import).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -