Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777810 - [guru] dev-python/geopy-2.1.0 ModuleNotFoundError: No module named 'geographiclib'
Summary: [guru] dev-python/geopy-2.1.0 ModuleNotFoundError: No module named 'geographi...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alessandro Barbieri
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 636338
Blocks:
  Show dependency tree
 
Reported: 2021-03-22 23:51 UTC by Alessandro Barbieri
Modified: 2021-06-09 14:55 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-22 23:51:47 UTC
=================================================================================================================== ERRORS ===================================================================================================================
___________________________________________________________________________________________________ ERROR collecting test/test_distance.py ___________________________________________________________________________________________________
ImportError while importing test module '/var/tmp/portage/dev-python/geopy-2.1.0/work/geopy-2.1.0/test/test_distance.py'.                                                                                                                     
Hint: make sure your test modules/packages have valid Python names.                                                    
Traceback:    
/usr/lib/python3.7/site-packages/_pytest/python.py:578: in _importtestmodule                                           
    mod = import_path(self.fspath, mode=importmode)       
/usr/lib/python3.7/site-packages/_pytest/pathlib.py:531: in import_path          
    importlib.import_module(module_name)                                                                               
/usr/lib/python3.7/importlib/__init__.py:127: in import_module                                                                                                                                                                                
    return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                                                                               
<frozen importlib._bootstrap>:1006: in _gcd_import                                                                     
    ???                                                                                                                
<frozen importlib._bootstrap>:983: in _find_and_load
    ???                                                                                                                
<frozen importlib._bootstrap>:967: in _find_and_load_unlocked                                                          
    ???                                 
<frozen importlib._bootstrap>:677: in _load_unlocked
    ???                                                                                                                
/usr/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:170: in exec_module                                      
    exec(co, module.__dict__)                                                                                          
test/test_distance.py:5: in <module>                                                                                   
    from geopy.distance import (                                                                                       
geopy/distance.py:120: in <module>                                                                                     
    from geographiclib.geodesic import Geodesic                                                                        
E   ModuleNotFoundError: No module named 'geographiclib'
Comment 1 Alessandro Barbieri 2021-03-22 23:53:59 UTC
It's because the "new" ebuild in ::gentoo doesn't install python modules
This thing is driving me crazy
Comment 2 Ionen Wolkens gentoo-dev 2021-03-23 00:11:10 UTC
By the way, you can send bugs to GURU without passing by bug-wranglers, select the right product/component.
Comment 3 Nowa Ammerlaan gentoo-dev 2021-03-25 13:49:03 UTC
@Alessandro Barbieri have you made a Pull Request to ::gentoo for your guru ebuild? Because to me it looks like your ebuild is a lot better than the basic one currently in ::gentoo. And it would be a real shame if your effort on it went to waste.
Comment 4 Alessandro Barbieri 2021-03-25 15:22:57 UTC
I was waiting for an answer. Yesterday I've sent him an email asking to answer my questions. I'll make a PR soon
Comment 5 Alessandro Barbieri 2021-05-19 16:50:40 UTC
can I get this bug assigned to me?
Comment 6 Larry the Git Cow gentoo-dev 2021-05-25 23:07:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e80fe10fb8b8c952f991c15ccd7bd596724cc97d

commit e80fe10fb8b8c952f991c15ccd7bd596724cc97d
Author:     Anna Vyalkova <cyber+gentoo@sysrq.in>
AuthorDate: 2021-05-25 01:37:57 +0000
Commit:     Anna Vyalkova <cyber+gentoo@sysrq.in>
CommitDate: 2021-05-25 08:06:54 +0000

    dev-python/geopy: fix deps, rework tests, drop old
    
    Closes: https://bugs.gentoo.org/777810
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>

 dev-python/geopy/Manifest           |  1 -
 dev-python/geopy/geopy-2.0.0.ebuild | 55 ---------------------------------
 dev-python/geopy/geopy-2.1.0.ebuild | 61 ++++++++++++++++++++++++-------------
 3 files changed, 39 insertions(+), 78 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2021-06-09 14:55:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cabbb8725c4b27230244c5405b7c2e2e4bcffef

commit 3cabbb8725c4b27230244c5405b7c2e2e4bcffef
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2021-03-25 18:14:40 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-06-09 14:55:39 +0000

    sci-geosciences/GeographicLib: various improvements
    
    python bindings
    examples
    documentation
    
    Closes: https://bugs.gentoo.org/636338
    Closes: https://bugs.gentoo.org/777810
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20118
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../GeographicLib/GeographicLib-1.51-r1.ebuild     | 111 +++++++++++++++++++++
 sci-geosciences/GeographicLib/metadata.xml         |  12 +++
 2 files changed, 123 insertions(+)