benmaier / netwulf

Interactive visualization of networks based on Ulf Aslak's d3 web app.
MIT License
293 stars 26 forks source link

how to make .exe in Windows with pyinstaller and netwulf included [SOLVED] #48

Closed zoldaten closed 3 years ago

zoldaten commented 3 years ago

Hi ! While packing netwulf in windows with pyinstaller myscript.py -D i got errors. The first one was that matplotlib wasn't work correctly so i downgraded it to matplotlib==3.0.3 Than i fixed mathplotlib in its dir '/site-packages/matplotlib/mpl-data/matplotlibrc': TkAgg to Agg following this issue: https://stackoverflow.com/questions/20582384/importerror-no-module-named-backend-tkagg Than i packed my script again pyinstaller myscript.py -D and had error: distutils.errors.DistutilsFileError: cannot copy tree ... So i copied dir netwulf/js from native package to my package dist dir: dist\myscript\netwulf\js

After that my script.exe works correctly using netwulf package!

benmaier commented 3 years ago

Thank you! Might be useful for others. I'll close this then.