Hi,
I encountered some issues building Hello Drone Flight Mission and I share the way I fixed it.
I’m under Ubuntu 20.04, Python 3.8.10.
First, pip3 install pycryptodomex installed 3.6.1.
When I ran ./build.sh -p hello-pc -t all -j
, I’ve got this error :
Cryptodome.PublicKey.ECC.UnsupportedEccFeature: Unsupported ECC curve (OID: 1.3.132.0.35)
So I forced installed pip3 install pycryptodomex==3.14.1 → It fixed the first error.
Thus I got this new error :
File "/home/cllebi/airsdk/build/dragon_buildext_sign/sign.py", line 368, in <module>
main()
File "/home/cllebi/airsdk/build/dragon_buildext_sign/sign.py", line 364, in main
sign_archive(options.archive, options.name, filenames, provider, hash_func)
File "/home/cllebi/airsdk/build/dragon_buildext_sign/sign.py", line 307, in sign_archive
add_signature_file(archive, name, signature_contents)
File "/home/cllebi/airsdk/build/dragon_buildext_sign/sign.py", line 282, in add_signature_file
tarfd.add(tmpfd.name, name)
File "/usr/lib/python3.8/tarfile.py", line 1971, in add
self.addfile(tarinfo, f)
File "/usr/lib/python3.8/tarfile.py", line 1993, in addfile
buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
File "/usr/lib/python3.8/tarfile.py", line 824, in tobuf
return self.create_ustar_header(info, encoding, errors)
File "/usr/lib/python3.8/tarfile.py", line 843, in create_ustar_header
return self._create_header(info, USTAR_FORMAT, encoding, errors)
File "/usr/lib/python3.8/tarfile.py", line 938, in _create_header
itn(info.get("uid", 0), 8, format),
File "/usr/lib/python3.8/tarfile.py", line 217, in itn
raise ValueError("overflow in number field")
ValueError: overflow in number field
[E] Command failed (returncode=1)
That I fixed thanks to tarfile failure with long user ID · Issue #1013 · kivy/python-for-android · GitHub → line 279 of dragon_buildext_sign/sign.py
Now I can build the Hello Drone Flight mission for simulated drone.
However, for real drone, ./build.sh -p hello-classic -t all -j
seems to don’t use key.pem that I copyied to products/hello/classic/key.pem, and I get this warning during building :
**[W] No signature key configured**
. Is it normal ?
Best,
Clément