Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 13:32:28 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Greg Rivers <gcr+freebsd-ports@tharned.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: deskutils/calibre does not build after Python 2.6 to 2.7 update
Message-ID:  <4D94BAAC.8030202@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.00.1103311154580.94189@roadkill.tharned.org>
References:  <alpine.BSF.2.00.1103311154580.94189@roadkill.tharned.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/31/11 1:07 PM, Greg Rivers wrote:
> I had to remove calibre to allow upgrade-site-packages to finish
> successfully during the Python update.  Trying to install calibre
> afterwards fails:
> 
> # portmaster -D deskutils/calibre
> 
> ===>>> Port directory: /usr/ports/deskutils/calibre
> 
> ===>>> Launching 'make checksum' for deskutils/calibre in background
> ===>>> Gathering dependency list for deskutils/calibre from ports
> ===>>> Initial dependency check complete for deskutils/calibre
> 
> ===>>> Starting build for deskutils/calibre <<<===
> 
> ===>>> All dependencies are up to date
> 
> ===>  Cleaning for calibre-0.7.23_1
> 
> ===>>> Waiting on fetch & checksum for deskutils/calibre <<<===
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> ===>  Found saved configuration for calibre-0.6.18
> => calibre-0.7.23.tar.gz doesn't seem to exist in /usr/ports/distfiles//.
> => Attempting to fetch
> http://heanet.dl.sourceforge.net/project/calibre/0.7.23/calibre-0.7.23.tar.gz
> 
> calibre-0.7.23.tar.gz
> 
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> ===>  Found saved configuration for calibre-0.6.18
> ===>  Extracting for calibre-0.7.23_1
> => SHA256 Checksum OK for calibre-0.7.23.tar.gz.
> ===>  Patching for calibre-0.7.23_1
> ===>  Applying FreeBSD patches for calibre-0.7.23_1
> ===>   calibre-0.7.23_1 depends on package: py*-setuptools>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-sip>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-qt4-core>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-qt4-gui>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-cssutils>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-dateutil>=0 - found
> ===>   calibre-0.7.23_1 depends on package: py*-lxml>=0 - found
> ===>   calibre-0.7.23_1 depends on file: /usr/local/bin/python2.7 - found
> ===>   calibre-0.7.23_1 depends on file: /usr/local/bin/moc-qt4 - found
> ===>   calibre-0.7.23_1 depends on file: /usr/local/bin/qmake-qt4 - found
> ===>   calibre-0.7.23_1 depends on shared library: MagickWand.4 - found
> ===>   calibre-0.7.23_1 depends on shared library: fontconfig.1 - found
> ===>   calibre-0.7.23_1 depends on shared library: poppler-qt4.3 - found
> ===>   calibre-0.7.23_1 depends on shared library: wmflite - found
> ===>   calibre-0.7.23_1 depends on shared library: chm.0 - found
> ===>   calibre-0.7.23_1 depends on shared library: podofo - found
> ===>   calibre-0.7.23_1 depends on shared library: intl - found
> ===>  Configuring for calibre-0.7.23_1
> ===>  Building for calibre-0.7.23_1
> 
> *
> * Running build
> *
> 
> [snip successful compile]
> 
> *
> * Running gui
> *
> 
> 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 "/usr/ports/deskutils/calibre/work/calibre/setup/__init__.py",
> line 159, in run_all
>     self.run_cmd(self, opts)
>   File "/usr/ports/deskutils/calibre/work/calibre/setup/__init__.py",
> line 152, in run_cmd
>     self.run_cmd(scmd, opts)
>   File "/usr/ports/deskutils/calibre/work/calibre/setup/__init__.py",
> line 155, in run_cmd
>     cmd.run(opts)
>   File "/usr/ports/deskutils/calibre/work/calibre/setup/gui.py", line
> 36, in run
>     self.build_forms()
>   File "/usr/ports/deskutils/calibre/work/calibre/setup/gui.py", line
> 59, in build_forms
>     from calibre.gui2 import build_forms
>   File
> "/usr/ports/deskutils/calibre/work/calibre/src/calibre/gui2/__init__.py", line
> 19, in <module>
>     from calibre.ebooks.metadata.meta import get_metadata,
> metadata_from_formats
>   File
> "/usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/metadata/meta.py",
> line 11, in <module>
>     from calibre.customize.ui import get_file_type_metadata,
> set_file_type_metadata
>   File
> "/usr/ports/deskutils/calibre/work/calibre/src/calibre/customize/ui.py",
> line 14, in <module>
>     from calibre.customize.builtins import plugins as builtin_plugins
>   File
> "/usr/ports/deskutils/calibre/work/calibre/src/calibre/customize/builtins.py",
> line 466, in <module>
>     from calibre.devices.kobo.driver import KOBO
>   File
> "/usr/ports/deskutils/calibre/work/calibre/src/calibre/devices/kobo/driver.py",
> line 9, in <module>
>     import sqlite3 as sqlite
>   File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
>     from dbapi2 import *
>   File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
>     from _sqlite3 import *
> ImportError: /usr/local/lib/python2.7/site-packages/_sqlite3.so:
> Undefined symbol "sqlite3_load_extension"
> *** Error code 1
> 
> Stop in /usr/ports/deskutils/calibre.
> *** Error code 1
> 
> Stop in /usr/ports/deskutils/calibre.
> 
> ===>>> Installation of calibre-0.7.23_1 (deskutils/calibre) failed
> ===>>> Aborting update
> 
> 
> ===>>> You can restart from the point of failure with this command line:
>        portmaster <flags> deskutils/calibre
> 
> 
> I can't tell if this is a problem with calibre, python, or sqlite3.  Any
> clues?
> 

Hi Greg,

Try running this command:

grep WITH_EXTENSION=true /var/db/ports/sqlite3/options

If that doesn't return any output, then you should reinstall
databases/sqlite3 with the "loadable extensions" option turned on.

Then reinstall databases/py-sqlite3 and calibre, and I think it will
work then.

Hope that helps,
Greg
- -- 
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2UuqwACgkQ0sRouByUApATsQCffneiE5iyAO29prA0iQ/X/9xu
MX0An3jao6y+qrpZhWpf6dCsbYUOLV6u
=1jFu
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D94BAAC.8030202>