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

NameError: name 'audio_classifier' is not defined #5817

Open
Manoah1401 opened this issue Jan 12, 2025 · 0 comments
Open

NameError: name 'audio_classifier' is not defined #5817

Manoah1401 opened this issue Jan 12, 2025 · 0 comments
Assignees
Labels
type:build/install For Build and Installation issues

Comments

@Manoah1401
Copy link

OS Platform and Distribution

Windows 11

Compiler version

No response

Programming Language and version

Python 3.11

Installed using virtualenv? pip? Conda?(if python)

No response

MediaPipe version

0.10.9

Bazel version

No response

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

A bug happened!

Complete Logs

Unable to import mediapipe
import mediapipe as mp

print("mediapipe version:", mp.__version__)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[23], line 1
----> 1 import mediapipe as mp
      3 print("mediapipe version:", mp.__version__)

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\mediapipe\__init__.py:17
     15 from mediapipe.python import *
     16 import mediapipe.python.solutions as solutions 
---> 17 import mediapipe.tasks.python as tasks
     20 del framework
     21 del gpu

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\mediapipe\tasks\python\__init__.py:17
      1 # Copyright 2022 The MediaPipe Authors.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     15 """MediaPipe Tasks API."""
---> 17 from . import audio
     18 from . import components
     19 from . import core

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\mediapipe\tasks\python\audio\__init__.py:21
     18 import mediapipe.tasks.python.audio.audio_classifier
     19 import mediapipe.tasks.python.audio.audio_embedder
---> 21 AudioClassifier = audio_classifier.AudioClassifier
     22 AudioClassifierOptions = audio_classifier.AudioClassifierOptions
     23 AudioClassifierResult = audio_classifier.AudioClassifierResult

NameError: name 'audio_classifier' is not defined
@Manoah1401 Manoah1401 added the type:build/install For Build and Installation issues label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants