From owner-freebsd-questions@freebsd.org Sun May 22 08:02:58 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FF88B443F3 for ; Sun, 22 May 2016 08:02:58 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 18178198D for ; Sun, 22 May 2016 08:02:58 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 40EE7BDCC for ; Sun, 22 May 2016 08:02:53 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/40EE7BDCC; dkim=none; dkim-atps=neutral Subject: Re: Regarding Sigil: bug, request for an added port, or something else? To: freebsd-questions@freebsd.org References: <20160522004208.GB59766@whisperer.chthonixia.net> From: Matthew Seaman Message-ID: <2d8ea215-6d43-4aff-e1b1-9fef6eaf0314@FreeBSD.org> Date: Sun, 22 May 2016 09:02:40 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160522004208.GB59766@whisperer.chthonixia.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="O1uKqunV2csLkmPHT8v39ILS821LeNu0S" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2016 08:02:58 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --O1uKqunV2csLkmPHT8v39ILS821LeNu0S Content-Type: multipart/mixed; boundary="3x0M0NiocbDWHEnXIdUesE3LjjC48sEC8" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <2d8ea215-6d43-4aff-e1b1-9fef6eaf0314@FreeBSD.org> Subject: Re: Regarding Sigil: bug, request for an added port, or something else? References: <20160522004208.GB59766@whisperer.chthonixia.net> In-Reply-To: <20160522004208.GB59766@whisperer.chthonixia.net> --3x0M0NiocbDWHEnXIdUesE3LjjC48sEC8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 22/05/2016 01:42, J. Altman wrote: > Greetings, listmembers... >=20 > I need to know what might be the best way to proceed for the following:= >=20 > When starting Sigil (a port with no maintainer) the following two error= s > occur: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Embedded Python Error: >=20 > Traceback (most recent call last): >=20 > File "/usr/local/share/sigil/python3lib/xmlprocessor.py", line 6, in > from sigil_bs4.builder._lxml import LXMLTreeBuilderForXML > File "/usr/local/share/sigil/plugin_launchers/python/sigil_bs4/builder/= _lxml.py", > line 26, in from lxml import etree >=20 > ImportError: No module named 'lxml' >=20 > error in xmlprocessor repairXML: -2: >=20 > Traceback (most recent call last): > File "/usr/local/share/sigil/python3lib/xmlprocessor.py", line 6, > in from sigil_bs4.builder._lxml import LXMLTreeBuilderForXML >=20 > File "/usr/local/share/sigil/plugin_launchers/python/sigil_bs4/builder/= _lxml.py", > line 26, in from lxml import etree >=20 > ImportError: No module named 'lxml' >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Then Sigil starts; a core is (sometimes) dumped. And not just any > old core, it seems: >=20 > du -ch sigil.core=20 > 1.1G sigil.core > 1.1G total >=20 > When I asked at Mobile Read forums, for Sigil support, it seems that > Sigil needs lxml for Python 3; where the lxml in the ports tree is > py27-lxml-3.5.0. >=20 > Would this be considered a bug, or a ports request? It seems that it's > a ports request, at this point. I assume that such a request goes to > ports@, or to the maintainer of py27-lxml-3.5.0? >=20 > OTOH, I have no idea if lxml for Python 3 is the solution. >=20 > Thanks for any assitance, and best regards, Yes, this is a bug in the sigil port. The problem here seems to be that sigil has no direct dependency on py-lxml -- it's one of the other dependencies that brings that in. sigil itself declares a requirement for python v3, but those other dependencies won't. They'll use python v2.7 by default. It is generally possible to compile any python port for python 3.x though. Unfortunately, what the ports can't do very well at the moment is generate multiple packages for different versions of python all from the same port. This 'variants' support has been mooted and is coming, but it's nowhere near usability yet. How are you installing your ports? If you're using the FreeBSD pkg repos, then I'm afraid you're out of luck -- everything there is hardwired to use python v2.7. If you build your own packages, either by poudriere or otherwise, then you should be able to switch the default version of python to v3.4 by adding something like this to make.conf: DEFAULT_VERSIONS+=3D python=3D3.4 This should solve the problem you're experiencing, but changing the default like this does mean reinstalling every python related package. For users of precompiled packages in the absence of variants support the ideal solution would be to create a py3-lxml slave port that explicitly uses python v3.x. Your best way forwards now is to raise a PR in Bugzilla explaining what you're seeing. The maintainer of the sigil port will be automatically notified. Cheers, Matthew --3x0M0NiocbDWHEnXIdUesE3LjjC48sEC8-- --O1uKqunV2csLkmPHT8v39ILS821LeNu0S Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXQWeoXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATRTcP/01l8LEjtIfgKjm+DuLNGKBl rJUGcMgMSBARxHF/EqZVEz9rD54lzxkhaAYAElv/2CSlLPe9pT0kjgz0a9besOSB QlfEcMe8c+L89MATMazbZQKm/8lvKSchMGYXfsGj/2XDPJg0k6EAfw7XFzj0XTkX bGqrPfqy7tMoKZfCXY50itFyjhE+tZcNeUHt5qC3Tn0pVRiDeJxMUKxTudD7Xuy9 mqhN9y5Gb+LRREYIOmtr/TH83a4l5HsAXJXWdghdiVtQ0yDK1Iajc+oChSPOw0+R EnBzFsckzKcZYzjw2LMaxcXUrjP6uVcss74bSbQPVv0NGP/Wj3aS51+tlGm3D/hP GhqhXzxh5BXBok9gteSSib3uoJ7UqS0w7w/CDxyyJbrNeX89vZhQCDomnK7ITMiA 3AdhtLubE3rC7dmYM+uaPx4/sMi0vjMxFmQi2DslQgJtWgo3/dBgGpSo6NHztzAP x0fST13+1dTWuocVFWtfR00lXDlenxol+mTjSBzNz1Xht+uxfPq2+MDDIHu7aUyf QIXTU+sHr3CZvp7cMH4vIi9WZ3MU/VQcxVRJ0+1ew8raD7kxTFo9EKgZJCFpQMmX 6cmQ9XmskpQ7n8a4Tn/f05PMn2CLPrOLemZXvvpWZodbyYwRoEmQw0DlK8dDVG/G H7Cwur019uOGlP9saOde =Y48r -----END PGP SIGNATURE----- --O1uKqunV2csLkmPHT8v39ILS821LeNu0S--