kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
777 stars 240 forks source link

error in building kivy #693

Closed nkehoe closed 2 years ago

nkehoe commented 2 years ago

Versions

Describe the bug When I try to run '''python toolchain.py build kivy''' I get this error: Error extracting the archive /Users/noelkehoe/kivy-ios/.cache/sdl2_mixer-SDL2_mixer-2.0.4.tar.gz

To Reproduce '''python toolchain.py build kivy''' after downloading the developer kivy file from git hub

Expected behavior build kivy

Logs

(venv) noelkehoe@Noels-MacBook-Pro kivy-ios % python toolchain.py build kivy
[INFO    ] Building with 8 processes, where supported
[INFO    ] Want to build ['kivy']
[INFO    ] Using the bundled version for recipe 'kivy'
[INFO    ] Loaded recipe kivy (depends of ['sdl2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'ios', 'pyobjus', 'python', 'host_setuptools3'], optional are [])
[INFO    ] Using the bundled version for recipe 'sdl2'
[INFO    ] Loaded recipe sdl2 (depends of [], optional are [])
[INFO    ] Using the bundled version for recipe 'sdl2_image'
[INFO    ] Loaded recipe sdl2_image (depends of ['sdl2'], optional are [])
[INFO    ] Using the bundled version for recipe 'sdl2_mixer'
[INFO    ] Loaded recipe sdl2_mixer (depends of ['sdl2'], optional are [])
[INFO    ] Using the bundled version for recipe 'sdl2_ttf'
[INFO    ] Loaded recipe sdl2_ttf (depends of ['sdl2', 'freetype'], optional are [])
[INFO    ] Using the bundled version for recipe 'ios'
[INFO    ] Loaded recipe ios (depends of ['python'], optional are [])
[INFO    ] Using the bundled version for recipe 'pyobjus'
[INFO    ] Loaded recipe pyobjus (depends of ['python'], optional are [])
[INFO    ] Using the bundled version for recipe 'python'
[INFO    ] Loaded recipe python (depends of ['python3'], optional are [])
[INFO    ] Using the bundled version for recipe 'host_setuptools3'
[INFO    ] Loaded recipe host_setuptools3 (depends of ['openssl', 'hostpython3', 'python3'], optional are [])
[INFO    ] Using the bundled version for recipe 'freetype'
[INFO    ] Loaded recipe freetype (depends of [], optional are [])
[INFO    ] Using the bundled version for recipe 'python3'
[INFO    ] Loaded recipe python3 (depends of ['hostpython3', 'libffi', 'openssl'], optional are [])
[INFO    ] Using the bundled version for recipe 'openssl'
[INFO    ] Loaded recipe openssl (depends of [], optional are [])
[INFO    ] Using the bundled version for recipe 'hostpython3'
[INFO    ] Loaded recipe hostpython3 (depends of ['hostopenssl'], optional are [])
[INFO    ] Using the bundled version for recipe 'libffi'
[INFO    ] Loaded recipe libffi (depends of [], optional are [])
[INFO    ] Using the bundled version for recipe 'hostopenssl'
[INFO    ] Loaded recipe hostopenssl (depends of [], optional are [])
[INFO    ] Build order is ['freetype', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3', 'host_setuptools3', 'python', 'ios', 'pyobjus', 'kivy']
[INFO    ] Using the bundled version for recipe 'freetype'
[INFO    ] Using the bundled version for recipe 'hostopenssl'
[INFO    ] Using the bundled version for recipe 'libffi'
[INFO    ] Using the bundled version for recipe 'openssl'
[INFO    ] Using the bundled version for recipe 'sdl2'
[INFO    ] Using the bundled version for recipe 'hostpython3'
[INFO    ] Using the bundled version for recipe 'sdl2_image'
[INFO    ] Using the bundled version for recipe 'sdl2_mixer'
[INFO    ] Using the bundled version for recipe 'sdl2_ttf'
[INFO    ] Using the bundled version for recipe 'python3'
[INFO    ] Using the bundled version for recipe 'host_setuptools3'
[INFO    ] Using the bundled version for recipe 'python'
[INFO    ] Using the bundled version for recipe 'ios'
[INFO    ] Using the bundled version for recipe 'pyobjus'
[INFO    ] Using the bundled version for recipe 'kivy'
[INFO    ] Recipe order is ['freetype', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3', 'host_setuptools3', 'ios', 'pyobjus', 'kivy']
[INFO    ] Include dir added: {arch.arch}/freetype
[INFO    ] Include dir added: {arch.arch}/ffi
[INFO    ] Include dir added: {arch.arch}/openssl
[INFO    ] Include dir added: common/sdl2
[INFO    ] Global: hostpython located at /Users/noelkehoe/kivy-ios/dist/hostpython3/bin/python
[INFO    ] Global: hostpgen located at /Users/noelkehoe/kivy-ios/dist/hostpython3/bin/pgen
[INFO    ] Include dir added: common/sdl2_image
[INFO    ] Include dir added: common/sdl2_mixer
[INFO    ] Include dir added: common/sdl2_ttf
[DEBUG   ] Cached result: Download freetype. Ignoring
[DEBUG   ] Cached result: Extract freetype. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites freetype. Ignoring
[DEBUG   ] Cached result: Build_all freetype. Ignoring
[DEBUG   ] Cached result: Download hostopenssl. Ignoring
[DEBUG   ] Cached result: Extract hostopenssl. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites hostopenssl. Ignoring
[DEBUG   ] Cached result: Build_all hostopenssl. Ignoring
[DEBUG   ] Cached result: Download libffi. Ignoring
[DEBUG   ] Cached result: Extract libffi. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites libffi. Ignoring
[DEBUG   ] Cached result: Build_all libffi. Ignoring
[DEBUG   ] Cached result: Download openssl. Ignoring
[DEBUG   ] Cached result: Extract openssl. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites openssl. Ignoring
[DEBUG   ] Cached result: Build_all openssl. Ignoring
[DEBUG   ] Cached result: Download sdl2. Ignoring
[DEBUG   ] Cached result: Extract sdl2. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites sdl2. Ignoring
[DEBUG   ] Cached result: Build_all sdl2. Ignoring
[DEBUG   ] Cached result: Download hostpython3. Ignoring
[DEBUG   ] Cached result: Extract hostpython3. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites hostpython3. Ignoring
[DEBUG   ] Cached result: Build_all hostpython3. Ignoring
[DEBUG   ] Cached result: Download sdl2_image. Ignoring
[DEBUG   ] Cached result: Extract sdl2_image. Ignoring
[DEBUG   ] Cached result: Install_hostpython_prerequisites sdl2_image. Ignoring
[DEBUG   ] Cached result: Build_all sdl2_image. Ignoring
[DEBUG   ] Cached result: Download sdl2_mixer. Ignoring
[INFO    ] Extract sdl2_mixer
[INFO    ] Extract sdl2_mixer for x86_64
[WARNING ] Error extracting the archive /Users/noelkehoe/kivy-ios/.cache/sdl2_mixer-SDL2_mixer-2.0.4.tar.gz
[WARNING ] This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.
[WARNING ] /Users/noelkehoe/kivy-ios/.cache/sdl2_mixer-SDL2_mixer-2.0.4.tar.gz
Traceback (most recent call last):
  File "toolchain.py", line 3, in <module>
    main()
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 1555, in main
    ToolchainCL()
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 1299, in __init__
    getattr(self, args.command)()
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 1368, in build
    build_recipes(args.recipe, ctx)
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 1142, in build_recipes
    recipe.execute()
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 702, in execute
    self.extract()
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 74, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 747, in extract
    self.extract_arch(arch.arch)
  File "/Users/noelkehoe/kivy-ios/kivy_ios/toolchain.py", line 751, in extract_arch
    dest_dir = join(build_dir, self.archive_root)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/posixpath.py", line 90, in join
    genericpath._check_arg_types('join', a, *p)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/genericpath.py", line 152, in _check_arg_types
    raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

Screenshots

Additional context Add any other context about the problem here.