Skip to content

No idea why this happens. #14

Description

@0wwafa
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from winusbpy import *
>>> from ctypes import *
>>> from ctypes.wintypes import *
>>> from winusbclasses import DIGCF_DEVICE_INTERFACE, DIGCF_PRESENT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'winusbclasses'
>>> api = WinUSBApi()
>>> list_usb_devices()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'list_usb_devices' is not defined
>>> result = api.list_usb_devices(deviceinterface=True, present=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'WinUSBApi' object has no attribute 'list_usb_devices'
>>> api.
api.exec_function_kernel32( api.exec_function_winusb(
api.exec_function_setupapi(
>>> from winusbpy import *
>>> result = api.list_usb_devices(deviceinterface=True, present=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'WinUSBApi' object has no attribute 'list_usb_devices'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions