xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 4 months ago

Closed 4 months ago

Last modified 3 months ago

#2994 closed defect (upstream)

cx_Freeze 6.5 is broken: No module named 'xpra__main__'

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: 4.1
Component: packaging Version: 3.0.x
Keywords: Cc:

Description

C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/common.py:124: UserWarning: camelCase values is obsolete and will be removed in the next major version -> use the new name 'target_name'
  warnings.warn(
Traceback (most recent call last):
  File "./setup.py", line 2346, in <module>
    main()
  File "./setup.py", line 2342, in main
    setup(**setup_options)
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/dist.py", line 392, in setup
    distutils.core.setup(**attrs)
  File "C:/msys64/mingw64/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "C:/msys64/mingw64/lib/python3.8/distutils/dist.py", line 966, in run_commands
    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 347, 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 260, in run
    freezer.Freeze()
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 754, in Freeze
    self._FreezeExecutable(executable)
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 227, in _FreezeExecutable
    finder.IncludeFile(exe.main_script, exe.main_module_name)
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/finder.py", line 618, in IncludeFile
    module = self._load_module(name, path, deferred_imports)
  File "C:/msys64/mingw64/lib/python3.8/site-packages/cx_Freeze/finder.py", line 371, in _load_module
    raise ImportError(f"No module named {name!r}", name=name)
ImportError: No module named 'xpra__main__'

Change History (4)

comment:1 Changed 4 months ago by Antoine Martin

Priority: criticalminor
Status: newassigned

Downgrading to 6.4 fixes things.

comment:2 Changed 4 months ago by Antoine Martin

6.4 has other problems: #2997, 6.1 seems to work OK.

comment:3 Changed 4 months ago by Antoine Martin

Resolution: upstream
Status: assignedclosed

Let's close this for now.

I'll remove the package block once a new version comes out with those bugs fixed..

comment:4 Changed 3 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2994

Note: See TracTickets for help on using tickets.