Python freeze error in the main script

Asked By 0 points N/A Posted on -
qa-featured

Hi there,

I got this error while saving the player editor and Python library. Can anyone tell me what I did wrong with this ? Last time when I made the changes everything worked just fine and now with this I checked twice the data and still ? Any solution ?

Thank you !

Cx_Freeze: Python error in main script (traceback unavailable)

Error in sys.excepthook.

Exception: None Type object has no attribute ‘write’

Original Exception: DB content identifier does not match expected value of “Assets1” (Got Assets2)

SHARE
Answered By 0 points N/A #179521

Python freeze error in the main script

qa-featured

The main reason for this error can be the "executable"  that may be included in different directory. Follow the steps below to fix the problem.

  • Build a subdirectory.
  • Write the executable in that subdirectory.
  • Now run the executable in dist.
  • Remove the ( targetDir = "dist" ) from setup.py 
  • you can simly do ( cs_freez.executable ( voltron.py) )
  • You will also need to specify the packages = [ lxml]
  • now your script will work accordingly.

There is another way to the problem.

  • Add two packages in script.
  • The first is directive for package.
  • Second is package directive forces.
  • load all submodules in the package anyway.
  • Try to add both includes and packages ( as shown in the image) in your script. It will work for you.
packages-and-includes-for-script

Login/Register to Answer

Related Questions