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

Issue with import nannyml on Kaggle #190

Closed
koo-ec opened this issue Feb 1, 2023 · 2 comments
Closed

Issue with import nannyml on Kaggle #190

koo-ec opened this issue Feb 1, 2023 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested stale triage Needs to be assessed

Comments

@koo-ec
Copy link

koo-ec commented Feb 1, 2023

Describe the bug
I have tried to reimplement one of NannyML examples in Kaggle. and When I used the import command I got the following error.

import nannyml as nml
from IPython.display import display

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & scripts
If applicable, add screenshots or code snippets to help explain your problem.
image

Additional context

TypeError Traceback (most recent call last)
/tmp/ipykernel_28/3486783819.py in
----> 1 import nannyml as nml
2 from IPython.display import display

/opt/conda/lib/python3.7/site-packages/nannyml/init.py in
49 from .drift import AlertCountRanker, CorrelationRanker, DataReconstructionDriftCalculator, UnivariateDriftCalculator
50 from .exceptions import ChunkerException, InvalidArgumentsException, MissingMetadataException
---> 51 from .io import DatabaseWriter, PickleFileWriter, RawFilesWriter
52 from .performance_calculation import PerformanceCalculator
53 from .performance_estimation import CBPE, DLE

/opt/conda/lib/python3.7/site-packages/nannyml/io/init.py in
4
5 from .base import Reader, Writer, WriterFactory
----> 6 from .db import DatabaseWriter
7 from .file_reader import FileReader
8 from .file_writer import FileWriter

/opt/conda/lib/python3.7/site-packages/nannyml/io/db/init.py in
3 # License: Apache Software License 2.0
4
----> 5 from .database_writer import DatabaseWriter

/opt/conda/lib/python3.7/site-packages/nannyml/io/db/database_writer.py in
1 from typing import Any, Dict, Optional
2
----> 3 from sqlmodel import Session, SQLModel, create_engine, select
4
5 from nannyml._typing import Result

/opt/conda/lib/python3.7/site-packages/sqlmodel/init.py in
135
136 # Export SQLModel specifics (equivalent to Pydantic)
--> 137 from .main import SQLModel as SQLModel
138 from .main import Field as Field
139 from .main import Relationship as Relationship

/opt/conda/lib/python3.7/site-packages/sqlmodel/main.py in
24 )
25
---> 26 from pydantic import BaseConfig, BaseModel
27 from pydantic.errors import ConfigError, DictError
28 from pydantic.fields import SHAPE_SINGLETON

/opt/conda/lib/python3.7/site-packages/pydantic/init.cpython-37m-x86_64-linux-gnu.so in init pydantic.init()

/opt/conda/lib/python3.7/site-packages/pydantic/dataclasses.cpython-37m-x86_64-linux-gnu.so in init pydantic.dataclasses()

/opt/conda/lib/python3.7/site-packages/pydantic/main.cpython-37m-x86_64-linux-gnu.so in init pydantic.main()

TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

@koo-ec koo-ec added bug Something isn't working triage Needs to be assessed labels Feb 1, 2023
@nnansters
Copy link
Contributor

Hey @koo-ec ,

there seems to have been some kind of breaking update in Pydantic recently, I found this referring to it: explosion/spaCy#12034.

Could you check which version of Pydantic you have installed on that failing environment?

@nnansters nnansters added the question Further information is requested label Feb 6, 2023
@stale
Copy link

stale bot commented Apr 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 7, 2023
@stale stale bot closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested stale triage Needs to be assessed
Projects
None yet
Development

No branches or pull requests

2 participants