Nice bug (?), stumbled upon this.
pi@raspberrypi:~ $ source /home/pi/code/parrot-groundsdk/products/olympe/linux/env/shell
(olympe-python3) pi@raspberrypi:~ $ mkdir test
(olympe-python3) pi@raspberrypi:~ $ cd test
(olympe-python3) pi@raspberrypi:~ $ python
Python 3.9.5 (default, Jun 20 2022, 17:45:45)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import olympe
>>>
All fine.
But now it comes:
(olympe-python3) pi@raspberrypi:~/test $
(olympe-python3) pi@raspberrypi:~/test $ touch parrot.py
(olympe-python3) pi@raspberrypi:~/test $ python
Python 3.9.5 (default, Jun 20 2022, 17:45:45)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import olympe
ModuleLoader unhandled exception
Traceback (most recent call last):
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/module_loader.py", line 74, in add_package_root
self.enums[root] = ArsdkEnums.get(root)
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/enums.py", line 438, in get
ret = ArsdkEnums(root)
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/enums.py", line 448, in __init__
self._proto = ArsdkProto.get(root)
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/proto.py", line 201, in get
ret = ArsdkProto(root)
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/proto.py", line 257, in __init__
self.parse_protos()
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/proto.py", line 542, in parse_protos
_, feature = self.parse_proto(
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/proto.py", line 633, in parse_proto
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/tmp/tmps2knu8de/arsdk/microhard_pb2.py", line 17, in <module>
ModuleNotFoundError: No module named 'parrot.protobuf'; 'parrot' is not a package
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/__init__.py", line 32, in <module>
from .controller import Drone, SkyController
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/controller.py", line 32, in <module>
from .arsdkng.cmd_itf import Connect, Disconnect, Connected, Disconnected # noqa
File "/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/arsdkng/cmd_itf.py", line 42, in <module>
from olympe.enums import drone_manager as drone_manager_enums
ImportError: cannot import name 'drone_manager' from 'olympe.enums' (/home/pi/code/parrot-groundsdk/out/olympe-linux/staging/usr/lib/python/site-packages/olympe/enums/__init__.py)
>>>