Getting traseback error when i want to get a distribution of my game

hi,
when i want to turn my game into an executable version, i get the following traseback:

running build_apps
Building platforms: win32
Gathering wheels for platform: win32
Traceback (most recent call last):
  File "setup.py", line 14, in <module>
    setup(name="loc", options=opts)
  File "E:\projects\python\THELIF~1\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Python37\Lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python37\Lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\commands.py", line 390, in run
    self.build_runtimes(platform, True)
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\commands.py", line 550, in build_runtimes
    wheelpaths = self.download_wheels(platform)
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\commands.py", line 409, in download_wheels
    from pip._internal import pep425tags, wheel
ImportError: cannot import name 'wheel' from 'pip._internal' (E:\projects\python\THELIF~1\lib\site-packages\pip\_internal\__init__.py)

setup.py:

from setuptools import *

opts = {
"build_apps":{
"gui_apps":{
"loc":"loc.py"
},
"platforms":["win32"],
"include_patterns":["sounds.pak", "*.dll"],
"plugins":["pandagl", "p3openal_audio"]
}
}

setup(name="loc", options=opts)

requirements.txt:

--extra-index-url https://archive.panda3d.org/
panda3d

pip version: 20.0.2
panda3d version: 1.10.5
wheel version: 0.34.2
I have windows 10 64 bit, with python 3.7 32 bit installed.
previously I didn’t have this problem and the game compiled fine.

This is a known issue, you should downgrade pip to <20:

python -m pip install -U 'pip<20'

EDIT: This has been fixed in Panda3D, please update your version of Panda3D instead if you are experiencing this issue.

1 Like

thanks.
it has been fixed.