Error when connecting iPhone 4

Bug #1054562 reported by kvangogh
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I've installed version 0.8.70. When the program runs and I connect my iPhone 4, the following error message appears:

calibre, version 0.8.70
FOUT: Fout: Fout bij communicatie met apparaat

Cannot write to file: hr=2147942450 facility=7 error_code=50 description: The request is not supported.

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 85, in run
  File "site-packages\calibre\gui2\device.py", line 466, in _books
  File "site-packages\calibre\devices\mtp\driver.py", line 161, in books
  File "site-packages\calibre\devices\mtp\driver.py", line 137, in get_driveinfo
  File "site-packages\calibre\devices\mtp\driver.py", line 128, in _update_drive_info
  File "site-packages\calibre\devices\mtp\windows\driver.py", line 33, in check_thread
  File "site-packages\calibre\devices\mtp\windows\driver.py", line 391, in put_file
WPDError: Cannot write to file: hr=2147942450 facility=7 error_code=50 description: The request is not supported.

The column that normally indicates which books are synchronized with the iPhone now contains all blanks. When I check iTunes, all books that were previously assigned to the iPhone are all there.

In the previous version of Calibre, everything worked as advertized.

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1054562

Why is your iphone connecting as an MTP device? Go to
preferences->Miscellaneous in calibre and click the debug device
detection button and post the output.

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
kvangogh (kvangogh) wrote :

The output as requested:

calibre 0.8.70
Windows-7-6.1.7601-SP1 Windows
('Windows', '7', '6.1.7601')
Python 2.7.3
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
USB devices on system:
[u'usb\\root_hub20&vid8086&pid1e26&rev0004',
 u'usb\\root_hub20&vid8086&pid1e2d&rev0004',
 u'usb\\vid_045e&pid_009d&rev_0041',
 u'usb\\vid_045e&pid_009d&rev_0041&mi_00',
 u'usb\\vid_045e&pid_009d&rev_0041&mi_01',
 u'usb\\vid_04fc&pid_0c25&rev_0112',
 u'usb\\vid_050d&pid_815c&rev_0101',
 u'usb\\vid_059f&pid_0651&rev_0000',
 u'usb\\vid_05e3&pid_0608&rev_0901',
 u'usb\\vid_1058&pid_070c&rev_1009',
 u'usb\\vid_1058&pid_1001&rev_0106',
 u'usb\\vid_413c&pid_2003&rev_0301',
 u'usb\\vid_8087&pid_0024&rev_0000',
 u'usb\\vid_8087&pid_0024&rev_0000']
Traceback (most recent call last):
  File "site-packages\calibre\devices\scanner.py", line 85, in __call__
DriveError: No removable drives found
Drives detected:
Available plugins: ADAM ALEX ALURATEK_COLOR ANDROID ARCHOS7O AVANT AZBOOKA BAMBOOK
BLACKBERRY BOEYE_BDX BOEYE_BEX BOOQ BOOX COBY COOL_ER CYBOOK DBOOK E52
E71X EB511 EB600 EBK52 ECLICTO EDGE EEEREADER ELONEX ESLICK EX124G
FOLDER_DEVICE_FOR_CONFIG GEMEI GER2 HANLINV3 HANLINV5 ILIAD INVESBOOK
IPAPYRUS IREXDR1000 IREXDR800 IRIVER_STORY ITALICA JETBOOK
JETBOOK_COLOR JETBOOK_MINI KINDLE KINDLE2 KINDLE_DX KINDLE_FIRE KOBO
LIBREAIR LUMIREAD MENTOR MIBUK MOOVYBOOK MTP_DEVICE N516 N770 N810
NEWSMY NEXTBOOK NOOK NOOK_COLOR NUUT2 ODYSSEY ORIZON PALMPRE PDNOVEL
PDNOVEL_KOBO PI2 PICO PLAYBOOK POCKETBOOK301 POCKETBOOK360
POCKETBOOK360P POCKETBOOK602 POCKETBOOK622 POCKETBOOK701 PRS505 PRST1
README S60 SHINEBOOK SMART_DEVICE_APP SNE SOVOS SPECTRA STASH
SUNSTECH_EB700 SWEEX TECLAST_K3 THEBOOK TREKSTOR USER_DEFINED
VELOCITYMICRO WEBOS WEXLER

Looking for devices of type: MTP_DEVICE
The Windows WPD service says there are no portable devices connected

Looking for devices...

Devices possibly connected: None

Revision history for this message
Kovid Goyal (kovid) wrote :

That's looks ok, one more thing, quit calibre, plugin in your iPhone, open a
command prompt, type in

calibre-debug -d

and post the output.

Revision history for this message
kvangogh (kvangogh) wrote :
Download full text (3.5 KiB)

