Closed guemues closed 2 years ago
@guemues thanks for the detailed report! You are right, Kedro 0.18 version has some breaking changes compared to 0.17 -- and we are in the process of updating our integration to match. For now, 0.17 should work fine.
@guemues we've just released a 0.10.0 version which supports current kedro version. I'm closing this issue for now, but don't hesitate to reach out if you encounter any problems.
Describe the bug
When initializing kedro-neptune with kedro version >=0.18.0 it throws an error.
ImportError: cannot import name 'get_current_session' from 'kedro.framework.session' (/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/kedro/framework/session/__init__.py)
Could be resolved with https://github.com/neptune-ai/kedro-neptune/pull/33
Reproduction
kedro neptune init
Expected behavior
Should be initialized as version dependencies for kedro-neptune is only mentioning kedro>=0.17.0
Traceback
Traceback (most recent call last): File "/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/kedro/framework/cli/utils.py", line 335, in load_entry_points entry_point_commands.append(entry_point.load()) File "/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/pkg_resources/init.py", line 2450, in load return self.resolve() File "/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/pkg_resources/init.py", line 2456, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/kedro_neptune/init.py", line 49, in
from kedro_neptune.config import get_neptune_config
File "/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/kedro_neptune/config.py", line 20, in
from kedro.framework.session import KedroSession, get_current_session
ImportError: cannot import name 'get_current_session' from 'kedro.framework.session' (/Users/guemues/.env/ltvsim-3.10/lib/python3.10/site-packages/kedro/framework/session/init.py)
Environment
The operating system you're using: apple silicon macbook The output of
python --version
: Python 3.10.3