Game Deployment Problem

I’m having problems with compiling my game with the FreezeTool.py . Don’t say to use packp3d and pdeploy because they have trouble mounting and reading multi files. Anyways i’m having problems with running the frozen python module. The file is a .pyd but the only part is that it never packed the panda3d modules like core and direct.

Here is the code for the script that runs the frozen python module:

from Game import __init__
import main

Here is the error that I get when I run the script:

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import main
  File "main", line 1, in <module>
  File "dw.DWbase.Start", line 8, in <module>
ImportError: No module named core

Here is the code for main.py (This is inside the frozen python module):

import dw.DWbase.Start

This is what I imported (This is in dw.DWbase.Start):

from panda3d.core import loadPrcFile

Any help would be appreciated :slight_smile:

It’s an issue in Python with importing extension modules form frozen packages. To work around it, either pass -x panda3d to the pfreeze command-line to exclude the panda3d package and load it externally, or—if you use a 1.10 development build of panda—pass -L to the pfreeze command-line to link in the panda3d extension modules.