![]() |
#1 |
Zealot
![]() ![]() Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
|
update error
greetings,
just updated from 8.64 to 8.68 and I'm getting the following compilation error on opensuse 11.4. can anyone help me? ####### Building extension libmtp ####### gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.7 -c /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c -o /mnt/installs/iomari/work/calibre-0.8.68/build/objects/libmtp/libmtp.o /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c: In function ‘build_file_metadata’: /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:131:43: error: ‘LIBMTP_FILETYPE_FOLDER’ undeclared (first use in this function) /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:131:43: note: each undeclared identifier is reported only once for each function it appears in /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c: In function ‘Device_init’: /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:218:13: warning: implicit declaration of function ‘LIBMTP_Open_Raw_Device_Uncached’ /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:218:17: warning: assignment makes pointer from integer without a cast /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c: In function ‘recursive_get_files’: /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:366:5: warning: implicit declaration of function ‘LIBMTP_Get_Files_And_Folders’ /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:366:11: warning: assignment makes pointer from integer without a cast /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c:379:34: error: ‘LIBMTP_FILETYPE_FOLDER’ undeclared (first use in this function) Error while executing: gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.7 -c /mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c -o /mnt/installs/iomari/work/calibre-0.8.68/build/objects/libmtp/libmtp.o Traceback (most recent call last): File "./setup.py", line 99, in <module> sys.exit(main()) File "./setup.py", line 85, in main command.run_all(opts) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/__init__.py", line 163, in run_all self.run_cmd(self, opts) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/__init__.py", line 156, in run_cmd self.run_cmd(scmd, opts) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/__init__.py", line 159, in run_cmd cmd.run(opts) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/extensions.py", line 331, in run self.build(ext, dest) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/extensions.py", line 372, in build self.check_call(cmd) File "/mnt/installs/iomari/work/calibre-0.8.68/setup/extensions.py", line 406, in check_call subprocess.check_call(*args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 511, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.7', '-c', '/mnt/installs/iomari/work/calibre-0.8.68/src/calibre/devices/mtp/unix/libmtp.c', '-o', '/mnt/installs/iomari/work/calibre-0.8.68/build/objects/libmtp/libmtp.o']' returned non-zero exit status 1 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,222
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Update your version of libmtp
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
|
Thanks for the reply. I tried to update my libmtp and got the following:
> zypper in *libmtp* Loading repository data... Reading installed packages... 'libmtp8' providing '*libmtp*' is already installed. No update candidate for 'libmtp8-1.0.6-10.1.i586'. The highest available version is already installed. 'libmtp-devel' providing '*libmtp*' is already installed. No update candidate for 'libmtp-devel-1.0.6-10.1.i586'. The highest available version is already installed. Resolving package dependencies... Nothing to do |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,222
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then you need ot upgrade your distro or install libmtp from source.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
|
ok thanks
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
|
Thanks, I compiled libmtp and then calibre and it went well execpt when I run the app I get a dialog box with the following: Though when I close the error box the app seems to work fine.
calibre, version 0.8.68 ERROR: Unhandled exception: <b>ImportError</b>:No module named netifaces Traceback (most recent call last): File "/mnt/installs/iomari/work/calibre-0.8.68/src/calibre/gui2/ui.py", line 397, in start_smartdevice self.iactions['Connect Share'].set_smartdevice_action_state() File "/mnt/installs/iomari/work/calibre-0.8.68/src/calibre/gui2/actions/device.py", line 248, in set_smartdevice_action_state all_ips = get_all_ip_addresses() File "/mnt/installs/iomari/work/calibre-0.8.68/src/calibre/gui2/dialogs/smartdevice.py", line 31, in get_all_ip_addresses for iface in get_all_ips().itervalues(): File "/mnt/installs/iomari/work/calibre-0.8.68/src/calibre/utils/mdns.py", line 15, in get_all_ips import netifaces ImportError: No module named netifaces |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,222
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to install netifaces
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
|
thanks again
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Update 5.0.4 -> 5.1.0 gives error 0.0.6 | Ehhh | Kindle Developer's Corner | 20 | 06-05-2012 02:43 AM |
update 0.8.51 error | summerluvr2 | Calibre | 4 | 05-25-2012 03:36 PM |
Kindle duokan update error | kindle1user | Kindle Developer's Corner | 2 | 11-03-2011 12:34 AM |
update download error message | mted558 | Calibre | 16 | 08-01-2011 09:13 AM |
Installer Error on Update 0.7.48 | pmatch1104 | Calibre | 31 | 03-21-2011 05:06 PM |