OS X TWAIN-SANE

This area contains the messages from the old Yahoo gcmac group after the port.
a8076d7dccaaba446b5983f2a4b2a21b
Posts: 0
Joined: Thu Dec 12, 2013 8:24 am

OS X TWAIN-SANE

Post by a8076d7dccaaba446b5983f2a4b2a21b »

Hi, I've just installed GraphicConverter as I wanted to use it to scan documents. I have a HP Scanjet C6270 and a MacBook Pro Retina running Mavericks. I've installed the SANE package to provide support for the scanner via TWAIN. I can scan with:- scanimage (part of the SANE package) LibreOffice (via the TWAIN interface) So the scanner works, and the TWAIN interface seems to work. When I try from ImageConverter it does not show any TWAIN scanners to be available (even if I enable the TEST device in SANE). I've tried running ImageConverter in both the default 64-bit and 32-bit mode. I've also tried running ImageConverter from the command line with various SANE debugging options. However, I get no debugging output from SANE - suggesting that it is not even being called. In ImageConverter when I do "Scan->Scan with Twain" it suggest to check or uncheck the "use TWAIN callbacks" in ..preferences/general/image capture. There is no such option in the version of GraphicConverter I have - version 8.8.2 (1371). Help Thanks Paul
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: OS X TWAIN-SANE

Post by thorstenlemke »

Attachments :Hi,maybe the twain sane is not 64 bit compatible.Just select GraphicConverter in the Finder. Select file info. Check launch in 32 bit mode.What happens now?ThorstenOn 12.12.2013, at 07:24, <pcawte@gmail.com> <pcawte@gmail.com> wrote: Hi,I've just installed GraphicConverter as I wanted to use it to scan documents.I have a HP Scanjet C6270 and a MacBook Pro Retina running Mavericks.I've installed the SANE package to provide support for the scanner via TWAIN. I can scan with:-scanimage (part of the SANE package)LibreOffice (via the TWAIN interface)So the scanner works, and the TWAIN interface seems to work. When I try from ImageConverter it does not show any TWAIN scanners to be available (even if I enable the TEST device in SANE). I've tried running ImageConverter in both the default 64-bit and 32-bit mode.I've also tried running ImageConverter from the command line with various SANE debugging options. However, I get no debugging output from SANE - suggesting that it is not even being called.In ImageConverter when I do "Scan->Scan with Twain" it suggest to check or uncheck the "use TWAIN callbacks" in ..preferences/general/image capture. There is no such option in the version of GraphicConverter I have - version 8.8.2 (1371).HelpThanksPaul
Paul Cawte
Posts: 0
Joined: Thu Dec 12, 2013 9:30 am

Re: OS X TWAIN-SANE

Post by Paul Cawte »

I'd already tried that. Just tried again to double check and the result is the same. Paul Thorsten Lemke 12 December 2013 14:22 Hi,maybe the twain sane is not 64 bit compatible.Just select GraphicConverter in the Finder. Select file info. Check launch in 32 bit mode.What happens now?Thorsten pcawte@gmail.com 12 December 2013 13:24   Hi, I've just installed GraphicConverter as I wanted to use it to scan documents. I have a HP Scanjet C6270 and a MacBook Pro Retina running Mavericks. I've installed the SANE package to provide support for the scanner via TWAIN. I can scan with:- scanimage (part of the SANE package) LibreOffice (via the TWAIN interface) So the scanner works, and the TWAIN interface seems to work. When I try from ImageConverter it does not show any TWAIN scanners to be available (even if I enable the TEST device in SANE). I've tried running ImageConverter in both the default 64-bit and 32-bit mode. I've also tried running ImageConverter from the command line with various SANE debugging options. However, I get no debugging output from SANE - suggesting that it is not even being called. In ImageConverter when I do "Scan->Scan with Twain" it suggest to check or uncheck the "use TWAIN callbacks" in ..preferences/general/image capture. There is no such option in the version of GraphicConverter I have - version 8.8.2 (1371). Help Thanks Paul -- Paul Cawte t: +62 811 133 0252  e: pcawte@gmail.com
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: OS X TWAIN-SANE

Post by thorstenlemke »

Attachments :Hi Paul, curious. I just call the TWAIN sdk to display the scanner selector. So, what says the SANE developer? Thorsten On 12.12.2013, at 08:30, Paul Cawte <pcawte@gmail.com> wrote: > I'd already tried that. > > Just tried again to double check and the result is the same. > > Paul >
Paul Cawte
Posts: 0
Joined: Thu Dec 12, 2013 9:30 am

