OCR installation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OCR installation

871 Views
Mohan51
Contributor II

Hi, I flashed linux image(downloaded from embedded linux software downloads) in imx8m nano board.but unable to install paddleocr and other ocrs(using pip3) in the board.getting dependency issues every time.

i had posted many times in the forums but unable to get a proper reply.please provide any reference if possible.

 

I am using python v3.11

 

For paddleocr i am getting "tomlib module not found error" i tried to install the package but unable to do it because of the dependency issues.

0 Kudos
Reply
3 Replies

833 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @Mohan51 

 

What BSP version are you using?

 

Best regards.

 

Salas.

0 Kudos
Reply

814 Views
Mohan51
Contributor II

hello @Alejandro_Salas , while installing paddleocr using (pip3 install paddleocr) i am getting this error.

I am using nxp imx93 board

OS information:

ID=fsl-imx-xwayland

NAME="NXP i.MX Release Distro"

VERSION="6.1-mickledore (mickledore)"

VERSION_ID=6.1-mickledore

VERSION_CODENAME="mickledore"

PRETTY_NAME="NXP i.MX Release Distro 6.1-mickledore (mickledore)"

 

Error:

Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 567, in <module>
File "<string>", line 519, in main
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 158, in setup
dist.parse_config_files()
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 631, in parse_config_files
pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 68, in apply_configuration
config = read_configuration(filepath, True, ignore_option_errors, dist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 104, in read_configuration
asdict = load_file(filepath) or {}
^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 33, in load_file
from ..compat.py310 import tomllib
File "/tmp/pip-build-env-j_nj6nmm/overlay/lib/python3.11/site-packages/setuptools/compat/py310.py", line 8, in <module>
import tomllib
ModuleNotFoundError: No module named 'tomllib'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

0 Kudos
Reply

52 Views
kenon
Contributor I

Not meaning to hi-jack this thread but I am also having the exact same issue trying to install multiple packages using Pip3.

This is on the latest BSP, v6.6.52 Scarthgap. Python version 3.12.6

kenon_0-1734432135090.png

 

Tags (3)
0 Kudos
Reply