Skip to content

SimpleSQLite >= 1.5.0 breaks tcconfig #177

Closed
@j04n-f

Description

@j04n-f

Describe the bug

SimpleSQLite version is not pinned (floating version):

SimpleSQLite>=1.1.1,<2

New versions of the package breaks tcconfig commands. Forcing SimpleSQLite v1.4.0 installation solves the problem.

Expected behavior

tcshow eth0 command should display the network constrains applied to eth0.

To Reproduce

Steps to reproduce the behavior:

  1. pip install tcconfig
  2. pip install SimpleSQLite==1.5.1
  3. tcshow eth0

Additional context

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.6/x64/bin/tcshow", line 5, in <module>
    from tcconfig.tcshow import main
  File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/tcconfig/tcshow.py", line 24, in <module>
    from .parser.shaping_rule import TcShapingRuleParser
  File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/tcconfig/parser/shaping_rule.py", line 21, in <module>
    from ._filter import TcFilterParser
  File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/tcconfig/parser/_filter.py", line 15, in <module>
    from ._model import Filter
  File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/tcconfig/parser/_model.py", line 6, in <module>
    class Filter(Model):
  File "/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/tcconfig/parser/_model.py", line 7, in Filter
    device = Text(attr_name=Tc.Param.DEVICE, not_null=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Column.__init__() got an unexpected keyword argument 'attr_name'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions