Infinite recursion when packaging a Mitsuba dependency with pyinstaller
#1548
Replies: 1 comment
-
I've moved this into the discussions tab, it seemed more appropriate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
pyinstaller
can be used to package a Python script with all its dependencies into a single executable.When using it on a python script that depends on Mitsuba (i.e.,
pyinstaller script.py -p . --collect-all mitsuba
), it traverses all Mitsuba subpackages and runs into an infinite recursion viamitsuba
,mitsuba.mitsuba_stubs
,mitsuba.mitsuba_stubs.mitsuba_stubs
,mitsuba.mitsuba_stubs.mitsuba_stubs.mitsuba_stubs
, ...A workaround is to enumerate the relevant subpackages of Mitsuba by hand:
I do not think that there's anything to actually fix but I wanted to share this workaround in case anyone else runs into this problem.
Beta Was this translation helpful? Give feedback.
All reactions