Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 11, 2024

try:
    import aifc
    import audioop
except ModuleNotFoundError as e:
    raise ModuleNotFoundError("Please run: pip install audioop-lts standard-aifc") from e

https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-pep594

python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install git+https://github.com/Uberi/speech_recognition.git

        File "/private/var/folders/2n/pb5cf4g10kdfvw9yvsfxy4gr0000gn/T/pip-req-build-uiogiiny/speech_recognition/__init__.py", line 7, in <module>
          import aifc
      ModuleNotFoundError: No module named 'aifc'
 
× Getting requirements to build wheel did not run successfully.
│ exit code: 1

```
try:
    import aifc
    import audioop
except ModuleNotFoundError as e:
    raise ModuleNotFoundError("Please run: pip install audioop-lts standard-aifc") from e
```
https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-pep594
@cclauss
Copy link
Contributor Author

cclauss commented Dec 8, 2024

@ftnext Your review, please.

@ftnext
Copy link
Collaborator

ftnext commented Dec 9, 2024

It seems that there is no reason to merge this pull request as it has already been fixed in SpeechRecognition 3.12.0 (#781).

on my macOS

% python -V
Python 3.13.1
% python -m venv .venv --upgrade-deps
% source .venv/bin/activate
% python -m pip install SpeechRecognition==3.12.0
Successfully installed SpeechRecognition-3.12.0 audioop-lts-0.2.1 standard-aifc-3.13.0 standard-chunk-3.13.0 typing-extensions-4.12.2
% python
>>> import speech_recognition as sr
>>>

If you cannot install 3.12.0 in your environment, please create an issue.

@ftnext ftnext closed this Dec 9, 2024
@cclauss cclauss deleted the patch-2 branch February 7, 2025 17:21
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

Successfully merging this pull request may close these issues.

2 participants