Here's the command prompt response:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>calibre-debug -d
calibre 0.8.70
Windows-7-6.1.7601-SP1 Windows
('Windows', '7', '6.1.7601')
Python 2.7.3
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
USB devices on system:
[u'usb\\root_hub20&vid8086&pid1e26&rev0004',
 u'usb\\root_hub20&vid8086&pid1e2d&rev0004',
 u'usb\\vid_045e&pid_009d&rev_0041',
 u'usb\\vid_045e&pid_009d&rev_0041&mi_00',
 u'usb\\vid_045e&pid_009d&rev_0041&mi_01',
 u'usb\\vid_04fc&pid_0c25&rev_0112',
 u'usb\\vid_050d&pid_815c&rev_0101',
 u'usb\\vid_059f&pid_0651&rev_0000',
 u'usb\\vid_05ac&pid_1297&rev_0310',
 u'usb\\vid_05ac&pid_1297&rev_0310&mi_00',
 u'usb\\vid_05e3&pid_0608&rev_0901',
 u'usb\\vid_1058&pid_1001&rev_0106',
 u'usb\\vid_413c&pid_2003&rev_0301',
 u'usb\\vid_8087&pid_0024&rev_0000',
 u'usb\\vid_8087&pid_0024&rev_0000']
Traceback (most recent call last):
  File "site-packages\calibre\devices\scanner.py", line 85, in __call__
DriveError: No removable drives found
Drives detected:
Available plugins: ADAM ALEX ALURATEK_COLOR ANDROID ARCHOS7O AVANT AZBOOKA BAMBO
OK
BLACKBERRY BOEYE_BDX BOEYE_BEX BOOQ BOOX COBY COOL_ER CYBOOK DBOOK E52
E71X EB511 EB600 EBK52 ECLICTO EDGE EEEREADER ELONEX ESLICK EX124G
FOLDER_DEVICE_FOR_CONFIG GEMEI GER2 HANLINV3 HANLINV5 ILIAD INVESBOOK
IPAPYRUS IREXDR1000 IREXDR800 IRIVER_STORY ITALICA JETBOOK
JETBOOK_COLOR JETBOOK_MINI KINDLE KINDLE2 KINDLE_DX KINDLE_FIRE KOBO
LIBREAIR LUMIREAD MENTOR MIBUK MOOVYBOOK MTP_DEVICE N516 N770 N810
NEWSMY NEXTBOOK NOOK NOOK_COLOR NUUT2 ODYSSEY ORIZON PALMPRE PDNOVEL
PDNOVEL_KOBO PI2 PICO PLAYBOOK POCKETBOOK301 POCKETBOOK360
POCKETBOOK360P POCKETBOOK602 POCKETBOOK622 POCKETBOOK701 PRS505 PRST1
README S60 SHINEBOOK SMART_DEVICE_APP SNE SOVOS SPECTRA STASH
SUNSTECH_EB700 SWEEX TECLAST_K3 THEBOOK TREKSTOR USER_DEFINED
VELOCITYMICRO WEBOS WEXLER

Looking for devices of type: MTP_DEVICE
List of WPD PNP ids:
[u'\\\\?\\usb#vid_05ac&pid_1297&mi_00#0#{6ac27878-a6fa-4155-ba85-f98f491d4f33}']

MTP device: \\?\usb#vid_05ac&pid_1297&mi_00#0#{6ac27878-a6fa-4155-ba85-f98f491d4
f33}
{'device_version': u'6.0',
 'friendly_name': u'Apple iPhone',
 'has_bulk_properties': True,
 'has_storage': True,
 'manufacturer_name': u'Apple Inc.',
 'model_name': u'Apple iPhone',
 'protocol': u'MTP: 1.00',
 'serial_number': u'86033WJVA4S',
 'storage': [{'capacity': 14702632960L,
              'capacity_objects': 0L,
              'description': u'Internal Storage',
              'filesystem': u'DCF',
              'free_objects': 3031L,
              'free_space': 4547125248L,
              'id': u's10001',
              'name': u'Internal Storage',
              'rw': True}],
 'type': 'unknown'}

Trying to open: \\?\usb#vid_05ac&pid_1297&mi_00#0#{6ac27878-a6fa-4155-ba85-f98f4
91d4f33}
Opened Apple iPhone successfully
Device info:
{'device_version': u'6.0',
 'friendly_name': u'Apple iPhone',
 'has_bulk_properties': True,
 'has_storage': True,
 'manufacturer_name': u'Apple Inc.',
 'model_name': u'Apple iPhone',
 'protocol': u'MTP: 1.00',
 'serial_number': u'86033WJVA4S',
 'storage': [{'capacity': 14702632960L,
         ...

Read more...

Revision history for this message
kvangogh (kvangogh) wrote :

Little add-on information:

. The icon in the menu bar used to be a little iPhone picto, now it is a bigger iPad picto

. There is some sort of connection, since the icon in the menu bar and the extra column in the main display area are displayed. Also in the bottom of the screen it says 'calibre version 0.8.70 created by Kovid Goyal .... Connected to Apple iPhone'. When I select the icon, the screen switches to the contents of the iPhone, which is empty.

. When I try to right-click a book and select 'send to iPhone main memory' (roughly translated from Dutch), I get a similar error message about the connection.

Revision history for this message
Kovid Goyal (kovid) wrote :

Right click the ipad icon in the toolbar, select configure this device,
and tell calibre to ignore the device. Then calibre will no longer try
to connect to the device by MTP and use the old vay, via iTunes instead.

 status fixreleased

Kovid Goyal (kovid)
Changed in calibre:
status: Incomplete → Fix Released
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.