Re: OS X TWAIN-SANE

Post by Paul Cawte »

Yes. What puzzles me is that I can't get it to produce any DEBUG information. Following the instructions on the OS X SANE web site: http://www.ellert.se/twain-sane/faq.html - as copied and pasted below Scanning using the scanimage program works, but when I try to use the TWAIN SANE Interface it doesn’t work Start the application from the command line instead of doubleclicking on its icon. If your application is of the CFM (Code Fragment Manager) type, you must start it using the LaunchCFMApp application like in the following two examples. Since the command line in these examples are long, they have been broken into several lines. If you type them on one line you should skip the \ signs that tells the shell the command continues on the next line. To obtain more information you can set the debugging environment variable for your backend to a reasonable number. For bash: SANE_DEBUG_〈name of your backend in capitals〉=n \ /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \ /Applications/GraphicConverter/Contents/MacOS/GraphicConverter As I understand, GC8 is a Cocoa application so I don't the CFM stuff - so to debug TWAIN I just launch with:- SANE_DEBUG_HP=255 /Applications/GraphicConverter.app/Contents/MacOS/GraphicConverter The only output I get however is directly from the GC8 application and not from the TWAIN SANE interface 2013-12-12 21:03:54.371 GraphicConverter[3446:507] Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Applications/GraphicConverter.app/Contents/Resources/English.lproj/MainMenu.nib. 2013-12-12 21:03:54.374 GraphicConverter[3446:507] Could not connect the action checkForUpdates: to target of class NSObject Not sure what any of this means - but looks to be nothing to do with the scanner. I've also tried various other SANE debug options:- SANE_DEBUG_SANEI_USB SANE_DEBUG_SANEI_THREAD as suggested on the http://www.ellert.se/twain-sane/faq.html page. In all case I get the same result, no debug information from the SANE interface. When I do File->Scan->Scan with TWAIN in GC8, after the "Important TWAIN Notes" I get the Select Data Source screen, but there is nothing to select in it - see attached screen shot. I've tried all this with GC8 in both 64-bit and 32-bit modes. I've tested that TWAIN interface does work by using it from LibreOffice - so I guess it's something about the interaction between GC8 and TWAIN-SANE. Do you know if there is a way to get DEBUG output? Paul Thorsten Lemke 12 December 2013 20:53 Hi Paul,curious. I just call the TWAIN sdk to display the scanner selector. So, what says the SANE developer?Thorsten Paul Cawte 12 December 2013 14:30 I'd already tried that. Just tried again to double check and the result is the same. Paul Thorsten Lemke 12 December 2013 14:22 Hi,maybe the twain sane is not 64 bit compatible.Just select GraphicConverter in the Finder. Select file info. Check launch in 32 bit mode.What happens now?Thorsten pcawte@gmail.com 12 December 2013 13:24   Hi, I've just installed GraphicConverter as I wanted to use it to scan documents. I have a HP Scanjet C6270 and a MacBook Pro Retina running Mavericks. I've installed the SANE package to provide support for the scanner via TWAIN. I can scan with:- scanimage (part of the SANE package) LibreOffice (via the TWAIN interface) So the scanner works, and the TWAIN interface seems to work. When I try from ImageConverter it does not show any TWAIN scanners to be available (even if I enable the TEST device in SANE). I've tried running ImageConverter in both the default 64-bit and 32-bit mode. I've also tried running ImageConverter from the command line with various SANE debugging options. However, I get no debugging output from SANE - suggesting that it is not even being called. In ImageConverter when I do "Scan->Scan with Twain" it suggest to check or uncheck the "use TWAIN callbacks" in ..preferences/general/image capture. There is no such option in the version of GraphicConverter I have - version 8.8.2 (1371). Help Thanks Paul -- Paul Cawte t: +62 811 133 0252  e: pcawte@gmail.com
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: OS X TWAIN-SANE

Post by thorstenlemke »

Hello,ah - do you maybe use the Mac App Store version? TWAIN sane may not work due the Apple Sandboxing.Please download the normal version from http://www.lemkesoft.comThorsten On 12.12.2013, at 15:30, Paul Cawte <pcawte@gmail.com> wrote: Yes. What puzzles me is that I can't get it to produce any DEBUG information. Following the instructions on the OS X SANE web site: http://www.ellert.se/twain-sane/faq.html - as copied and pasted below Scanning using the scanimage program works, but when I try to use the TWAIN SANE Interface it doesn’t work Start the application from the command line instead of doubleclicking on its icon. If your application is of the CFM (Code Fragment Manager) type, you must start it using the LaunchCFMApp application like in the following two examples. Since the command line in these examples are long, they have been broken into several lines. If you type them on one line you should skip the \ signs that tells the shell the command continues on the next line. To obtain more information you can set the debugging environment variable for your backend to a reasonable number. For bash: SANE_DEBUG_〈name of your backend in capitals〉=n \ /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \ /Applications/GraphicConverter/Contents/MacOS/GraphicConverter As I understand, GC8 is a Cocoa application so I don't the CFM stuff - so to debug TWAIN I just launch with:- SANE_DEBUG_HP=255 /Applications/GraphicConverter.app/Contents/MacOS/GraphicConverter The only output I get however is directly from the GC8 application and not from the TWAIN SANE interface 2013-12-12 21:03:54.371 GraphicConverter[3446:507] Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Applications/GraphicConverter.app/Contents/Resources/English.lproj/MainMenu.nib. 2013-12-12 21:03:54.374 GraphicConverter[3446:507] Could not connect the action checkForUpdates: to target of class NSObject Not sure what any of this means - but looks to be nothing to do with the scanner. I've also tried various other SANE debug options:- SANE_DEBUG_SANEI_USB SANE_DEBUG_SANEI_THREAD as suggested on the http://www.ellert.se/twain-sane/faq.html page. In all case I get the same result, no debug information from the SANE interface. When I do File->Scan->Scan with TWAIN in GC8, after the "Important TWAIN Notes" I get the Select Data Source screen, but there is nothing to select in it - see attached screen shot. <image.png> I've tried all this with GC8 in both 64-bit and 32-bit modes. I've tested that TWAIN interface does work by using it from LibreOffice - so I guess it's something about the interaction between GC8 and TWAIN-SANE. Do you know if there is a way to get DEBUG output? Paul
Paul Cawte
Posts: 0
Joined: Thu Dec 12, 2013 9:30 am

Re: OS X TWAIN-SANE

Post by Paul Cawte »

Yes, using the app store version - will try with the normal version Thanks Paul Thorsten Lemke 12 December 2013 21:34   Hello,ah - do you maybe use the Mac App Store version? TWAIN sane may not work due the Apple Sandboxing.Please download the normal version from http://www.lemkesoft.comThorsten Thorsten Lemke 12 December 2013 20:53 Hi Paul,curious. I just call the TWAIN sdk to display the scanner selector. So, what says the SANE developer?Thorsten Paul Cawte 12 December 2013 14:30 I'd already tried that. Just tried again to double check and the result is the same. Paul Thorsten Lemke 12 December 2013 14:22 Hi,maybe the twain sane is not 64 bit compatible.Just select GraphicConverter in the Finder. Select file info. Check launch in 32 bit mode.What happens now?Thorsten pcawte@gmail.com 12 December 2013 13:24   Hi, I've just installed GraphicConverter as I wanted to use it to scan documents. I have a HP Scanjet C6270 and a MacBook Pro Retina running Mavericks. I've installed the SANE package to provide support for the scanner via TWAIN. I can scan with:- scanimage (part of the SANE package) LibreOffice (via the TWAIN interface) So the scanner works, and the TWAIN interface seems to work. When I try from ImageConverter it does not show any TWAIN scanners to be available (even if I enable the TEST device in SANE). I've tried running ImageConverter in both the default 64-bit and 32-bit mode. I've also tried running ImageConverter from the command line with various SANE debugging options. However, I get no debugging output from SANE - suggesting that it is not even being called. In ImageConverter when I do "Scan->Scan with Twain" it suggest to check or uncheck the "use TWAIN callbacks" in ..preferences/general/image capture. There is no such option in the version of GraphicConverter I have - version 8.8.2 (1371). Help Thanks Paul -- Paul Cawte t: +62 811 133 0252  e: pcawte@gmail.com
Paul Cawte
Posts: 0
Joined: Thu Dec 12, 2013 9:30 am

Re: OS X TWAIN-SANE

Post by Paul Cawte »

Do I just download and install over the version from the App Store? I presume it will just pick up the licence key somehow. Or do I need to delete the current version first to get rid of the sandboxing? Thanks Paul Thorsten Lemke 12 December 2013 21:34   Hello,ah - do you maybe use the Mac App Store version? TWAIN sane may not work due the Apple Sandboxing.Please download the normal version from http://www.lemkesoft.comThorsten Paul Cawte 12 December 2013 21:30 Yes. What puzzles me is that I can't get it to produce any DEBUG information. Following the instructions on the OS X SANE web site: http://www.ellert.se/twain-sane/faq.html - as copied and pasted below Scanning using the scanimage program works, but when I try to use the TWAIN SANE Interface it doesn’t work Start the application from the command line instead of doubleclicking on its icon. If your application is of the CFM (Code Fragment Manager) type, you must start it using the LaunchCFMApp application like in the following two examples. Since the command line in these examples are long, they have been broken into several lines. If you type them on one line you should skip the \ signs that tells the shell the command continues on the next line. To obtain more information you can set the debugging environment variable for your backend to a reasonable number. For bash: SANE_DEBUG_〈name of your backend in capitals〉=n \ /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \ /Applications/GraphicConverter/Contents/MacOS/GraphicConverter As I understand, GC8 is a Cocoa application so I don't the CFM stuff - so to debug TWAIN I just launch with:- SANE_DEBUG_HP=255 /Applications/GraphicConverter.app/Contents/MacOS/GraphicConverter The only output I get however is directly from the GC8 application and not from the TWAIN SANE interface 2013-12-12 21:03:54.371 GraphicConverter[3446:507] Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Applications/GraphicConverter.app/Contents/Resources/English.lproj/MainMenu.nib. 2013-12-12 21:03:54.374 GraphicConverter[3446:507] Could not connect the action checkForUpdates: to target of class NSObject Not sure what any of this means - but looks to be nothing to do with the scanner. I've also tried various other SANE debug options:- SANE_DEBUG_SANEI_USB SANE_DEBUG_SANEI_THREAD as suggested on the http://www.ellert.se/twain-sane/faq.html page. In all case I get the same result, no debug information from the SANE interface. When I do File->Scan->Scan with TWAIN in GC8, after the "Important TWAIN Notes" I get the Select Data Source screen, but there is nothing to select in it - see attached screen shot. I've tried all this with GC8 in both 64-bit and 32-bit modes. I've tested that TWAIN interface does work by using it from LibreOffice - so I guess it's something about the interaction between GC8 and TWAIN-SANE. Do you know if there is a way to get DEBUG output? Paul Thorsten Lemke 12 December 2013 20:53 Hi Paul,curious. I just call the TWAIN sdk to display the scanner selector. So, what says the SANE developer?Thorsten Paul Cawte 12 December 2013 14:30 I'd already tried that. Just tried again to double check and the result is the same. Paul Thorsten Lemke 12 December 2013 14:22 Hi,maybe the twain sane is not 64 bit compatible.Just select GraphicConverter in the Finder. Select file info. Check launch in 32 bit mode.What happens now?Thorsten -- Paul Cawte t: +62 811 133 0252  e: pcawte@gmail.com
Paul Cawte
Posts: 0
Joined: Thu Dec 12, 2013 9:30 am

Re: OS X TWAIN-SANE

Post by Paul Cawte »

