06-12-2012, 01:23 PM | #1 |
Enthusiast
Posts: 42
Karma: 10
Join Date: Nov 2007
Device: iPad, Kindle
|
Calibre won't connect to iTunes (OS X)
I updated iTunes last night, and everything was still working. This morning when I reopened Calibre, it won't connect to iTunes. I get an error message:
calibre, version 0.8.55 ERROR: Error: Error communicating with device Unknown property, element or command: 'sources' Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 82, in run File "site-packages/calibre/gui2/device.py", line 339, in _books File "site-packages/calibre/devices/apple/driver.py", line 3166, in books File "site-packages/calibre/devices/apple/driver.py", line 2184, in _get_library_books File "site-packages/appscript/reference.py", line 580, in __getattr__ AttributeError: Unknown property, element or command: 'sources' Help Please! Oh! I forgot, I am on a Mac |
06-12-2012, 04:54 PM | #2 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
This bug has been reported.
It appears that Apple has implemented 'sandboxing' for the 10.6.3 iTunes update. This means that external apps are unable to use AppleScript to control apps, which is how calibre communicates with iTunes. I will keep looking at this, as it's possible that there's something else happening. In the meantime, you can either downgrade to a previous version of iTunes, or use calibre's content server. Last edited by GRiker; 06-12-2012 at 05:34 PM. |
06-13-2012, 12:38 AM | #3 |
Enthusiast
Posts: 42
Karma: 10
Join Date: Nov 2007
Device: iPad, Kindle
|
Thank you
|
06-13-2012, 04:01 PM | #4 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
After more research, I'm convinced that the problem is indeed the sandboxing that Apple has promised since the release of OS X Lion last year. I created a post in the sticky section of this sub-forum with more information.
The next release of calibre will include code to detect a sandboxed version of iTunes and inform the user that calibre can't connect to iTunes. |
06-14-2012, 01:16 PM | #5 |
Member
Posts: 12
Karma: 5088
Join Date: Feb 2009
Device: iphone ipad
|
Is there no way to turn off sandboxing for iTunes?
|
06-15-2012, 04:48 AM | #6 |
Fanatic
Posts: 579
Karma: 3243761
Join Date: Nov 2011
Location: UK
Device: Kindle Fire HD8
|
when i check in activity monitor for iTunes it says that it is not sandboxed (unlike Safari which it says is)
is sandboxing implemented more into the OS for some apps which the user cannot see |
06-15-2012, 06:00 AM | #7 | |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Quote:
I see that the sandboxing status shows 'No' in Activity Monitor (thanks for pointing that out, I didn't know that was available). Another possibility is that Apple simply shut down OSA for iTunes. It could also be that calibre, as an app not distributed by the app store, has been sandboxed, thus shutting down OSA communications. However, iTunes version 10.6.1 still works with the latest calibre release (0.8.56). G Last edited by GRiker; 06-15-2012 at 06:21 AM. |
|
06-15-2012, 06:20 AM | #8 |
Fanatic
Posts: 579
Karma: 3243761
Join Date: Nov 2011
Location: UK
Device: Kindle Fire HD8
|
if you right click on the headers and select sandbox, it gives a yes/no against each running app saying if it uses sandboxing
that is my understanding, could be wrong, there might be more to sandboxing than this Last edited by paulsalter; 06-15-2012 at 06:28 AM. |
06-16-2012, 12:56 AM | #9 |
Zealot
Posts: 143
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Thanks for the advice GRiker. I am now having to download my books onto my iPad via the content server as you suggest. This works well but I have lost all my series information in the title of my books. Very annoying.
I have been trying to get a plugboard to work so that the series info is inserted into the title of the book but have failed. See this thread I created: https://www.mobileread.com/forums/sho....php?p=2115966 How can iPad users now get their books on the iPad with the series info in the title like before when using the 'Connect to iTunes' option in calbire? Is there a tutorial on how to do this now that sandboxing has been implemented in iTunes? I read this article: http://www.howtogeek.com/114063/how-...-ebook-series/ but have had no luck. I don't even have the 'epub' option in the drop down list under Format (choose first). Can some guru please help people like me who are not all that savvy in IT? It would be greatly appreciated! |
06-16-2012, 04:24 AM | #10 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Hmmm... I am still able to run my collection of iTunes apple scripts on my machine. Is it possible that they've just changed the scripting API?
|
06-16-2012, 05:59 AM | #11 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Certainly possible. The driver uses a python scripting library called appscript to communicate with iTunes. That library worked without problems through iTunes 10.6.1, and now with 10.6.3, it no longer works. I haven't been able to find anything indicating internal scripting changes, but something clearly has changed.
|
06-16-2012, 08:52 AM | #12 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Indeed. It's been a while since I tried it, so I don't know if this is new - but when I tried to use osascript to execute one of my working scripts I got this:
[porkchop iTunes]> osascript ./Copy\ Selected\ Tracks\ MT.scpt I'm not a python user, normally, but I'm willing - do I need to install anything special to add osascript support to python?
./Copy Selected Tracks MT.scpt: execution error: No user interaction allowed. (-1713) |
06-16-2012, 12:37 PM | #13 |
Enthusiast
Posts: 42
Karma: 10
Join Date: Nov 2007
Device: iPad, Kindle
|
If you put the Series info in the tag section, and title sort - it seems to work. I have been dropping the books straight into iTunes, after tweaking them with Calibre. All my Metadata seems to transfer.
I know you said that there is no fix - but you all are so brilliant, that I have to tell you that I am still hopeful |
06-16-2012, 10:33 PM | #14 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
GRiker,
It occurs to me from digging around that it might work if calibre generated a *.scpt file then executed it with osascript. Might only be a temporary fix, however, if Apple is really going to eliminate scripting. Hmmm... I assume that means Automator is gone, too... |
06-16-2012, 11:55 PM | #15 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2012
Device: IPAD
|
Hmm a simple workable solution atm would be to tune the save to disk functionality to be able to perform the same metadata magic that the direct import to iTunes used to. I have tried all sorts of exports and cannot get metadata to stick and update in the export files when dumped into iTunes. Now either iTunes is either remembering the first import and then overwriting all future imports of the same book (after deletion in iTunes) or the metadata isn't updating properly on export.
I've set the appropriate preferences to update metadata, I've also tried converting from epub to epub and also tried the modify epub plugging. But exporting to a folder and dragging to iTunes would be relatively painless. Obviously non-ibooks readers are also an option but you lose the push updates to your multiple devices and page syncing. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre will not connect to itunes | mishka1999 | Devices | 3 | 12-30-2011 01:25 AM |
iPad calibre will not connect to itunes | mishka1999 | Apple Devices | 0 | 12-24-2011 12:37 AM |
Calibre - Connect to iTunes Epub Filename | christophlin | Devices | 3 | 08-09-2011 02:47 PM |
Way to connect to iTunes when loading Calibre | ab257 | Devices | 0 | 06-02-2011 01:38 PM |
Calibre won't connect to iTunes | bookcroc | Devices | 17 | 02-05-2011 02:11 PM |