kivy / kivy-ios

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

Xcode build fails with ModuleNotFoundError: No module named 'encodings' #842

Closed ndebrabander closed 8 months ago

ndebrabander commented 10 months ago

Versions

Describe the bug Build in Xcode fails with error message: ModuleNotFoundError: No module named 'encodings'

Python path configuration:

PYTHONHOME = (not set)

PYTHONPATH = (not set)

program name = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/bin/python'

isolated = 0

environment = 1

user site = 1

import site = 1

sys._base_executable = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/bin/python'

sys.base_prefix = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3'

sys.base_exec_prefix = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3'

sys.platlibdir = 'lib'

sys.executable = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/bin/python'

sys.prefix = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3'

sys.exec_prefix = '/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3'

sys.path = [

'/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/lib/python310.zip',

'/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/lib/python3.10',

'/Users/nielsdebrabander/Documents/Xcode_build/dist/hostpython3/lib/python3.10/lib-dynload',

]

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

Python runtime state: core initialized

ModuleNotFoundError: No module named 'encodings'

Current thread 0x00000001e6e4a080 (most recent call first):

Command PhaseScriptExecution failed with a nonzero exit code
Siamaster commented 8 months ago

Did you manage to solve this? I'm having this problem now.

ndebrabander commented 8 months ago

No, only dead ends as far as I can see. I stopped trying and decided to ditch Kivy al together and continue in Swift. Sad really because I do think Kivy is a great framework for app building.

github-actions[bot] commented 8 months ago

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using kivy-ios, maybe you could be interested to installation and requirements.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

ndebrabander commented 8 months ago

This is a bug, not a support request