Bug 451727 - Empty Camera List
Summary: Empty Camera List
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 7.6.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-20 13:56 UTC by Ette
Modified: 2024-09-18 04:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments
Empty List (2.31 MB, image/png)
2022-03-20 14:20 UTC, Ette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ette 2022-03-20 13:56:53 UTC
Installed a fresh MACOs
***
Agfter installing Digikam,  I tried to import from a Cananon EOS.
Adding Camera manually.
But there are no entrys in the Camera List.
***


OBSERVED RESULT
Empty List

EXPECTED RESULT
Something in the List

SOFTWARE/OS VERSIONS
macOS: 11.6.4


ADDITIONAL INFORMATION
Tried to install gphoto2 via Terminal - > same empty CameraList
Comment 1 caulier.gilles 2022-03-20 14:01:36 UTC
Not reproducible with 7.7.0 pre-release :

https://i.imgur.com/25Dk1gS.png

Gilles Caulier
Comment 2 Ette 2022-03-20 14:20:42 UTC
Created attachment 147619 [details]
Empty List

What can I do?
Comment 3 caulier.gilles 2022-03-20 14:24:31 UTC
Hum, try with the PKG here, this is what i use to test :

https://files.kde.org/digikam/

Gilles Caulier
Comment 4 Ette 2022-03-20 14:35:57 UTC
Still empty ???
Comment 5 caulier.gilles 2022-03-20 14:40:02 UTC
This is a question or an affirmation ?

If it still empty, please run digiKam from a Terminal like explain here :

https://www.digikam.org/contribute/

Gilles Caulier
Comment 6 Ette 2022-03-20 17:02:04 UTC
digikam.geoiface: ----
digikam.general: Testing  "exiftool" ...
digikam.general: Testing  "exiftool" ...
digikam.general: Testing  "/usr/local/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/Applications/digiKam.org/digikam.app/Contents/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/usr/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/usr/local/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/bin/exiftool" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "exiftool" ...
digikam.general: All Binaries Found :  false
digikam.dimg: "/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/data/sample-aix.png" : "PNG" file identified
digikam.metaengine: Loading metadata with "Exiv2" backend from "/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/data/sample-aix.png"
digikam.dimg.png: Opening file "/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/data/sample-aix.png"
digikam.dimg.png: PNG in >=8 bits/color/pixel.
digikam.dimg.png: PNG in PNG_COLOR_TYPE_RGB
digikam.general: new search text settings: "" : hasResult = true , validRows = 16
digikam.import: Number of cameras supported: 0
digikam.import: Number of ports supported: 0
digikam.import: Number of cameras supported: 0
digikam.import: Number of ports supported: 0
digikam.import: Number of cameras supported: 0
digikam.import: Number of ports supported: 0
digikam.general: Cancel Main Thread
digikam.general: Cancel Main Thread
digikam.general: Cancel Main Thread
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.general: Cancel Main Thread
Comment 7 caulier.gilles 2022-03-20 17:43:46 UTC
Yes, it's the same here : no device drivers found, even if .so files are present.

libgphoto2 use a dynamic loading at run time to plug drivers in memory.

libgphoto2 uses 2 variables to customize place where modules are : IOLIBS and CAMLIBS

By default both are ".", so modules are checked in directory where is located the libgphoto2. I placed all files here, but no change.

Gilles Caulier
Comment 8 Maik Qualmann 2022-03-20 17:53:57 UTC
No ports are found either, probably no ports - no cameras. I think it's a rights issue.

Maik
Comment 9 Ette 2022-03-27 17:29:33 UTC
How can i fix that?
Comment 10 caulier.gilles 2022-03-27 17:33:43 UTC
I don't know yet. I must investigate to find where is the difference between my 2 computers : one show the list, the second no...
Comment 11 Ette 2022-04-24 16:22:14 UTC
Anything new about this bug.
Die you find the difference between the 2 computers ?

LG 
Elmar Kusch
Comment 12 caulier.gilles 2022-04-24 17:10:37 UTC
Hi,

No i don't find the difference.

I suspect the right to access to devices from MacOS. Typically, the right to access to USB port and communicate with the connected camera (here an iphone in fact).

I don't find a way from the command line to query the MacOS rights database to compare. If you have a tip, i'm open.

