Mark Einhorn
09/05/2024, 1:07 PMJitendra Gundaniya
09/05/2024, 1:20 PMMark Einhorn
09/05/2024, 1:23 PMDmitry Sorokin
09/05/2024, 1:45 PMpyproject.toml
.
We’d greatly appreciate it if you could spend 15-20 minutes with us for an interview where we can discuss your experience deploying Kedro projects. Your insights would be incredibly valuable in shaping our next priorities for the Kedro deployment milestone.Mark Einhorn
09/05/2024, 1:56 PMGabriele Cacchioni
10/14/2024, 2:11 PMtry unpinning the dependency in plugins pyproject.toml
do you mean building the plugin locally with Poetry and then using it? Would you recommend just publishing with a different repo name?Gabriele Cacchioni
10/14/2024, 3:07 PMpyproject.toml
and changed the package name
2. rebuilt poetry lock with --no-update
3. built and published the package
4. successfully rebuilt my Kedro project with the following dependencies (I have the mlflow plugin and build failed using a cached PyYAML-5.4.1)
kedro
kedro-viz
kedro-mlflow
gab-kedro-sagemaker # <------ here put your the changed packaged name
snowflake-sqlalchemy
PyYAML >= 6
I will tell you if it worksMark Einhorn
10/14/2024, 3:13 PMDmitry Sorokin
10/14/2024, 4:20 PMsettings.py
file inside of src/your_project_name/
folder
and change from
from kedro.config import OmegaConfigLoader
to
from kedro.config import ConfigLoader
Gabriele Cacchioni
10/15/2024, 6:15 PM❯ kedro sagemaker init -h
[...] REDACTED OLD LOG
[10/16/24 12:42:50] WARNING Failed to load kedro_sagemaker.cli utils.py:366
commands from
EntryPoint(name='sagemaker',
value='kedro_sagemaker.cli:commands',
group='kedro.project_commands'). Full
exception: cannot import name
'AbstractDataSet' from 'kedro.io'
(/Users/gabriele/opt/anaconda3/envs/ke
dro-environment-2/lib/python3.10/site-
packages/kedro/io/__init__.py)
Gabriele Cacchioni
10/16/2024, 10:42 AMEntryPoint(name='sagemaker', value='kedro_sagemaker.cli:commands', group='kedro.project_commands')
The stack is:
• main()
(__main__.py
, line 47, in the generated kedro project)
• run = _find_run_command(package_name)
(__main__.py
, line 42)
• plugins = load_entry_points("project")
(__main__.py
, line 18)
• loaded_entry_point = _safe_load_entry_point(entry_point)
(kedro.framework.cli.utils.py line 391)
The subsequent call to entry_point.load()
fails for the sagemaker
entry point.
Any suggestions?Gabriele Cacchioni
10/16/2024, 10:44 AMfrom kedro.io import AbstractDataset
from kedro.io import AbstractDataSet
Traceback (most recent call last):
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-46e9178f7ea0>", line 1, in <module>
from kedro.io import AbstractDataSet
ImportError: cannot import name 'AbstractDataSet' from 'kedro.io' (/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro/io/__init__.py)
Gabriele Cacchioni
10/16/2024, 10:58 AMimport _frozen_importlib as _bootstrap
_bootstrap._gcd_import('kedro_sagemaker.cli', None, 0)
[10/16/24 12:57:59] INFO Using 'conf/logging.yml' as logging __init__.py:270
configuration. You can change this
by setting the KEDRO_LOGGING_CONFIG
environment variable accordingly.
Traceback (most recent call last):
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-e53a65254232>", line 1, in <module>
_bootstrap._gcd_import('kedro_sagemaker.cli', None, 0)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro_sagemaker/cli.py", line 12, in <module>
from kedro_sagemaker.cli_functions import (
File "/Users/gabriele/Applications/PyCharm <http://Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py|Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py>", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro_sagemaker/cli_functions.py", line 12, in <module>
from kedro_sagemaker.generator import KedroSageMakerGenerator
File "/Users/gabriele/Applications/PyCharm <http://Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py|Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py>", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro_sagemaker/generator.py", line 42, in <module>
from kedro_sagemaker.datasets import SageMakerModelDataset
File "/Users/gabriele/Applications/PyCharm <http://Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py|Professional.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py>", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro_sagemaker/datasets.py", line 12, in <module>
from <http://kedro.io|kedro.io> import AbstractDataSet, DataSetError
ImportError: cannot import name 'AbstractDataSet' from '<http://kedro.io|kedro.io>' (/Users/gabriele/opt/anaconda3/envs/kedro-environment-2/lib/python3.10/site-packages/kedro/io/__init__.py)
Gabriele Cacchioni
10/16/2024, 11:16 AM## Breaking changes to the API
## Upcoming deprecations for Kedro 0.19.0
* Renamed abstract dataset classes, in accordance with the [Kedro lexicon](<https://github.com/kedro-org/kedro/wiki/Kedro-documentation-style-guide#kedro-lexicon>). Dataset classes ending with "DataSet" are deprecated and will be removed in 0.19.0. Note that all of the below classes are also importable from `<http://kedro.io|kedro.io>`; only the module where they are defined is listed as the location.
Gabriele Cacchioni
10/16/2024, 11:16 AMMark Einhorn
10/16/2024, 11:25 AMGabriele Cacchioni
10/16/2024, 11:27 AMDmitry Sorokin
10/16/2024, 11:52 AMMark Einhorn
10/16/2024, 11:55 AMGabriele Cacchioni
10/16/2024, 1:11 PM============================== 73 failed, 109 passed, 9 xfailed, 8 xpassed, 79 warnings in 616.57s (0:10:16) ==============================
Gabriele Cacchioni
10/16/2024, 1:17 PMDmitry Sorokin
10/16/2024, 1:27 PMMark Einhorn
10/23/2024, 12:27 PMGabriele Cacchioni
10/25/2024, 7:12 AM