Giter VIP home page Giter VIP logo

Comments (3)

vpelletier avatar vpelletier commented on August 15, 2024

In the temporary "next" branch, I pushed a few weeks back several libusb features that I was not wrapping yet. One of which is libusb_init_context, exposed as new arguments to USBContext.__init__, especially use_usbdk which takes a boolean (false by default). libusb_init_context allows side-stepping the libusb_set_option variadic topic.

Could you try that branch and report whether it works, and how usable it looks to you ?

One caveat: as this is not released yet, I consider I am still allowed to change the newly introduced API. Basically, the argument name could change or it could have to be provided in another way. But I think I am happy enough with the current implementation.

And on another level: I am currently very busy on a personal level, so I have basically no time to work on the next release. Things should hopefully calm down in the next few months, freeing some time.

from python-libusb1.

wynwxst avatar wynwxst commented on August 15, 2024

In the temporary "next" branch, I pushed a few weeks back several libusb features that I was not wrapping yet. One of which is libusb_init_context, exposed as new arguments to USBContext.__init__, especially use_usbdk which takes a boolean (false by default). libusb_init_context allows side-stepping the libusb_set_option variadic topic.

Could you try that branch and report whether it works, and how usable it looks to you ?

One caveat: as this is not released yet, I consider I am still allowed to change the newly introduced API. Basically, the argument name could change or it could have to be provided in another way. But I think I am happy enough with the current implementation.

And on another level: I am currently very busy on a personal level, so I have basically no time to work on the nex

Sure, don't worry about being busy or anything else and focus on whatever you need to. It's also perfectly fine if it changes. I'll let you know how it goes after trying it.

from python-libusb1.

wynwxst avatar wynwxst commented on August 15, 2024

In the temporary "next" branch, I pushed a few weeks back several libusb features that I was not wrapping yet. One of which is libusb_init_context, exposed as new arguments to USBContext.__init__, especially use_usbdk which takes a boolean (false by default). libusb_init_context allows side-stepping the libusb_set_option variadic topic.

Could you try that branch and report whether it works, and how usable it looks to you ?

One caveat: as this is not released yet, I consider I am still allowed to change the newly introduced API. Basically, the argument name could change or it could have to be provided in another way. But I think I am happy enough with the current implementation.

And on another level: I am currently very busy on a personal level, so I have basically no time to work on the next release. Things should hopefully calm down in the next few months, freeing some time.

Apologies for the late reply:
It doesn't seem to work as now what happens is

libusb: error [windows_set_option] UsbDk backend not available
# error traceback
  result = self.getByVendorIDAndProductID(
    self.open()
mayRaiseUSBError(libusb1.libusb_init_context(
raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
LIBUSB_ERROR_NOT_FOUND [-5]

from python-libusb1.

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.