code2pdf icon indicating copy to clipboard operation
code2pdf copied to clipboard

No moudle named PyQt4

Open chenzuoli opened this issue 4 years ago • 2 comments

I am using macbook pro 13, bigsur 11.4, python3.7, I have installed code2pdf 1.0.0 version I got error no module named PyQt4 with command code2pdf -h, I got requirements with PyQt5, so why is this with PyQt4? (base) [chenzuoli@chenzuolis-MacBook /Users/chenzuoli/PycharmProjects]$code2pdf -h Traceback (most recent call last): File "/Users/chenzuoli/opt/anaconda3/bin/code2pdf", line 5, in <module> from Code2pdf.code2pdf import main File "/Users/chenzuoli/opt/anaconda3/lib/python3.7/site-packages/Code2pdf/code2pdf.py", line 2, in <module> from PyQt4.QtGui import QTextDocument, QPrinter, QApplication ModuleNotFoundError: No module named 'PyQt4'

chenzuoli avatar Jun 11 '21 00:06 chenzuoli

(base) [chenzuoli@chenzuolis-MacBook /Users/chenzuoli/PycharmProjects]$code2pdf -h Traceback (most recent call last): File "/Users/chenzuoli/opt/anaconda3/bin/code2pdf", line 5, in <module> from Code2pdf.code2pdf import main File "/Users/chenzuoli/opt/anaconda3/lib/python3.7/site-packages/Code2pdf/code2pdf.py", line 2, in <module> from PyQt4.QtGui import QTextDocument, QPrinter, QApplication ModuleNotFoundError: No module named 'PyQt4'

chenzuoli avatar Jun 11 '21 02:06 chenzuoli

(base) [chenzuoli@chenzuolis-MacBook /Users/chenzuoli/PycharmProjects]$code2pdf -h Traceback (most recent call last): File "/Users/chenzuoli/opt/anaconda3/bin/code2pdf", line 5, in <module> from Code2pdf.code2pdf import main File "/Users/chenzuoli/opt/anaconda3/lib/python3.7/site-packages/Code2pdf/code2pdf.py", line 2, in <module> from PyQt4.QtGui import QTextDocument, QPrinter, QApplication ModuleNotFoundError: No module named 'PyQt4'

chenzuoli avatar Jun 16 '21 14:06 chenzuoli