Skip to content

The Problem with Xcode Swift IOS #21

@norsnap

Description

@norsnap

Hi
first of all thanks for your grate work.
I am trying to embed python into swift IOS but when ever i try to call the function Py_Initialize() i get the error

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

Current thread 0x00000001083c83c0 (most recent call first):
(lldb) 

Version using: Python-3.5-iOS-support.b3 and tried 3.4
I imported libz.tbd and libsqlite.tbd and what should i set PYTHONHOME from environment variables?
Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions