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

import errors #34

Closed
hunterowens opened this issue Oct 30, 2018 · 3 comments
Closed

import errors #34

hunterowens opened this issue Oct 30, 2018 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@hunterowens
Copy link
Collaborator

If I run

import mds
mds.providers` 

currently raises a AttributeError.

However,

from mds import providers works fine. I suspect this is some __init__.py fu that I need to fix.

@thekaveman
Copy link
Contributor

Hoping that #36 can at least rule out the possibility of some weird version mismatch or pip caching or something.

@thekaveman
Copy link
Contributor

I think since __init__.py doesn't import mds.providers, then providers doesn't exist as a name under mds.

But mds.providers exists as a name itself -- confusing.

Solution might be to import the rest of the package in mds/__init__.py?

import mds.api
import mds.db
import mds.fake
import mds.json
import mds.providers
import mds.schema

@thekaveman
Copy link
Contributor

@hunterowens this should all be fixed once #71 is merged via #40.

Check out this commit, which cleaned up all of the imports.

@thekaveman thekaveman added this to the MDS 0.3.0 milestone Apr 24, 2019
@thekaveman thekaveman added the bug Something isn't working label Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants