Tensor Flow in axcf 2152
Hello every one
I hope you are doing fine.
I need help to install TensorFlow or tflite in axc f 2152 even i tried to intall numpy but giving me same.
i tried few thing but it giving me the same error, can anybody will help me to figure it out.
below the error I am getting.
root@axcf2152:/opt/plcnext/# python3 -m pip install tflite
Collecting tflite
Using cached tflite-2.4.0-py2.py3-none-any.whl (87 kB)
Collecting numpy
Using cached numpy-1.23.3.tar.gz (10.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting flatbuffers
Using cached flatbuffers-2.0.7-py2.py3-none-any.whl (26 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [257 lines of output]
Running from numpy source directory.
setup.py:86: DeprecationWarning:
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/var/volatile/tmp/pip-build-env-6mx_ukw8/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/distutils/command/build.py", line 62, in run
old_build.run(self)
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "/var/volatile/tmp/pip-install-5okmhkk6/numpy_3248415cda5747b78b1916954b2001ee/numpy/core/setup.py", line 758, in get_mathlib_info
raise RuntimeError(
RuntimeError: Broken toolchain: cannot link a simple C program.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
Thanks in Advanced
Looking forward
Comments
From the output:
RuntimeError: Broken toolchain: cannot link a simple C program.
The PLC does not have the build tools required to compile python packages on the target. You will need to build the required packages elsewhere, or install pre-built packages from a remote repository. Or, you can use an OCI container that includes the required build tools.
thanks for the response.
1)can you guide me for that how I can do that.
2)Actually, I only used my trained NL in axc f 2152 using keras with command model.predict which is not possible up till right now.
thanks in Advance
looking forward
I'm not a big python user, so I've never tried cross-compiling packages.
You might be able to use something like crossenv.
Alternatively you might be able to use pre-built packages from somewhere like https://www.piwheels.org/simple (with the
index-url
option in pip), but since those packages are not specifically built for the AXC F 2152, they may or may not work as expected.thanks i will try and let you know.
from piwheel.org/simple you mean i can find the module for pre build package. correct?
I was looking for it, didn´t find, may be i was finding not right way. if you know the specific name of the module which may contain model.predict or tensor flow either one is find by me
thanks for the response
hello
the crossenv didn´t work for me, give me same error.
i am concerned is this due to less memory or something like that.
I would also like to know I have SD card from Sony will it compactible with the PLC.?