TimWhiting / dartpy

An experiment in embedding Python in Dart via dart ffi and the Python c-api
68 stars 10 forks source link

iOS Compatability ProcessException #12

Open dlewis2017 opened 1 month ago

dlewis2017 commented 1 month ago

I'm wondering if this library is compatible with iOS. Trying to run on an iPad application and getting the following error: Exception has occurred. ProcessException (ProcessException: Starting new processes is not supported on iOS Command: python3.10-config --ldflags --embed)

flutter doctor -v
[✓] Flutter (Channel stable, 3.16.8, on macOS 14.3.1 23D60 darwin-arm64, locale en-US)
    • Flutter version 3.16.8 on channel stable at ...Source/SDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 67457e669f (7 weeks ago), 2024-01-16 16:22:29 -0800
    • Engine revision 6e2ea58a5c
    • Dart version 3.2.5
    • DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/synchronmac/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: /usr/bin/java
    • Java version Java(TM) SE Runtime Environment (build 19.0.2+7-44)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C65
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] VS Code (version 1.84.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • iPhone 13 Pro (mobile) • 00008110-00183589AAD8801E • ios            • iOS 17.3.1 21D61
    • iPad (mobile)  • 00008103-000D597A01C8001E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)        • macos                     • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 122.0.6261.94

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
TimWhiting commented 1 month ago

No clue. I don't have iOS devices. Other people have tried, and maybe been successful. However, you would need to include the dynamic library and set the location manually, as well as copy any python libraries to the appropriate place.