I am still not having any luck using PyPTP. When I run any example using
ptpTransport = PtpUsbTransport(PtpUsbTransport.findptps()[0]) I get the
below stack trace. I am using the libusb-win32 backend, libusb0.dll

Any ideas? What data can I provide to help as this is very frustrating?

Thanks,
Phil.

Traceback (most recent call last):
  File "C:\Program
Files\Eclipse\plugins\org.python.pydev_2.7.3.2013031601\pysrc\pydevd.py",
line 1397, in <module>
    debugger.run(setup['file'], None, None)
  File "C:\Program
Files\Eclipse\plugins\org.python.pydev_2.7.3.2013031601\pysrc\pydevd.py",
line 1090, in run
    pydev_imports.execfile(file, globals, locals) #execute the script

  File "D:\Eclipse_workspace\Camera_Control\src\DumpDeviceDetails.py", line
10, in <module>
    ptpTransport = PtpUsbTransport(PtpUsbTransport.findptps()[0])
  File "D:\Eclipse_workspace\Camera_Control\src\ptp\PtpUsbTransport.py",
line 48, in __init__
    self.__usb_handle.setConfiguration(device.configurations[0])
  File "C:\Program Files\Python27\lib\site-packages\usb\legacy.py", line
255, in setConfiguration
    self.dev.set_configuration(configuration)
  File "C:\Program Files\Python27\lib\site-packages\usb\core.py", line 547,
in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "C:\Program Files\Python27\lib\site-packages\usb\core.py", line 92,
in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
AttributeError: 'NoneType' object has no attribute 'bConfigurationValue'


On Sun, May 26, 2013 at 9:44 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:

> On Sun, May 26, 2013 at 3:16 AM, Phil Edwards <philedward...@gmail.com>
> wrote:
> > I have installed libusb 0.1 via the Windows binary and can list my camera
> > using the GUI provided. (I can't find a Windows binary for libusb 1.0,
> and
> > don't want to compile from source code).
>
> You can use libusbx which provides Windows binary.
> http://libusbx.org/
> http://sourceforge.net/projects/libusbx/files/releases/1.0.15/binaries/
>
>
> --
> Xiaofan
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to