xpra icon
Bug tracker and wiki

Opened 4 weeks ago

Closed 4 weeks ago

#2846 closed defect (upstream)

cx_Freeze update broke packaging, again

Reported by: totaamwin32 Owned by: Antoine Martin
Priority: blocker Milestone: 4.1
Component: android Version: 3.0.x
Keywords: Cc:

Description

Pretty much every time, something breaks.
We can't just pin a version, because python version upgrades would then break..

ERROR: build failed, see win32/cx_freeze-install.log:
    self.run_command(cmd)
  File "C:/msys64/mingw64/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/dist.py", line 299, in run
    self.run_command('build_exe')
  File "C:/msys64/mingw64/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:/msys64/mingw64/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/dist.py", line 217, in run
    freezer.Freeze()
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 645, in Freeze
    self._WriteModules(fileName, self.finder)
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 536, in _WriteModules
    sourcePackageDir = os.path.dirname(module.file)
  File "C:/msys64/mingw64/lib/python3.8/ntpath.py", line 238, in dirname
    return split(p)[0]
  File "C:/msys64/mingw64/lib/python3.8/ntpath.py", line 200, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Change History (2)

comment:1 Changed 4 weeks ago by Antoine Martin

Status: newassigned

comment:2 Changed 4 weeks ago by totaamwin32

Resolution: upstream
Status: assignedclosed

Temporary fix until they release a fixed version:

curl https://github.com/marcelotduarte/cx_Freeze/commit/f1423d5acc4c375c3bbad767b1bd6f9eb7b8483c.patch | patch -p2 -d /mingw64/lib/python3.8/site-packages/cx_Freeze
Note: See TracTickets for help on using tickets.