I’m having trouble importing flopy when it is installed (see example below from trying to run the tests). I tried deleting any install directories and eggs in the site-packages folder, as well as deleting the build folder, and then reinstalling, but via setup.py install and using pip with the link to the develop branch.
When I have flopy uninstalled and manually point to the flopy folder (in the github repo), everything works fine. So somehow I’m not installing correctly. Any ideas what the problem might be? I get the same results with 2.7 and 3.4.
Do you guys run the tests with flopy installed, or do you have some other way of pointing pytest to the working flopy folder?
____ ERROR collecting py.test/t003test.py ____
py.test/t003_test.py:1: in
import flopy
//anaconda/envs/python3/lib/python3.4/site-packages/flopy/init.py:34: in
from . import export
E ImportError: cannot import name 'export'
____ ERROR collecting py.test/t004test.py ____
py.test/t004_test.py:3: in
import flopy
//anaconda/envs/python3/lib/python3.4/site-packages/flopy/init.py:28: in
from . import modflow
E ImportError: cannot import name 'modflow'
I’m having trouble importing flopy when it is installed (see example below from trying to run the tests). I tried deleting any install directories and eggs in the site-packages folder, as well as deleting the build folder, and then reinstalling, but via setup.py install and using pip with the link to the develop branch.
When I have flopy uninstalled and manually point to the flopy folder (in the github repo), everything works fine. So somehow I’m not installing correctly. Any ideas what the problem might be? I get the same results with 2.7 and 3.4.
Do you guys run the tests with flopy installed, or do you have some other way of pointing pytest to the working flopy folder?
____ ERROR collecting py.test/t003test.py ____ py.test/t003_test.py:1: in
import flopy
//anaconda/envs/python3/lib/python3.4/site-packages/flopy/init.py:34: in
from . import export
E ImportError: cannot import name 'export'
____ ERROR collecting py.test/t004test.py ____
py.test/t004_test.py:3: in
import flopy
//anaconda/envs/python3/lib/python3.4/site-packages/flopy/init.py:28: in
from . import modflow
E ImportError: cannot import name 'modflow'