user@user-desktop:~/ultimateALPR-SDK/binaries/jetson/aarch64$ echo $PYTHONPATH
:/home/user/swig:/home/user/ultimateALPR-SDK:/home/user/ultimateALPR-SDK/python:/home/user/ultimateALPR-SDK/binaries/jetson/aarch64
user@user-desktop:~/ultimateALPR-SDK/binaries/jetson/aarch64$ python3 /home/user/ultimateALPR-SDK/samples/python/recognizer/recognizer.py --image /home/user/ultimateALPR-SDK/assets/images/lic_us_1280x720.jpg
Traceback (most recent call last):
File "/home/user/ultimateALPR-SDK/python/ultimateAlprSdk.py", line 16, in swig_import_helper
fp, pathname, description = imp.find_module('_ultimateAlprSdk', [dirname(__file__)])
File "/usr/lib/python3.6/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_ultimateAlprSdk'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/ultimateALPR-SDK/samples/python/recognizer/recognizer.py", line 25, in <module>
import ultimateAlprSdk
File "/home/user/ultimateALPR-SDK/python/ultimateAlprSdk.py", line 26, in <module>
_ultimateAlprSdk = swig_import_helper()
File "/home/user/ultimateALPR-SDK/python/ultimateAlprSdk.py", line 18, in swig_import_helper
import _ultimateAlprSdk
ImportError: libultimate_alpr-sdk.so: cannot open shared object file: No such file or directory
user@user-desktop:~/ultimateALPR-SDK/binaries/jetson/aarch64$ ls
benchmark libultimate_alpr-sdk.so prepare.sh recognizer symlinks.bat _ultimateAlprSdk.so
build libultimatePluginTensorRT.so python_setup.sh runtimeKey trt_optimizer
user@user-desktop:~/ultimateALPR-SDK/binaries/jetson/aarch64$
/Fredrik
Hum, you're missing multiple points, for
sure it'll not find the libs if you're not calling ldconfig or
setting LD_LIBRARY_PATH
Just run the next command as defined in
the wiki (from binaries/jetson/aarch64), do not change it:
PYTHONPATH=$PYTHONPATH:.:../../../python \
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \
python3 ../../../samples/python/recognizer/recognizer.py --image ../../../assets/images/lic_us_1280x720.jpg --assets ../../../assets
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/48b4b4d4-ea96-40d2-bec3-0c823725f36cn%40googlegroups.com.
Hum, you're missing multiple points, for sure it'll not find the libs if you're not calling ldconfig or setting LD_LIBRARY_PATH
Just run the next command as defined in the wiki (from binaries/jetson/aarch64), do not change it:
PYTHONPATH=$PYTHONPATH:.:../../../python \ LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ python3 ../../../samples/python/recognizer/recognizer.py --image ../../../assets/images/lic_us_1280x720.jpg --assets ../../../assets
Note: This is a single line commandTo view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/1d005935-48aa-e8bf-17cc-235a09318a1d%40doubango.org.