Hi Thorsten, Yes that was the problem. Scanning works now. But I no longer have a licensed version - is there some way to get a license key for this version without having to pay again. BTW, it's probably worth noting this issue somewhere - so doesn't catch other people out. If I'd known at the outset I wouldn't have used the app-store version. Thanks Paul Paul Cawte 12 December 2013 21:47 Do I just download and install over the version from the App Store? I presume it will just pick up the licence key somehow. Or do I need to delete the current version first to get rid of the sandboxing? Thanks Paul Thorsten Lemke 12 December 2013 21:34   Hello,ah - do you maybe use the Mac App Store version? TWAIN sane may not work due the Apple Sandboxing.Please download the normal version from http://www.lemkesoft.comThorsten Paul Cawte 12 December 2013 21:30 Yes. What puzzles me is that I can't get it to produce any DEBUG information. Following the instructions on the OS X SANE web site: http://www.ellert.se/twain-sane/faq.html - as copied and pasted below Scanning using the scanimage program works, but when I try to use the TWAIN SANE Interface it doesn’t work Start the application from the command line instead of doubleclicking on its icon. If your application is of the CFM (Code Fragment Manager) type, you must start it using the LaunchCFMApp application like in the following two examples. Since the command line in these examples are long, they have been broken into several lines. If you type them on one line you should skip the \ signs that tells the shell the command continues on the next line. To obtain more information you can set the debugging environment variable for your backend to a reasonable number. For bash: SANE_DEBUG_〈name of your backend in capitals〉=n \ /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \ /Applications/GraphicConverter/Contents/MacOS/GraphicConverter As I understand, GC8 is a Cocoa application so I don't the CFM stuff - so to debug TWAIN I just launch with:- SANE_DEBUG_HP=255 /Applications/GraphicConverter.app/Contents/MacOS/GraphicConverter The only output I get however is directly from the GC8 application and not from the TWAIN SANE interface 2013-12-12 21:03:54.371 GraphicConverter[3446:507] Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Applications/GraphicConverter.app/Contents/Resources/English.lproj/MainMenu.nib. 2013-12-12 21:03:54.374 GraphicConverter[3446:507] Could not connect the action checkForUpdates: to target of class NSObject Not sure what any of this means - but looks to be nothing to do with the scanner. I've also tried various other SANE debug options:- SANE_DEBUG_SANEI_USB SANE_DEBUG_SANEI_THREAD as suggested on the http://www.ellert.se/twain-sane/faq.html page. In all case I get the same result, no debug information from the SANE interface. When I do File->Scan->Scan with TWAIN in GC8, after the "Important TWAIN Notes" I get the Select Data Source screen, but there is nothing to select in it - see attached screen shot. I've tried all this with GC8 in both 64-bit and 32-bit modes. I've tested that TWAIN interface does work by using it from LibreOffice - so I guess it's something about the interaction between GC8 and TWAIN-SANE. Do you know if there is a way to get DEBUG output? Paul Thorsten Lemke 12 December 2013 20:53 Hi Paul,curious. I just call the TWAIN sdk to display the scanner selector. So, what says the SANE developer?Thorsten Paul Cawte 12 December 2013 14:30 I'd already tried that. Just tried again to double check and the result is the same. Paul -- Paul Cawte t: +62 811 133 0252  e: pcawte@gmail.com
Peter Fackelmann
Posts: 0
Joined: Fri Nov 19, 2010 2:17 pm

Re: OS X TWAIN-SANE

Post by Peter Fackelmann »

Paul - I use Epson Scan and never had a problem. It work independent from an Epson scanner. Regards Peter Am 12.12.2013 um 15:30 schrieb Paul Cawte <pcawte@gmail.com>: > Yes. > > What puzzles me is that I can't get it to produce any DEBUG information. > > Following the instructions on the OS X SANE web site: http://www.ellert.se/twain-sane/faq.html - as copied and pasted below > > Scanning using the scanimage program works, but when I try to use the TWAIN SANE Interface it doesn’t work > > Start the application from the command line instead of doubleclicking on its icon. If your application is of the CFM (Code Fragment Manager) type, you must start it using the LaunchCFMApp application like in the following two examples. Since the command line in these examples are long, they have been broken into several lines. If you type them on one line you should skip the \ signs that tells the shell the command continues on the next line. > > To obtain more information you can set the debugging environment variable for your backend to a reasonable number. > > For bash: > SANE_DEBUG_〈name of your backend in capitals〉=n \ > /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp \ > /Applications/GraphicConverter/Contents/MacOS/GraphicConverter > > As I understand, GC8 is a Cocoa application so I don't the CFM stuff - so to debug TWAIN I just launch with:- > > SANE_DEBUG_HP=255 /Applications/GraphicConverter.app/Contents/MacOS/GraphicConverter > > The only output I get however is directly from the GC8 application and not from the TWAIN SANE interface > > 2013-12-12 21:03:54.371 GraphicConverter[3446:507] Unknown class 'SUUpdater', using 'NSObject' instead. Encountered in Interface Builder file at path /Applications/GraphicConverter.app/Contents/Resources/English.lproj/MainMenu.nib. > 2013-12-12 21:03:54.374 GraphicConverter[3446:507] Could not connect the action checkForUpdates: to target of class NSObject > > Not sure what any of this means - but looks to be nothing to do with the scanner. > > I've also tried various other SANE debug options:- > • SANE_DEBUG_SANEI_USB > • SANE_DEBUG_SANEI_THREAD > as suggested on the http://www.ellert.se/twain-sane/faq.html page. In all case I get the same result, no debug information from the SANE interface. > > When I do File->Scan->Scan with TWAIN in GC8, after the "Important TWAIN Notes" I get the Select Data Source screen, but there is nothing to select in it - see attached screen shot. > > <image.png> > > I've tried all this with GC8 in both 64-bit and 32-bit modes. > > I've tested that TWAIN interface does work by using it from LibreOffice - so I guess it's something about the interaction between GC8 and TWAIN-SANE. > > Do you know if there is a way to get DEBUG output? > > Paul > Support NSA and GCHQ - Write in English Soutiens DGSE - a�cris en frana�ais
Post Reply