Как скомпилировать сложный проект python созданный на Poetry?

Как скомпилировать сложный проект python созданный на Poetry, сохранив при этом все зависимости? Уже пытался сделать с помощью Pyinstaller - не работает, выводит ошибку по типу:

Traceback (most recent call last):
  File "gui\__main__.py", line 8, in <module>
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
    File "gui\main_window.py", line 3, in <module>
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
    File "gui\main_tab\main_tab.py", line 7, in <module>
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
    File "gui\main_tab\PlotCanvas\plot_canvas.py", line 6, in <module>
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
    File "scienceplots\__init__.py", line 15, in <module>
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\C881~1\\AppData\\Local\\Temp\\_MEI1362\\scienceplots\\styles'
  [2608] Failed to execute script '__main__' due to an unhandled exception!

Ответы (1 шт):

Автор решения: Timofey

Нашёл на свой вопрос ответ на Github:

ytmusicapi has a locales folder that is not automatically included by PyInstaller - you need to manually include it

→ Ссылка