EdgeLock SE05x Plug & Trust Middleware Compile Problem

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

EdgeLock SE05x Plug & Trust Middleware Compile Problem

648 Views
jsl123
Contributor I

Hello All

Some background from the environment:

Trying to build/install/run SE05x MW 3.3.0 on RPi CM4 running "bullseye" (kernel 5.10.63-v7l+)

After *a lot* of problems with the cmake setup I managed to build and install the "C part" (demos and tools).

But then came the python part (pycli sss). All dependencies (like python3 and pip3) are in place as per documentation. But when it comes to "setup.py develop", the thing breaks like this:

---------------------------------------------

pi@raspberrypi(armv7l):~/projects/se_mw/simw-top-3.3.0/pycli/src $ sudo python3 setup.py develop
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'console'
warnings.warn(msg)
running develop
running egg_info
creating ssscli.egg-info
writing ssscli.egg-info/PKG-INFO
writing dependency_links to ssscli.egg-info/dependency_links.txt
writing entry points to ssscli.egg-info/entry_points.txt
writing requirements to ssscli.egg-info/requires.txt
writing top-level names to ssscli.egg-info/top_level.txt
writing manifest file 'ssscli.egg-info/SOURCES.txt'
file ssscli.py (for module ssscli) not found
reading manifest file 'ssscli.egg-info/SOURCES.txt'
writing manifest file 'ssscli.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python3.9/dist-packages/ssscli.egg-link (link to .)
Adding ssscli 3.3.0 to easy-install.pth file
Installing ssscli script to /usr/local/bin

Installed /home/pi/projects/se_mw/simw-top-3.3.0/pycli/src
Processing dependencies for ssscli==3.3.0
Searching for cryptography
Reading https://pypi.org/simple/cryptography/
Downloading https://files.pythonhosted.org/packages/60/06/d9109aba62c0b42466195e5b9b30dded26621a675b73998218070d...
Best match: cryptography 36.0.0
Processing cryptography-36.0.0.tar.gz
Writing /tmp/easy_install-1a8mb49c/cryptography-36.0.0/setup.cfg
Running cryptography-36.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1a8mb49c/cryptography-36.0.0/egg-dist-tmp-vj0xt2bx

=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:

Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 152, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-1a8mb49c/cryptography-36.0.0/setup.py", line 14, in <module>
sys.path.append(os.path.abspath(os.path.dirname(__file__) + os.sep + "sss"))
ModuleNotFoundError: No module named 'setuptools_rust'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/projects/se_mw/simw-top-3.3.0/pycli/src/setup.py", line 41, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 151, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 769, in process_distribution
distros = WorkingSet([]).resolve(
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 766, in resolve
dist = best[req.key] = env.best_match(
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1051, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1063, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 694, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 720, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1187, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1171, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 164, in save_modules
saved_exc.resume()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 139, in resume
raise exc.with_traceback(self._tb)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 152, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 43, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-1a8mb49c/cryptography-36.0.0/setup.py", line 14, in <module>
sys.path.append(os.path.abspath(os.path.dirname(__file__) + os.sep + "sss"))
ModuleNotFoundError: No module named 'setuptools_rust'

---------------------------------------------

The mentioned URL is only about general installation and upgrading of pip. There is nothing to this special problem. And pip upgrading is also (weakly) blocked by debian as one is supposed to this via packages...

Does anyone here uses this above mentioned combination and has got sss build and installed?

0 Kudos
1 Reply

617 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @jsl123 ,

 

The UM for MW has some details regarding install ssscli tool, Have you followed these steps?

Kan_Li_0-1638789084199.png

 

Please kindly refer to "simw-top/doc/pycli/doc/pre-steps.html#raspberry-pi" for more details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos