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

ModuleNotFoundError: No module named 'AudioLib' #1

Open
alex64a opened this issue Aug 12, 2020 · 3 comments · May be fixed by #8
Open

ModuleNotFoundError: No module named 'AudioLib' #1

alex64a opened this issue Aug 12, 2020 · 3 comments · May be fixed by #8

Comments

@alex64a
Copy link

alex64a commented Aug 12, 2020

Hello,

I'm new to Python, I am using ubuntu, and when I run the command: python3 AudioEffect.py the ModuleNotFoundError: No module named 'AudioLib' pops up, I think that the problem is in the init.py file as the program doesn't recognize AudioLib as a module, instead it sees it as a regular folder probably, I haven't changed anything in the code, I downloaded exactly from the github repository and I ran the main AudioEffect.py file, can you help me solve this problem, thank you in advance, best regards

Aleksa

@yoyoberenguer
Copy link

yoyoberenguer commented Mar 26, 2021

Hi, Can you provide a screenshot of your issue or type the code that trigger this issue ?
Kind Regards

@int96
Copy link

int96 commented May 28, 2023

Shot in the dark someone might answer heres my error message.


ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71

ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory

ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory

ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp

ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp

ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card

ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'

ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card

ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'

Traceback (most recent call last):

  File "/home/int96/Documents/PythonAudioEffects/tests/effects.py", line 10, in <module>

    from AudioLib import AudioEffect

ImportError: cannot import name 'AudioEffect' from 'AudioLib' (/home/int96/.local/lib/python3.10/site-packages/AudioLib/__init__.py)

welp back to searching

@yoyoberenguer
Copy link

Hi,
can you show the files present in the directory

/home/int96/.local/lib/python3.10/site-packages/AudioLib/

In this directory you should normally see the file AudioEffect.py
Double check the file name as Linux is case sensitive.

Can you also show what is in the file init.py from (/home/int96/.local/lib/python3.10/site-packages/AudioLib/init.py)
Thanks

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