dwgoon / jpegio

A python package for accessing the internal variables of JPEG file format such as DCT coefficients and quantization tables
Apache License 2.0
73 stars 18 forks source link

Android studio3.5 import error #17

Closed hjlogzw closed 3 years ago

hjlogzw commented 3 years ago

When I import the package, I encountered one error like this "from .componentinfo import ComponentInfo", ModuleNotFoundError: No module named 'jpegio.componentinfo'. I have used the command "python setup.py bdist_wheel " for making a wheel for my architecture--armv8l. What should I do to use the jpegio tool in android terminal? E/AndroidRuntime: FATAL EXCEPTION: Thread-6 Process: com.YX_app, PID: 28022 com.chaquo.python.PyException: ModuleNotFoundError: No module named 'jpegio.componentinfo' at <python>.java.chaquopy.import_override(import.pxi:20) at <python>.java.chaquopy.import_override(import.pxi:60) at <python>.jpegio.<module>(__init__.py:6) at <python>.java.chaquopy.import_override(import.pxi:60) at <python>.py_uerd_embed.<module>(py_uerd_embed.py:5) at <python>.java.chaquopy.import_override(import.pxi:60) at <python>.embed_main.<module>(embed_main.py:4)

dwgoon commented 3 years ago

Could you please show some additional information about your build environment? (e.g., installation command, Python version, etc.)

mhsmith commented 3 years ago

Sorry, you can't simply use bdist_wheel to build a wheel for Chaquopy You'll need to use the Chaquopy build tool, as I said at https://github.com/chaquo/chaquopy/issues/553.