Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies missing, vague readme guide #3

Open
Juppie902 opened this issue Jan 13, 2025 · 0 comments
Open

Dependencies missing, vague readme guide #3

Juppie902 opened this issue Jan 13, 2025 · 0 comments

Comments

@Juppie902
Copy link

Juppie902 commented Jan 13, 2025

First issue: The guide is rather vague with information, it says to check a Log file but doesn't specify which and where its located (is it xa-cabin log file ? is it flywithlua log file ? is it main xplane generated log file?) per python standards I cannot stand idle and watch this, as it is said str("" explicit is better than implicit "")

Second issue: when running generate_announcements.py for the first time, from a standard windows installation of python3 latest version, there are several missing dependecies that should either be written to a requirements file.
Alas, after installing several plugins one by one as the errors popped up

Full dependencies installed example:

Microsoft Windows [Version 10.0.19045.5247]
(c) Microsoft Corporation. All rights reserved.

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>python3

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>py
Python 3.13.1 (tags/v3.13.1:0671451, Dec  3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> z
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    z
NameError: name 'z' is not defined
>>> ^Z

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>py generate_announcements.py
Traceback (most recent call last):
  File "D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin\generate_announcements.py", line 2, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>py generate_announcements.py
Traceback (most recent call last):
  File "D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin\generate_announcements.py", line 2, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>pip3 install openai
Collecting openai
  Downloading openai-1.59.7-py3-none-any.whl.metadata (27 kB)
Collecting anyio<5,>=3.5.0 (from openai)
  Downloading anyio-4.8.0-py3-none-any.whl.metadata (4.6 kB)
Collecting distro<2,>=1.7.0 (from openai)
  Downloading distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Collecting httpx<1,>=0.23.0 (from openai)
  Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting jiter<1,>=0.4.0 (from openai)
  Downloading jiter-0.8.2-cp313-cp313-win_amd64.whl.metadata (5.3 kB)
Collecting pydantic<3,>=1.9.0 (from openai)
  Downloading pydantic-2.10.5-py3-none-any.whl.metadata (30 kB)
Collecting sniffio (from openai)
  Downloading sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Collecting tqdm>4 (from openai)
  Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
Collecting typing-extensions<5,>=4.11 (from openai)
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting idna>=2.8 (from anyio<5,>=3.5.0->openai)
  Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: certifi in c:\users\vladi\appdata\local\programs\python\python313\lib\site-packages (from httpx<1,>=0.23.0->openai) (2024.12.14)
Collecting httpcore==1.* (from httpx<1,>=0.23.0->openai)
  Downloading httpcore-1.0.7-py3-none-any.whl.metadata (21 kB)
Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx<1,>=0.23.0->openai)
  Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting annotated-types>=0.6.0 (from pydantic<3,>=1.9.0->openai)
  Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.27.2 (from pydantic<3,>=1.9.0->openai)
  Downloading pydantic_core-2.27.2-cp313-cp313-win_amd64.whl.metadata (6.7 kB)
Collecting colorama (from tqdm>4->openai)
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Downloading openai-1.59.7-py3-none-any.whl (454 kB)
Downloading anyio-4.8.0-py3-none-any.whl (96 kB)
Downloading distro-1.9.0-py3-none-any.whl (20 kB)
Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
Downloading httpcore-1.0.7-py3-none-any.whl (78 kB)
Downloading jiter-0.8.2-cp313-cp313-win_amd64.whl (203 kB)
Downloading pydantic-2.10.5-py3-none-any.whl (431 kB)
Downloading pydantic_core-2.27.2-cp313-cp313-win_amd64.whl (2.0 MB)
   ---------------------------------------- 2.0/2.0 MB 2.3 MB/s eta 0:00:00
Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Downloading h11-0.14.0-py3-none-any.whl (58 kB)
Installing collected packages: typing-extensions, sniffio, jiter, idna, h11, distro, colorama, annotated-types, tqdm, pydantic-core, httpcore, anyio, pydantic, httpx, openai
Successfully installed annotated-types-0.7.0 anyio-4.8.0 colorama-0.4.6 distro-1.9.0 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 idna-3.10 jiter-0.8.2 openai-1.59.7 pydantic-2.10.5 pydantic-core-2.27.2 sniffio-1.3.1 tqdm-4.67.1 typing-extensions-4.12.2

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>py generate_announcements.py
Traceback (most recent call last):
  File "D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin\generate_announcements.py", line 5, in <module>
    from pydub import AudioSegment
ModuleNotFoundError: No module named 'pydub'

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>pip3 install pydub
Collecting pydub
  Downloading pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)
Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Installing collected packages: pydub
Successfully installed pydub-0.25.1

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>py generate_announcements.py
Traceback (most recent call last):
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\utils.py", line 14, in <module>
    import audioop
ModuleNotFoundError: No module named 'audioop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin\generate_announcements.py", line 5, in <module>
    from pydub import AudioSegment
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\__init__.py", line 1, in <module>
    from .audio_segment import AudioSegment
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\audio_segment.py", line 11, in <module>
    from .utils import mediainfo_json, fsdecode
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\utils.py", line 16, in <module>
    import pyaudioop as audioop
ModuleNotFoundError: No module named 'pyaudioop'

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>pip3 install pyaudioop
ERROR: Could not find a version that satisfies the requirement pyaudioop (from versions: none)
ERROR: No matching distribution found for pyaudioop

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>pip3 install pyaudio
Collecting pyaudio
  Downloading PyAudio-0.2.14-cp313-cp313-win_amd64.whl.metadata (2.7 kB)
Downloading PyAudio-0.2.14-cp313-cp313-win_amd64.whl (173 kB)
Installing collected packages: pyaudio
Successfully installed pyaudio-0.2.14

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>pip3 install audioop-lts
Collecting audioop-lts
  Downloading audioop_lts-0.2.1-cp313-abi3-win_amd64.whl.metadata (1.7 kB)
Downloading audioop_lts-0.2.1-cp313-abi3-win_amd64.whl (30 kB)
Installing collected packages: audioop-lts
Successfully installed audioop-lts-0.2.1

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>

(example:

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>generate_announcements.py
Traceback (most recent call last):
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\utils.py", line 14, in <module>
    import audioop
ModuleNotFoundError: No module named 'audioop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin\generate_announcements.py", line 5, in <module>
    from pydub import AudioSegment
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\__init__.py", line 1, in <module>
    from .audio_segment import AudioSegment
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\audio_segment.py", line 11, in <module>
    from .utils import mediainfo_json, fsdecode
  File "C:\Users\Vladi\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydub\utils.py", line 16, in <module>
    import pyaudioop as audioop
ModuleNotFoundError: No module named 'pyaudioop'

D:\X-Plane 11\Resources\plugins\FlyWithLua\Scripts\xa-cabin-fwl-2024.10\xa-cabin>

I encountered the missing library "pyaudioop". Google search lead me to this jiaaro/pydub#815 (comment) , the excerpt is that installing package audioop-lts solves the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant