Pyinstaller with Panda3D and render pipline

Hello,
i have a large project built with python pyqt5 and panda3d and Renderpipeline.
and now I want to have a .exe file.
i successes with panda3d and pyqt5 but for the render pipeline, I don’t know how to add it.

and the render pipeline is actually a folder inside my project:
foe example:
my-project folder:
→ render-pipeline (folder)
—> other folders for scripts… etc.

here is my spec file:

# -*- mode: python ; coding: utf-8 -*-

block_cipher = None


a = Analysis(['C:\\Users\\userName\\Desktop\\my-project\\scripts\\main.py'],
             pathex=['C:\\Users\\userName\\Desktop\\my-project\\bin'],
             binaries=[],
             datas=[('C:\\Users\\userName\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\panda3d', './/panda3d'),
              ('C:\\Users\\userName\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\direct', './/panda3d'),
               ('C:\\Users\\userName\\Desktop\\my-project\\data', './/data')],
             hiddenimports=[],
             hookspath=[],
             runtime_hooks=[],
             excludes=['matplotlib'],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=True)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          [('v', None, 'OPTION')],
          exclude_binaries=True,
          name='my-project',
          debug=True,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          console=True)
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               upx_exclude=[],
               name='my-project')

Here is the following error that I get while running the exe file:

`    from rpcore.render_pipeline import RenderPipeline
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\user\Desktop\myproject\scripts\utils\RenderPipeline\rpcore\render_pipeline.py", line 40, in <module>
    from rplibs.yaml import load_yaml_file_flat
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rplibs.yaml'
[9048] Failed to execute script main
[9048] LOADER: OK.
[9048] LOADER: Manually flushing stdout and stderr
[9048] LOADER: Cleaning up Python interpreter.`

you can see the full issue here: stackoverflow

I’m quite certain you shouldn’t be adding the Panda3D/direct packages as “datas”.

Is there any reason you’re using pyinstaller rather than the packaging tools provided with Panda3D?