Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188287 - dev-python/PyQt4-4.3 installs to a wrong directory
Summary: dev-python/PyQt4-4.3 installs to a wrong directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 188387 188476 189272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-10 00:31 UTC by René 'Necoro' Neumann
Modified: 2007-08-17 20:28 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
changed ebuild for PyQt4-4.3 (PyQt4-4.3.ebuild,1.65 KB, text/plain)
2007-08-10 00:48 UTC, René 'Necoro' Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2007-08-10 00:31:29 UTC
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"
Comment 1 René 'Necoro' Neumann 2007-08-10 00:48:10 UTC
Created attachment 127407 [details]
changed ebuild for PyQt4-4.3

I changed the current ebuild to install it in the right directory.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 10:15:09 UTC
Please, attach a unified diff, whole lot easier to review the changes.
Comment 3 Franz Trischberger 2007-08-10 10:43:13 UTC
(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;))
Comment 4 Darren Dale 2007-08-10 13:20:03 UTC
The ebuild I submitted in bug 187586 installed PyQt4 into the correct directory. 
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2007-08-10 13:49:09 UTC
sorry, missed it in merging.  should be fixed now.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 19:14:22 UTC
*** Bug 188387 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-11 15:05:56 UTC
*** Bug 188476 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-08-17 20:28:29 UTC
*** Bug 189272 has been marked as a duplicate of this bug. ***