chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
748 stars 127 forks source link

Tensorflow TypeError only in android #1178

Closed 298068845 closed 2 weeks ago

298068845 commented 2 weeks ago

Chaquopy version

10.0.1

Relevant parts of your build.gradle file

python 3.8.7

In Android Studio 4.1.3 I want to read image with this code:

tf.compat.v1.disable_eager_execution() gt_connets = tf.io.read_file(filename)

app will throw error: TypeError: list indices must be integers or slices, not str

I can use this code in pc to read image without error,every one tell me the "filename" type is String

mhsmith commented 2 weeks ago

See https://github.com/chaquo/chaquopy/issues/1069#issuecomment-1882655659, and in future please search the existing issues before creating new ones.