You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 via mitsuba, 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:
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.
The text was updated successfully, but these errors were encountered: