Closed venugovh closed 2 years ago
I don't know if this helps, but I am using pyinstaller --onefile main_script_name.py
call for generating the spec file and once I edit the spec file, I am building the .exe
again using the --onefile
option.
I have no experience with PyInstaller whatsoever but from the message it looks like it can't find the example data bundled with navis
. I have no clue how you would properly configure this but there are a bunch of different .swc
, .gml
and .obj
and .csv
files.
That said: using navis
for just this one purpose is massive overkill. I just added a Skeleton.get_graph
method with 7f88a41ebbbef1f40e0e63a93f6e9e62039c05b2. Try it out but this should just do what you need:
>>> s = sk.skeletonize.by_wavefront(sk.example_mesh())
>>> s.get_graph()
<networkx.classes.digraph.DiGraph at 0x10db88eb0>
Oh! That is really helpful! I will try this out. Thank you! I will close this issue once I am able to generate a working exe.
:)
Hi @schlegelp !
I am building an application that requires the conversion of the skeleton to a
networkx
object. For that, I am using thenavis
module as per #19.Now when I use pyinstaller, I get the error:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\...\\AppData\\Local\\Temp\\_MEI46802\\navis\\data\\gml'
I am using python 3.7 on Windows 10. I don't know if this is a pyinstaller issue, but any input would be really helpful.
I generated the spec file and added the
binaries
,hiddenimports
andhookspath
:The hooks file contains:
I tried adding an additional line to the hooks file to append navis data file; but it still caused the
FileNotFoundError
# datas += collect_data_files('navis')
Could you please help me out here? Thanks a lot!