Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859163 - sci-libs/nlopt-2.7.1[python]: can't import module (builds, but doesn't run)
Summary: sci-libs/nlopt-2.7.1[python]: can't import module (builds, but doesn't run)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-18 19:53 UTC by Scott Alfter
Modified: 2022-07-18 20:49 UTC (History)
1 user (show)

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


Attachments
equery files nlopt (file_859163.txt,1.13 KB, text/plain)
2022-07-18 19:54 UTC, Scott Alfter
Details
emerge --info (file_859163.txt,7.73 KB, text/plain)
2022-07-18 19:54 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2022-07-18 19:53:30 UTC
Attempts by programs to use nlopt cause Python to bomb out with a ModuleNotFoundError, even though it is (AFAICT) successfully installed.  I first noticed it when trying to run CadQuery (out of the science overlay), but just trying to import nlopt from an interactive shell produces the same error.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 nlopt
2. echo import nlopt | python -

Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'nlopt'


Expected Results:  
should exit back to the shell
Comment 1 Scott Alfter 2022-07-18 19:54:09 UTC
Created attachment 792200 [details]
equery files nlopt
Comment 2 Scott Alfter 2022-07-18 19:54:47 UTC
Created attachment 792203 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 20:00:50 UTC
Heh, now I see it. it's installing to lib64 instead of lib.
Comment 4 Larry the Git Cow gentoo-dev 2022-07-18 20:07:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61b86bf09b542f6cbbf044876c4a2571b97530c7

commit 61b86bf09b542f6cbbf044876c4a2571b97530c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-18 20:07:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-18 20:07:47 +0000

    sci-libs/nlopt: fix installed Python module location
    
    Closes: https://bugs.gentoo.org/859163
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/nlopt/nlopt-2.7.1-r1.ebuild | 111 +++++++++++++++++++++++++++++++++++
 1 file changed, 111 insertions(+)
Comment 5 Scott Alfter 2022-07-18 20:49:46 UTC
That was fast...it now works.  Thanks!  :)