Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymap3d version 2.7.2 from conda-forge has import issues #47

Closed
obbe79 opened this issue Nov 27, 2021 · 2 comments
Closed

pymap3d version 2.7.2 from conda-forge has import issues #47

obbe79 opened this issue Nov 27, 2021 · 2 comments

Comments

@obbe79
Copy link

obbe79 commented Nov 27, 2021

When importing:

import pymap3d as pm

and invoking:

pm.vincenty.vdist(lat1, lon1, lat2, lon2)

raises the exception:

AttributeError: module 'pymap3d' has no attribute 'vincenty'

In fact, the imported module will no longer import the vincenty module, breaking code that needed pymap3d.vincenty.vdist
image

This behavior was not present in previous installations of the package.

@scivision
Copy link
Member

The defaults imports were shortened in pymap3d 2.7.0 to help improve import speed, particularly on embedded systems. The README now reflects this. Thanks!

@nikoloide
Copy link

Hi, try
import pymap3d.vincenty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants