ebonite
ebonite copied to clipboard
not work on > python 3.7
if i import ebonite on python 3.8 i have this error:
My OS
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Python
Python 3.8.11 (default, Aug 3 2021, 15:09:35)
[GCC 7.5.0] :: Anaconda, Inc. on linux
ERROR
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
/tmp/ipykernel_15508/3202068034.py in <module>
----> 1 import ebonite
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/ebonite/__init__.py in <module>
1 from ebonite import config
----> 2 from ebonite.client import Ebonite, create_model
3 from ebonite.ext.ext_loader import ExtensionLoader, load_extensions
4 from ebonite.runtime.command_line import start_runtime
5 from ebonite.utils.ebdebug import EBONITE_DEBUG
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/ebonite/client/__init__.py in <module>
----> 1 from .base import Ebonite
2 from .helpers import create_model
3
4 __all__ = ['Ebonite', 'create_model']
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/ebonite/client/base.py in <module>
3 from typing import Union
4
----> 5 from pyjackson import read, write
6 from pyjackson.utils import resolve_subtype
7
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/pyjackson/__init__.py in <module>
----> 1 from . import builtin_types
2 from .helpers import deserialize, dump, dumps, load, loads, read, serialize, write
3
4 __all__ = ['builtin_types', 'deserialize', 'dump', 'dumps', 'load', 'loads', 'read', 'serialize', 'write']
5
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/pyjackson/builtin_types.py in <module>
3 import uuid
4
----> 5 from pyjackson.generics import StaticSerializer
6 from pyjackson.serialization import SerializationError
7
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/pyjackson/generics.py in <module>
5 from typing import Hashable, Type, Union
6
----> 7 from pyjackson.utils import flat_dict_repr, is_descriptor, turn_args_to_kwargs
8
9 SERIALIZER_MAPPING = dict()
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/pyjackson/utils.py in <module>
9 from pyjackson.errors import PyjacksonError
10
---> 11 from ._typing_utils import (get_collection_type, is_collection, is_generic, is_mapping, is_tuple, is_union,
12 resolve_inner_forward_refs)
13
~/anaconda3/envs/RL_Snake/lib/python3.8/site-packages/pyjackson/_typing_utils.py in <module>
29 is_tuple37 as is_tuple)
30 else:
---> 31 raise Exception('Pyjackson works only with python version <= 3.7 yet(')
32
33 __all__ = [
Exception: Pyjackson works only with python version <= 3.7 yet(
Try to upgrade pyjackson with pip install pyjackson -U
Try to upgrade pyjackson with
pip install pyjackson -U
I tried, but was getting this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ebonite 0.2.1 requires pyjackson==0.0.15, but you have pyjackson 0.0.28 which is incompatible.
Successfully installed pyjackson-0.0.28
Note: you may need to restart the kernel to use updated packages.