CityofSantaMonica / mds-provider

Python tools for working with MDS Provider data
https://github.com/openmobilityfoundation/mobility-data-specification
MIT License
18 stars 20 forks source link

import errors #34

Closed hunterowens closed 5 years ago

hunterowens commented 6 years ago

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 commented 6 years ago

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

thekaveman commented 6 years ago

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 commented 5 years ago

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

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