Giter Club home page Giter Club logo

Comments (6)

thombashi avatar thombashi commented on May 30, 2024

@selimt
Thank you for your report.

The problem was fixed in the latest version (0.14.0).
Please upgrade tcconfig (pip install tcconfig --upgrade) and re-execute the commands.

from tcconfig.

selimt avatar selimt commented on May 30, 2024

Thank you!

from tcconfig.

selimt avatar selimt commented on May 30, 2024

Hmm, I am still seeing the problem with 0.14.0:

root@1d0040e72239:/opt/shaper# tcset --version
tcset 0.14.0
root@1d0040e72239:/opt/shaper# tcset --device eth0 --rate 10M --direction outgoing --change
Traceback (most recent call last):
  File "/usr/local/bin/tcset", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/tcconfig/tcset.py", line 407, in main
    return_code = tc.set_tc()
  File "/usr/local/lib/python3.6/site-packages/tcconfig/traffic_control.py", line 352, in set_tc
    return self.__shaper.set_shaping()
  File "/usr/local/lib/python3.6/site-packages/tcconfig/shaper/htb.py", line 211, in set_shaping
    self._set_netem()
  File "/usr/local/lib/python3.6/site-packages/tcconfig/shaper/_interface.py", line 91, in _set_netem
    "handle {:s}".format(handle),
ValueError: Unknown format code 's' for object of type 'int'

from tcconfig.

thombashi avatar thombashi commented on May 30, 2024

@selimt
Sorry, I have misunderstood the problem.
Now, I believe the problem fixed in tsconfig 0.14.1.
Could you try this version?

from tcconfig.

dastergon avatar dastergon commented on May 30, 2024

I can confirm that it works with the latest tcconfig version

from tcconfig.

thombashi avatar thombashi commented on May 30, 2024

@dastergon
Thank you for confirmation.

@selimt
I'll close the issue for now.
Feel free to reopen.

from tcconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.