Best

Gilles Caulier
Comment 13 Ette 2022-04-25 10:35:12 UTC
Hi,
you don´t mean the "sudo ls -le -R .."

Did you try:
system settings -> Security &Privacy -> Full Disk Access -> Terminal -> Yes

Terminal:
su admin
sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db

There is an Article at https://www.kolide.com/blog/macos-catalina-osquery
Comment 14 Tobias Cohen 2022-04-26 05:40:07 UTC
I'm having the same issue on Windows with v7.6.0. I tried reinstalling, and running the program as Administrator, and neither helped.
Comment 15 Maik Qualmann 2022-04-26 05:52:45 UTC
It is currently not implemented in digiKam for Windows. See this story: Bug 398166

Maik
Comment 16 caulier.gilles 2022-04-26 06:02:58 UTC
Hi all,

To be more precise, the Gphoto2 is implemented under Windows, but the solution do not work without a admin right operation to replace the native Windows USB hardware layer by a libusb1 based solution. So a native solution based on Microsoft WIA API must be implemented instead, we have no other solution...

Under MacOS, i'm 90% sure that the problem is relevant of rights not set due to unsigned bundle (typically digiKam is not on the Apple Store).
But who want to pay 100 euros to the Big Apple by years to just publish a open source program to a proprietary store ?

Gilles Caulier
Comment 17 caulier.gilles 2022-11-24 07:10:00 UTC
Hi all,

I just test with last MacOS Monterrey under a MacBook pro Intel, and 8.0.0 pre-release package provide the gphoto2 list of drivers :

https://i.imgur.com/U9QVjM8.png

I don't yet tested with 7.9.0 pre-release, but as application in compiled with the same environment, this must work too.

Note that i suspect a gphoto2 library compilation problem here. This library is built using Macports.

Best regards

Gilles Caulier
Comment 18 caulier.gilles 2023-04-09 07:10:46 UTC
With last update of MacOS Monterrey (Intel), digiKam 8.0.0 PKG gives the list of camera from Gphoto.

https://i.imgur.com/ylvaui7.png

Gilles Caulier
Comment 19 caulier.gilles 2024-09-14 21:09:34 UTC

*** This bug has been marked as a duplicate of bug 451719 ***
Comment 20 caulier.gilles 2024-09-15 06:29:10 UTC
Hi all,

The next digiKam 8.5.0 will be compiled natively for Apple Silicon computer (arm64 architecture).
Here the pre-release PKG installer list all gphoto2 drivers as expected:

https://i.imgur.com/UkkBoDn.png

You can download and test the Qt6 based PKG installer fir macOS available here:

https://files.kde.org/digikam/  

Thanks in advance for your feedback

Gilles Caulier
Comment 21 caulier.gilles 2024-09-17 05:46:48 UTC
Git commit b976d40cc24f9f7f43b935ed884593040d4903ec by Gilles Caulier.
Committed on 17/09/2024 at 05:44.
Pushed by cgilles into branch 'master'.

Add PATH env. vars for gphoto2 drivers
Related: bug 451719, bug 460252, bug 470530

M  +10   -3    core/app/utils/digikam_globals_bundles.cpp

https://invent.kde.org/graphics/digikam/-/commit/b976d40cc24f9f7f43b935ed884593040d4903ec
Comment 22 caulier.gilles 2024-09-17 07:00:26 UTC
Git commit dac1942db33b28e8103e5bff43d417fe765cfba1 by Gilles Caulier.
Committed on 17/09/2024 at 06:54.
Pushed by cgilles into branch 'master'.

Move the gpohto2 drivers at the right place in the macOS bundle generated by Macports.

Tested on a fresh installation of digiKam on a macbook air M1 without macports, xcode, and other dev tools.

The list of gphoto2 camera can be listed and used.

This can be tested with the digiKam 8.5.0 pre-release PKG installer for Apple Silicon (arm64)
published today at: https://files.kde.org/digikam/
Related: bug 451719, bug 460252, bug 470530

FIXED-IN: 8.5.0

M  +8    -6    project/bundles/macports/04-build-installer.sh
M  +1    -1    project/bundles/macports/data/qt.conf

https://invent.kde.org/graphics/digikam/-/commit/dac1942db33b28e8103e5bff43d417fe765cfba1