Problems with pynrfjprog in docker container ubuntu

I have a problem with pynrfjprog in my docker container. The code works like a charm in windows and linux but when I execute it through my docker container in ubuntu I get this error:

/usr/local/lib/python3.10/dist-packages/pynrfjprog/__init__.py:24: in set_worker_executable
    lib_path.chmod(expected | mode)
/usr/lib/python3.10/pathlib.py:1191: in chmod
    self._accessor.chmod(self, mode, follow_symlinks=follow_symlinks)
E   PermissionError: [Errno 1] Operation not permitted: '/usr/local/lib/python3.10/dist-packages/pynrfjprog/lib_x64/jlinkarm_nrf_worker.exe'

Why is it trying to run the exefile?! Im running ubuntu in my container and ubuntu aswell on my machine. Ive tried different versions of pynrfjprog without success. All dependencies are installed correctly and the file jlinkarm_nrf_worker_linux is in that folder with the exe file but I cant get it to choose it. Ive tried the same thing on a ubuntu vmware and the same error.

Please help, Im going semi crazy

Parents Reply Children
No Data
Related