Using USB API (MTP) on MacOS

#1

Has anyone had any luck using the USB api on mac? I have installed libmtp but the camera is not recognized. Is there a ptp lib that works? Ideally there would be a python lib I could use but looking for any working ‘hello world’ example at this point.

Alternatively, is it possible to use libusb rather than ptp? I do see the device using libusb.

Thanks!

#2

Have you tried libmtp on Mac with Python bindings?

http://macappstore.org/libmtp/

I think I did get it working on Linux with the Python bindings. However, everyone seemed to be writing bash scripts, so I stopped. I think there were a few glitches with the Python bindings.

Does libptp not compile on Mac?

People have gotten it running in the past.

https://micro-manager.org/wiki/GPhoto

#3

I did get libmtp and pymtp installed but it is not seeing the camera:

>>> import pymtp
>>> pymtp.MTP().detect_devices()
[] 

or

>>> mtp-detect
libmtp version: 1.1.16

Listing raw device(s)
  No raw devices found.

There are no Theta cameras listed as supported by libmtp.

libptp is proving difficult to build but I will try to get that working. Thanks!

#4

For prototyping, can you use Vagrant or straight VirtualBox and run Linux inside the VM?

That way, you can test out your app concepts quickly instead of diving into compiling the library.

Maybe you can even deploy with Linux in a VM?

#5

gphoto2 works well on linux and it seems to be installable on MacOs.
I haven’t a Mac but on Linux Raspbian I need to uninstall sort of automount to make it work

Hugues

1 Like
#6

Additional tests with Automount