djfun / audio-visualizer-python

a little GUI tool to render visualization videos of audio files
Other
242 stars 58 forks source link

No module named 'PyQt4' #58

Closed ilyasst closed 2 years ago

ilyasst commented 6 years ago

Hi,

I have followed all the steps and currently have a python3 virtual environment inside which I am trying to run main.py I keep getting this error

Traceback (most recent call last):
  File "main.py", line 2, in <module>
    from PyQt4 import QtCore, QtGui, uic
ImportError: No module named 'PyQt4'

Even if I have Py-Qt4 installed. I've tried several times and cannot solve it.

Could you please help me with this ?

Thanks, Ilyass

djfun commented 6 years ago

Hi, which OS/Version are you using? Also: you might want to try to use the feature-newgui branch (git checkout feature-newgui), which uses Qt5.

ilyasst commented 6 years ago

Hi,

I am using Ubuntu 16.04.3 LTS. I will try the feature-newgui branch and I'll report back to you !

Cheers

Heath3827 commented 6 years ago

It is a dependantcy error. Ensure you have libqt4 installed and when you launch Audio Visualiser you must type "python3 main.py" otherwise it won't work.

davideuler commented 6 years ago

Hi, you just need to use PyQt5 instead. Some codes need to be changed for API changes in PyQt5. I've created a pull request at: https://github.com/djfun/audio-visualizer-python/pull/60

Also, you can use this fork: https://github.com/ihopeit/audio-visualizer-python

ExperiBass commented 6 years ago

I have the same issue on MacOS. Running: MacOS High Sierra 10.13.3 EDIT: Tried the fork, threw this: Traceback (most recent call last): File "main.py", line 2, in <module> from PyQt5 import QtCore, QtGui, uic, QtWidgets ModuleNotFoundError: No module named 'PyQt5' How do I download PyQt5 on Mac?

ilyasst commented 6 years ago

Sorry I never reported back on this issue.

I did as @djfun suggested and installed PyQT5, I then started avp using the avp command after loading my virtual env, it workerd fine. On juil. 24 2018, at 2:16 pm, Gingka Akiyama notifications@github.com wrote:

I have the same issue on MacOS. Running: MacOS High Sierra 10.13.3

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/djfun/audio-visualizer-python/issues/58#issuecomment-407502786), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAbGMxi7jsxgNIzEmNQIs6fdtIgFD6Tmks5uJ2SMgaJpZM4QNk5z).