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

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 "", line 14, in <module>
    setup(name="loc", options=opts)
  File "E:\projects\python\THELIF~1\lib\site-packages\setuptools\", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Python37\Lib\distutils\", line 148, in setup
  File "C:\Python37\Lib\distutils\", line 966, in run_commands
  File "C:\Python37\Lib\distutils\", line 985, in run_command
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\", line 390, in run
    self.build_runtimes(platform, True)
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\", line 550, in build_runtimes
    wheelpaths = self.download_wheels(platform)
  File "E:\projects\python\THELIF~1\lib\site-packages\direct\dist\", 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\

from setuptools import *

opts = {
"include_patterns":["sounds.pak", "*.dll"],
"plugins":["pandagl", "p3openal_audio"]

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



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

it has been fixed.