Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ndebrabander opened this issue Aug 14, 2023 · 4 comments
Closed
Labels

Comments

@ndebrabander
Copy link

Versions

  • Python : 3.10.10
  • MacOS version : 13.5
  • XCode Version : 14.3.1
  • Cython version : 0.29.33

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

@ndebrabander ndebrabander changed the title Xcode build failes with ModuleNotFoundError: No module named 'encodings' Xcode build fails with ModuleNotFoundError: No module named 'encodings' Aug 14, 2023
@Siamaster
Copy link

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

@ndebrabander
Copy link
Author

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.

@misl6 misl6 added the support label Oct 12, 2023
@github-actions
Copy link

👋 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
Copy link
Author

This is a bug, not a support request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants