srplab / starcore_for_flutter

middleware for flutter calling other script languages
140 stars 29 forks source link

Import numpy #24

Open junaidawan opened 3 years ago

junaidawan commented 3 years ago

Hello,

Can you please provide an example on how to import numpy with starflut , i can see numpy packages in starcore_for_android repository but nothing is working

Hesam-Taleghani commented 3 years ago

yes please i have the same issue.

Hesam-Taleghani commented 3 years ago

How to import sth like numpy to the package to use in python code? something like adding the pip installed fikes to site-packages of your python.zip causing this Error for me:

D/starcore(14083): import encodings failed.... D/starcore(14083): ModuleNotFoundError("No module named 'encodings'",) D/starcore(14083): /data/data/com.example.flutter_ocr_test/files:/data/data/com.example.flutter_ocr_test/files/python3.6.zip:/data/data/com.example.flutter_ocr_test/files/libs64:/data/data/com.googlecode.pythonforandroid/files:/sdcard/com.googlecode.pythonforandroid/extras/python:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6:/data/data/com.googlecode.pythonforandroid/files/python/lib/python26.zip D/starcore(14083): Py_Initialize: unable to load the file system codec

@srplab

kivan11 commented 2 years ago

@Hesam-Taleghani @junaidawan @srplab plz did anyone found a solution for importing packages like numpy???