Hi All,
I have a bit of a weird one here so hopefully someone can provide insight.
I'm working on a python application using a 3d visualization library called
open3d. I also have a separate app using the customtkinter library that
displays a map of an area where there are certain structures of which I
have 3d models.
How the app works when I run locally is that the customtkinter app opens
up, displays the map, and the user picks a structure to view. Then the map
app closes and starts up the visualizer application which displays the
model. Here's that code to start up the open3d app:
```
def open_model_viewer(self):
if self.CURRENT_STRUCTURE is None:
pass
else:
runDashboardWindow(self.CURRENT_STRUCTURE, self)
def runDashboardWindow(structname, mapwindow):
# close map application window
mapwindow.destroy()
# run dashboard application window
gui.Application.instance.initialize()
w = AppWindow(1536, 986, structename)
# Run the event loop. This will not return until the last window is
closed.
try:
gui.Application.instance.run()
if w.reopen_window:
runMapWindow()
except Exception as e:
print(e)
```
The user can click a button in the visualizer that terminates that app and
restarts the map app whenever they want.
Here's the method for that:
```
def _on_return_to_map(self):
self.reopen_map = True
self._on_menu_quit()
def _on_menu_quit(self):
# clear temp data folders
self.clear_temp_data()
gui.Application.instance.quit()
```
Everything works as expected when I run locally. The logic for the
visualizer app is in a module which I import into the file for the map app.
I am able to successfully convert both these apps to an executable
SEPARATELY. The visualizer works fine if I use it as the entry point for
pyinstaller. When I use the map as the entry point for the executable the
map app works fine but when I select a model the map app just closes
without opening the visualizer at all. There's also no apparent error
messages or any way to tell what went wrong.
So my questions are as follows:
1) Does anyone know why this might be happening and how I can convert to
.exe so that the visualizer successfully opens and I can freely switch
between map and visualizer?
2) Is there any way for me to see any error messages related to such an
issue? Calling pyinstaller with the --windowed flag and running the .exe
from CLI doesn't help.
Happy to provide more info if needed.
Thanks,
Alex
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/ee7bb6a6-2b42-4f1b-867e-29dcd512095cn%40googlegroups.com.