PyQt4 cannot be imported in Python: >>> import PyQt4 Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named PyQt4 This is because PyQt4 is installed one step "too deep" in the python2.4/site-packages. -> It is installed in site-packages/PyQt4/PyQt4. As the outer "PyQt4" misses an "__init__.py" it could not be even imported as "import PyQt4.PyQt4" (which would be wrong nevertheless, as each software expects it as "PyQt4" solely). Reproducible: Always Steps to Reproduce: 1. Install PyQt4-4.3 2. python -c "import PyQt4"
Created attachment 127407 [details] changed ebuild for PyQt4-4.3 I changed the current ebuild to install it in the right directory.
Please, attach a unified diff, whole lot easier to review the changes.
(In reply to comment #2) > Please, attach a unified diff, whole lot easier to review the changes. > The only thing Necoro changed was in line 4 in src_compile: from: local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages/PyQt4 \ to: local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages \ And now anything works fine (thx again;))
The ebuild I submitted in bug 187586 installed PyQt4 into the correct directory.
sorry, missed it in merging. should be fixed now.
*** Bug 188387 has been marked as a duplicate of this bug. ***
*** Bug 188476 has been marked as a duplicate of this bug. ***
*** Bug 189272 has been marked as a duplicate of this bug. ***